Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

If statement isnt working despite no errors in input?

Asked by 4 years ago

This is a script inside of a seat, and basically I already have a working script to activate the BoolVaule called: IsSitting. However, this script is not working. any help?


function OnTouched() print("Touched") script.Parent.IsSitting.Value = true end script.Parent.Touched:Connect(OnTouched)`
0
i dont get it User#23252 26 — 4y
0
is the script printing "Touched"? Fad99 286 — 4y
0
yes.... duh Adenandpuppy 87 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Here Try This

script.Parent.Touched:Connect(function()
    print("Touched")
    script.Parent.IsSitting.Value = true
end)
Ad

Answer this question