ROBLOX Hack Sword Fight on the Heights Original. Speed-Ghost hacks and Sword Fighting tournament POINTS! Lighty's Jokes And Memes Channel.
Feb 15th, 2020
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- local ReplicatedStorage = game:GetService('ReplicatedStorage')
- local ServerStorage = game:GetService('ServerStorage')
- local MapsFolder = ServerStorage:WaitForChild('Maps')
- local Status = ReplicatedStorage:WaitForChild('Status')
- local GameLength = 50
- local reward = 50
- -- Game Loop
- while true do
- Status.Value = 'Waiting for enough players'
- repeat wait(1) until game.Players.NumPlayers >= 2
- Status.Value = 'Intermission'
- wait(10)
- local plrs = {}
- for i, player in pairs(game.Players:GetPlayers()) do
- table.insert(plrs,player) --Add each player into plrs table
- end
- wait(2)
- local AvailableMaps = MapsFolder:GetChildren()
- local ChosenMap = AvailableMaps[math.random(1,#AvailableMaps)]
- Status.Value = ChosenMap.Name.' Chosen'
- local ClonedMap = ChosenMap:Clone()
- local SpawnPoints = ClonedMap:FindFirstChild('SpawnPoints')
- if not SpawnPoints then
- end
- local AvailableSpawnPoints = SpawnPoints:GetChildren()
- for i, player in pairs(plrs) do
- Character = player.Character
- if Character then
- character:FindFirstChild('HumanoidRootPart').CFrame = AvailableSpawnPoints[1].CFrame
- -- Give them sword
- local Sword = ServerStorage.Sword:Clone()
- GameTag.Name = 'GameTag'
- --there is no character
- table.remove(plrs,i)
- end
- Status.Value = 'Get ready to play!'
- wait(2)
- for i = GameLength,0,-1 do
- for x, player in pairs(plrs) do
- --Left the game
- if character:FindFirstChild('GameTag') then
- print(player.name.' is still in the game!')
- --They're dead
- print(player.Name.' has been removed!')
- end
- table.remove(plrs,x)
- end
- Status.Value = 'There are '.i.' seconds remaining, and '.#plrs.' players left'
- if #plrs 1 then
- Status.Value = 'The winner is '.plrs(1).Name
- plrs(1).leaderstats.Bucks.Value = plrs(1).leaderstats.Bucks.Value + reward
- elseif #plrs 0 then
- break
- Status.Value = 'Time up!'
- end
- print('End of game')
- for i, player in pairs(game.Players:GetPlayers()) do
- -- Ignore them
- if character:FindFirstChild('GameTag') then
- end
- if player.Backpack:FindFirstChild('Sword') then
- end
- if character.Backpack:FindFirstChild('Sword') then
- end
- end
- player:LoadCharacter()
- end