for the server not the device i mean
You also don’t have to include the :Clone() in the script if only you are going to get the UI, but when you leave and join back, you won’t get the UI and it will error.
I don’t do any :Clone()s on server, maybe only a few
local function onActivated()
-- (ur gui stuff)
end
textButton.Activated:Connect(onActivated)
this might work test it I guess
This would be the chain of numbers I find in the URL of my profile page right?
btw this is for the everyone to see
yeah well you can do other people too
When I click this secret button, I want to make this frame from game.StarterGui.ScreenGUI.Frame to be visible to everyone on the server for only a selected amount of time. (Ex. 10 seconds)
just make a wait like:
wait()--time(seconds)
gui.trans = 0
btw im too lazy to write transparentcy
Try using this:
-- LocalScript
local RemoteEvent = game.ReplicatedStorage.EventShowUi -- The event
local UI = script.Parent -- Change it to your UI
function ChangeUiVisibility(Visible) -- 'Visible' is 'true' (visible) or 'false/nil' (invisible)
RemoteEvent:FireServer(Visible)
end
RemoteEvent.OnClientEvent:Connect(function(Visible)
UI.Visible = Visible
local countTime = 0
repeat wait(0.99) countTime += 1 until countTime >= 10
UI.Visible = not Visible
end)
edit 1 and 2: yeah you could just do wait(10)
wait is like a ez and quick way lol
Where would this local script go exactly?
Just replace the old local script with this
your ui like the one for everyone to see and not see
is this where I put the local script?
Yes, you can put it there, but it can work anywhere (inside of the UI) until you change the ‘Ui’ variable to the Ui.
This is what I have.
Script:
– LocalScript
local RemoteEvent = game.ReplicatedStorage.EventShowUi – The event
local UI = script.Parent.Frame – Change it to your UI
function ChangeUiVisibility(Visible) – ‘Visible’ is ‘true’ (visible) or ‘false/nil’ (invisible)
RemoteEvent:FireServer(Visible)
end
RemoteEvent.OnClientEvent:Connect(function(Visible)
UI.Visible = Visible
local countTime = 10
repeat wait(0.99) countTime += 1 until countTime >= 10
UI.Visible = not Visible
end)
You could also add (at the very bottom of the localscript)
local Button = script.Parent.Frame.TextButton -- aka your activation button
when you are done with this then you can do
Button.MouseButton1Click:Connect(function() ChangeUiVisibility(true) end) -- this will detect any click on the button
and this will detect a click on the button and show the Uis for all players, including you.