Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- while true do
- local stuff = workspace:GetChildren()
- for i = 1, #stuff do
- if stuff[i].ClassName == "Model" then
- local test = game.Players:FindFirstChild(stuff[i].Name)
- if test then
- if test.Team == game.Teams.Bad then
- if (stuff[i].Torso.Position - script.Parent.Parent.Position).magnitude <= 100 then
- if stuff[i].Humanoid.Health ~= 0 then
- stuff[i].Humanoid.Health = stuff[i].Humanoid.Health - 2
- script.Parent.Parent.CFrame = CFrame.new(script.Parent.Parent.Position,stuff[i].Torso.Position)
- local x = script.Parent.Parent.Orientation.X
- script.Parent.Parent.Orientation = Vector3.new(x - 90,script.Parent.Parent.Orientation.Y,script.Parent.Parent.Orientation.Z)
- script.Parent.Playing = true
- wait(0.12)
- script.Parent.Playing = false
- script.Parent.TimePosition = 0
- end
- end
- end
- end
- end
- end
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement