i am making a story game and for one of the parts The player needs to touch a brick to kill him however he is sitting down and dose not trigger the brick when he touches it, so i was wondering if there was a script that makes the player stand up when he touches a brick. if so i would love to have it or if that's not possible could you explain how it might work so i could make my own. thanks
✓ ANSWER ACCEPTED
is there a way to make your character stand up after touching a brick?
1 answer
✓ Accepted answer
there is a property in the humanoid called sit, its a bool, check if it's true and i think the character stands up if it is false
part.Touched:Connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if hit.Parent.Humanoid.Sit then
hit.Parent.Humanoid.Sit = false -- If this doesn't work, just teleport the player
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
i tried stepping on it when i was sitting down and it did not work. also how do i check the humanoid for the player?