Hello, I'm trying to make a script which opens a GUI when you click a part. But for some reason it does not appear. It says Enabled but it doesn't even appear. In build mode when it says Enabled it does appear. What is going on and can anybody tell me what is going on?
game.Workspace.SpawnCarScreenOpen.OnServerEvent:Connect(function()
game.StarterGui.CarSelectScreen.Enabled = true
end)
local clickdetector = game.Workspace.CarSelector.ClickDetector
clickdetector.MouseClick:Connect(function()
game.Workspace.SpawnCarScreenOpen:FireServer()
end)

1 comment
Where do I put the GUI in the PlayerGui?