Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by Lagx,feel free to add me: Lagx65#1587--
- while wait(1) do
- local players = (game.Players:GetPlayers())
- for i = 1, #players do
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- local textBox = Instance.new("TextBox")
- textBox.Text = (players[i].Name)
- game.Players[textBox.Text].Character.Humanoid.HealthChanged:connect(function(health)
- if game.Players[textBox.text].Character.Humanoid.Health <= 40 then
- local targetpos = game:GetService'Players'[textBox.Text].Character.HumanoidRootPart.Position--get target pos
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(targetpos.X, targetpos.Y, targetpos.Z) --TP to target
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local TrueMagic = game.ReplicatedStorage.Remotes.DoMagic
- game.ReplicatedStorage.Remotes.DoClientMagic:FireServer("Fire", "Consecutive Fire Bullets")--Change "Fire" To your magic and change "Consecutive Fire Bullets" to your own magic move.
- 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.
- end
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement