script is in serverscriptserv and the button in startergui in the screengui called introbeam.
what i'm trying to do is to get this script to visible a frame then invisible a frame. but seems to be not working..
frame = game.StarterGui.IntroBeam
Event = game.ReplicatedStorage.BlackEvent
Event.OnServerEvent:Connect(function(plr,Gui)
if Gui == "On" then
if frame.Beam.Visible == false then
frame.Beam.Visible = true
elseif frame.Beam.Visible == true then
frame.Beam.Visible = false
end
end
end)

11 comments
Thank you!
np
ok sorry to come back to this topic but, it now only works in studios and not in game.. buttons are local script and serverscriptserv is a reg script.
whats the "reg" script
because this would work, its probably that your using it wrong
serverscript
so whats the serverscript suppose to do
thats whats in the serverscriptservices which is how i get the which is where i trigger the event or something like that. but i don't see any errors and it does work the way i want it to work but only in studios
you dont need a remote event as i said in my answer
only if it was something that could be done by the server only you would need remote events, if there isnt just use a local script
i'll figure it out, thanks for the help. :)