Here's my attempt.
local plr = game.Players.LocalPlayer
local char = game.Players.LocalPlayer.character
while true do
if plr.Character.Humanoid.Torso.Velocity < 5 then
game.workspace.Player.Humanoid.Health = 0
end
wait(1)
end
Here's my attempt.
local plr = game.Players.LocalPlayer
local char = game.Players.LocalPlayer.character
while true do
if plr.Character.Humanoid.Torso.Velocity < 5 then
game.workspace.Player.Humanoid.Health = 0
end
wait(1)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
The Player isn't a valid member of workspace. Nor is 'workspace' a valid member game; it's 'Workspace' via that pathway. If you already have a Player Object declared, as seen on line 2, then use that: plr.Character.Humanoid.
I do already have variable above, I just did not show the whole script.
I can show the whole script if you want.