I want the script to check if NPC is sit is true then wait a few seconds then makes the NPC jump. But it looks right to me but it doesn't work. The appreciated you help.
local v = script.Parent.Parent:findFirstChild("Humanoid")
if v.Sit then
wait(7)
v.Jump = true
end
Please don't post hateful comments I am just a kid who wants and is trying to learn Lua

3 comments
The problem is the if statement only runs once at the beginning of the script, and never again. You'll need to find a way of checking this statement multiple times. You could do this with a loop or with events. However, I suggest using this simple event: http://wiki.roblox.com/index.php?title=API:Class/Humanoid/StateChanged
Do I use something like else if or if or while true do
I am confused how do I implement in my script????