Categories > Exploiting > Scripts >
[REQ] Check If Character is Alive So A Loop Will Continue
Posted
What happens is when my character dies it doesn't exist anymore which stops the loop. So if someone could add a check to detect the new humanoid to my script below that'll be great. Thanks
while true do wait()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.NAME.Character.HumanoidRootPart.CFrame
wait()
game:GetService("ReplicatedStorage").Events.Grab:FireServer(game:GetService("Players").NAME.Character:FindFirstChild("HumanoidRootPart"),"Grab")
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-161, 54, 2612)
end
Added
Thank you for the attempt Nick. This just grabs the player repeatdly without moving to the designated coordinates. But its understandable since you weren't able to test it before hand.
Cancel
Post
Replied
Hmm, Could you give me the url of the game to try some alternatives? Ty.
Cancel
Post
I'm not lazy, I'm just highly motivated to do nothing. #I💚Dogs.
Replied
try this maybe
while true do
wait()
if game.Players.LocalPlayer.Character.Humanoid ~= nil then
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.NAME.Character.HumanoidRootPart.CFrame
wait()
game:GetService("ReplicatedStorage").Events.Grab:FireServer(game:GetService("Players").NAME.Character:FindFirstChild("HumanoidRootPart"),"Grab")
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-161, 54, 2612)
else
break
end
end
Cancel
Post
want something? add me on disccord !Spl||HasH!#7562
want something? add me on disccord !Spl||HasH!#7562
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post