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

With FE enabled ,how do you make Guis appear and disappear that are already inside the PlayerGui? [closed]

Asked by 5 years ago

Can't find any information on it

0
Well obviously Remote Events kid CarlPlandog 20 — 5y

Closed as Not Constructive by climethestair, User#22219, Vulkarin, and User#21908

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

4 answers

Log in to vote
0
Answered by 5 years ago

So if you want to make a frame goes to invisible and visible in a textbutton. There is the script:

local button = script.Parent
local frame = script.Parent.Parent.Frame

button.MouseButton1Click:Connect(function()
    if frame.Visible == true then
        frame.Visible = false
    elseif frame.Visible == false then
        frame.Visible = true
    end
end)
0
I physically give up explaining. I know how to script that. I mean't make the WHOLE gui visible in FE using a SERVER SIDE SCRIPT which happens after a RemoteEvent is FIRED CarlPlandog 20 — 5y
0
It is impossible with a server side script Vulkarin 581 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

You do it as if you would do it in a normal script, just from a local one.

If there's something on the server to make the gui pop up, you use remote events.

Anyway, the question is really vague, can you please be more specific?

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

If you are looking to make GUI objects such as TextButtons or Frames invisible then you would do -

local frame = Instance.new("Frame")

frame.Visible = false -- or true

If you are looking to turn the ScreenGui object invisible - which includes everything inside it, you would do -

local gui = Instance.new("ScreenGui")

gui.Enabled = false -- or true

If you are looking to Enable / Make them visible from the Server Side, then you would need to fire a RemoteEvent to either all clients or a singular client. That client would have a Local Scriptinside of it, which would be triggered when the RemoteEvent is fired and set the client's GUI to enabled or visible.

https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events

http://wiki.roblox.com/index.php?title=API:Class/ScreenGui

http://wiki.roblox.com/index.php?title=API:Class/Frame

0
I know bro, I know basic scripting. Please don't spoon feed me the basics. CarlPlandog 20 — 5y
0
Evidently you needed it or else you wouldn't be asking the question. I am simply trying to help with no knowledge of who you are or what your scripting level is. climethestair 1663 — 5y
0
I didn't need it bruv. CarlPlandog 20 — 5y
Log in to vote
0
Answered by 5 years ago

More specific huh?

I have a script which should make a gui go invisible. It doesn't. It doesn't even copy the Camera script. It used to work, but now it doesn't. Everything else works apart from the gui parts and the camera script copying. Here you go:

train = game.ReplicatedStorage.C153
Camera = workspace.CurrentCamera


game.ReplicatedStorage.C153Spawn.OnServerEvent:connect(function(player)
    print("Event Received")
        player.PlayerGui.MainMenuGui.Screen.DriveFrame.Visible = false
        player.PlayerGui.MainMenuGui.Screen.Spawning.Visible = true
        player.PlayerGui.MainMenuGui.Screen.Spawning.Text = "Spawning..."
        wait(0.01)
        local clone = train:clone()
        clone.Parent = workspace
        clone:MakeJoints()
        clone.Bogies.SD_Bogie:MakeJoints()
        clone.Bogies.SD_Bogie2:MakeJoints()
        wait(1)
        player.Character.HumanoidRootPart.CFrame = CFrame.new(-2449.474, 10.174, -198.335)
        player.PlayerGui.MainMenuGui.Screen.Spawning.Visible = false
        player.PlayerGui.MainMenuGui.Screen.IntroMusic:Stop()
  script.Parent.CameraFix:clone().Parent = player.Character
end)
0
Like I said, you evidently need help since you don't understand Filtering Enabled. You are trying to change something on the Client side from the Server which you can't do with filtering enabled on. climethestair 1663 — 5y