So I know the basics about scripting... But I cant seem to find the flaw in this one, since I tried a diffrent method.
print 'Hello world!'
local Button1 = script.Parent.Parent.Button1
local Gate = script.Parent.Parent.Gate1
local Value1 = script.Parent.Parent.Gate1.Value1.Value
local Hover = script.Parent.Parent.Gate1.Hover
function onTouched(p)
if Value1 == 0
then Hover.postion.Y = 255.076
end
if Value1 == 1
then Hover.position.Y = 215.076
end
end
script.Parent.Touched:connect(onTouched)
