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

GUIs Don't Show After Turning FE on?

Asked by 8 years ago

So I used the classic MouseButton1Click event

Lighting = game:GetService("ServerStorage")

script.Parent.MouseButton1Click:connect(function()
    wait()
    local bomb = Lighting.Bomb:clone()
    bomb:clone().Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack
    local bazooka = Lighting.Pistol:clone()
    bazooka:clone().Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack
    script.Parent.Parent.Visible = false
    script.Parent.Parent.Parent.Frame.Class.Visible = false
end)

This script worked when FE was off. Now nothing will show.

0
I wouldn't recommend using the "MouseButton1Click" event. It can become almost impossible to click buttons for some mobile users if you use this. Try MouseButton1Down instead and it should fix it. lightpower26 399 — 8y
0
it says visible = false :/ koolkid8099 705 — 8y

1 answer

Log in to vote
1
Answered by
MrNicNac 855 Moderation Voter
8 years ago

Your problem is you are trying to use ServerStorage from the client. Use ReplicatedStorage instead (don't forget to move your items there too).

ServerStorage is only accessible to the server (not clients such as players). ReplicatedStorage is replicated to clients for use.

This works without FE because this boundary is not enforced. With FE on, things that shouldn't be replicated will not be.

Ad

Answer this question