ZachPlayz_Dev

Elemental battle ground's

Mar 28th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. _G.settings = {
  2. ["MagicType"] = "Fire",
  3. ["TpShardsAndDia"] = true,
  4. ["KillAll"] = true
  5. }
  6.  
  7. local Remotes = game:GetService("ReplicatedStorage").Remotes
  8. local typez = _G.settings.MagicType
  9. local tp2 = _G.settings.TpShardsAndDia
  10. local tp3 = _G.settings.KillAll
  11. while wait() do
  12. local hum = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  13. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Main.Character.Available.ScrollingFrame.Frame:GetChildren()) do
  14. Remotes.DoClientMagic:FireServer(typez, v.Name)
  15. Remotes.DoMagic:InvokeServer(typez, v.Name)
  16. if tp2 then
  17. for i,x in pairs(game:GetService("Workspace")[".Ignore"][".ServerEffects"]:GetChildren()) do
  18. if x.Name == "Shard" or x.Name == "Diamond" and not x:IsA("Folder") then
  19. _G.test = false
  20. print("tping 2 shard or dia")
  21. hum.CFrame = x.CFrame
  22. wait(1)
  23. _G.test = true
  24. else
  25. _G.test = true
  26. end
  27. end
  28. end
  29. if tp3 and _G.test then
  30. for i,z in pairs(game.workspace:GetChildren()) do
  31. if z:FindFirstChild("HumanoidRootPart") and not z:FindFirstChild("ForceField") then
  32. hum.CFrame = z.HumanoidRootPart.CFrame
  33. end
  34. end
  35. end
  36. end
  37. end
Add Comment
Please, Sign In to add comment