Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

If statement isnt working despite no errors in input?

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)`

3 comments

0

i dont get it

0

is the script printing "Touched"?

0

yes.... duh

1 answer

Here Try This

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

This discussion is preserved as it was. New answers, comments, and votes are closed.