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

Converting seat reclining to FE. How would I do it?

Asked by 6 years ago

How would I convert this? It's a script in a surfacegui.

function offclicked()
    script.Parent.Light.Value.Material = "SmoothPlastic"
    script.Parent.Light.Value.SpotLight.Enabled = false

end
function onclicked()
    script.Parent.Light.Value.Material = "Neon"
    script.Parent.Light.Value.SpotLight.Enabled = true

end

function onClicked2()
    script.Parent.Rest.Value.DesiredAngle = -1
end

function offClicked2()
    script.Parent.Rest.Value.DesiredAngle = 0
end

function onClicked3()
    script.Parent.ReclineMotor.Value.DesiredAngle = -0.3
end

function offClicked3()
    script.Parent.ReclineMotor.Value.DesiredAngle = 0
end
script.Parent.LightOff.MouseButton1Click:connect(offclicked)
script.Parent.LightOn.MouseButton1Click:connect(onclicked)
script.Parent.RestUp.MouseButton1Click:connect(onClicked2)
script.Parent.RestDown.MouseButton1Click:connect(offClicked2)
script.Parent.Recline.MouseButton1Click:connect(onClicked3)
script.Parent.Normal.MouseButton1Click:connect(offClicked3)

1 answer

Log in to vote
0
Answered by 6 years ago

Try the wiki. Search "Remote Events Roblox Wiki" In google. Sorry that I couldn't link you, wifi is trash where I am currently. You could also try a youtube video.

Ad

Answer this question