Posted
How would I kill the local player after they have done a certain task for example walk/float/fly a few studs or after picking something up like cash?
I tried fining out but they didn't really kill the player.
-- for example
if player.leaderstats.Cash.Value > 3 then
player.Character.Humanoid.Health = 0
end
I tried doing that but it didn't work.
Is there a better way to do this or am I doing something wrong?
I just want the player to reset after doing a certain task is that even possible?
I was also thinking maybe this could work but it didn't. Maybe I'm doing something wrong.
If you can help can you tell me how you did it instead of just spoon feeding me the information?
if player.leaderstats.Cash.Value > 3 then
game.Workspace.player.Head:Destroy() --I'm going to replace .player with my username
end
Early Script Releases: Robloxscripts - Profile of 266
Replied
Multiple ways:
Break joints of head (head:BreakJoints())
Destroy Humanoid (Does not kills but causes player to respawn)
Teleport to very down (like Y -999)
Cancel
Post
https://imgur.com/a/oOomuUo
Replied
local player = game.Players.LocalPlayer -- Gets the local player
if player.leaderstats.Cash.Changed:Connect(function(newvalue)
if newvalue > 3 then
player.Character.Head:Destroy() -- Gets the players character and destroys the head
end
end)Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post