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