what is wrong with my script?
what is wrong with my script?
Do this!
1
part.Touched:connect(
function
(hit)
2
if
hit
and
hit.Parent
and
hit.Parent.Humanoid
then
3
hit.Parent.Humanoid.Sit
=
true
4
else
5
wait()
6
end
7
end
)
If you do use this, make sure you define your variable part.
ohh okay thanks ( im new to scripting )
No problem, you can mark this thread as solved
how do I do that? ( im new to the dev forum also )
The spelling of Humanoid
was wrong I guess
Yes I guess so Glad I can help, let me know if you need any other help!
I guess he means that change the variable of the part like
part.touched: to
(your name of the part).Touched and so on
Iām new to scripting too so I might be wrong
It is ok it is just he did not spell humanoid right so it could not add the script to the model, that is all