So basically I'm trying to make a restaurant system but for whatever reason, this wont work. Any clue as to why?
Button = script.Parent.Screen.SurfaceGui.Frame.Button
Button.MouseButton1Click:Connect(function()
local Player = game.Players.LocalPlayer.PlayerGui
local ServerStorage = game.ServerStorage
ServerStorage.MakeMenu:Clone().Parent = Player
Button.Text = "Currently in use"
Button.TextSize = 55
end)
Hope you can answer!

3 comments
Does this return any errors when run?
and is this a local script?
It isn't a local script. But I'm trying to insert it into the PlayerGui. The error says, " 22:24:53.707 - Workspace.OrderScreens.Screen.Script:3: attempt to index field 'LocalPlayer' (a nil value)"