I need help with my script

I need help with my script can someone help me, please

if script.Parent.Parent.Parent.Door2.Transparency = 0 then
	wait(3)
	script.Parent.Enabled = true
	script.Parent.Parent.Transparency = 0
	script.Parent.Parent.CanCollide = true
	script.Parent.Parent.Parent.Door2.Transparency = 1
	script.Parent.Parent.Parent.Door2.CanCollide = true
end

in the output it says

Workspace.Door Model.Door.ProximityPrompt.Script:1: Expected 'then' when parsing if statement, got '='

Use == in the if statement instead of =

1 Like

== not = this is not an op it is a test

Take care

stay creative

ok thank you i will try it :grinning: :smile: :smiley: