Advertisement
Noble_Z

elemental battlegrounds script

Nov 14th, 2018
12,435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. --Made by Lagx,feel free to add me: Lagx65#2413--
  2. while wait(1) do
  3. local players = (game.Players:GetPlayers())
  4. for i = 1, #players do
  5. local screenGui = Instance.new("ScreenGui")
  6. screenGui.Parent = script.Parent
  7. local textBox = Instance.new("TextBox")
  8. textBox.Text = (players[i].Name)
  9. game.Players[textBox.Text].Character.Humanoid.HealthChanged:connect(function(health)
  10. if game.Players[textBox.text].Character.Humanoid.Health <= 40 then
  11. local targetpos = game:GetService'Players'[textBox.Text].Character.HumanoidRootPart.Position--get target pos
  12. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(targetpos.X, targetpos.Y, targetpos.Z) --TP to target
  13. local plr = game.Players.LocalPlayer
  14. local mouse = plr:GetMouse()
  15. local TrueMagic = game.ReplicatedStorage.Remotes.DoMagic
  16. game.ReplicatedStorage.Remotes.DoClientMagic:FireServer("Fire", "Consecutive Fire Bullets")--Change "Fire" To your magic and change "Consecutive Fire Bullets" to your own magic move.
  17. TrueMagic:InvokeServer("Fire", "Consecutive Fire Bullets", mouse.Target, mouse.Hit)--Change "Fire" To your magic and change "Consecutive Fire Bullets" to your own magic move.
  18.  
  19. end
  20. end)
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement