Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat task.wait() until game:IsLoaded()
- print("Starting vote process...")
- local Endpoint = game:GetService("ReplicatedStorage"):WaitForChild("endpoints", 10)
- local clientToServer = Endpoint:FindFirstChild("client_to_server")
- local VoteStart = clientToServer:FindFirstChild("vote_start")
- local FinishedVote = clientToServer:FindFirstChild("set_game_finished_vote")
- local VoteSkip = clientToServer:FindFirstChild("vote_wave_skip")
- VoteStart:InvokeServer()
- _G.Condition = true
- print("Global condition set to true.")
- local function fireGameFinishedVote()
- while _G.Condition do
- task.wait(10)
- local args = {
- [1] = "replay"
- }
- print("Firing set_game_finished_vote with args:", args)
- local success, response = pcall(function()
- return FinishedVote:InvokeServer(unpack(args))
- end)
- if not success then
- print("Error invoking set_game_finished_vote:", response)
- else
- print("Response from server:", response)
- end
- end
- end
- coroutine.wrap(fireGameFinishedVote)()
- task.spawn(function()
- while _G.Condition do
- task.wait(1)
- print("Sending vote_wave_skip request...")
- VoteSkip:InvokeServer()
- end
- end)
- syn.queue_on_teleport([[
- loadstring(game:HttpGet("https://pastebin.com/raw/AhG0ewv4", true))()
- ]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement