Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

GUIs Don't Show After Turning FE on?

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.

2 comments

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.

0

it says visible = false :/

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.