Advertisement
_Thanh_Thy_Cute_

Amongst Us INSTANT TASK COMPLETION

Jul 10th, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local Tasks = game.Players.LocalPlayer.Tasks
  2. local requestRemote = game:GetService("ReplicatedStorage").RemoteEvents.Client.taskRequest
  3. local completeRemote = game:GetService("ReplicatedStorage").RemoteEvents.Client.taskCompleted
  4. local room = game:GetService("ReplicatedStorage").RemoteEvents.Client.roomChanged
  5.  
  6. for i,v in pairs(Tasks:GetChildren())do
  7. local dataCount = 1
  8. local totalTimes = v.Parts:GetChildren()
  9. for count = 1,#totalTimes do
  10. if v.Parts:FindFirstChild(tostring(dataCount)) then
  11. local data1 = {
  12. [1] = v.Parts[tostring(dataCount)].Value,
  13. [2] = i,
  14. }
  15. local data2 = {
  16. [1] = v.Parts[tostring(dataCount)].Value,
  17. [2] = tostring(i),
  18. }
  19. room:FireServer(v.Parts[tostring(dataCount)].locationName.Value)
  20. requestRemote:FireServer(unpack(data1))
  21. completeRemote:FireServer(unpack(data2))
  22. end
  23. dataCount=dataCount+1
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement