Why doesn't it work. The rocket spawns but the GUI doesn't show.
script.Parent.MouseButton1Click:Connect(function() if script.Parent.Parent.RocketSelected.Value == 'Rocket1' then game.ReplicatedStorage:WaitForChild('Rocket1') local clone = game.ReplicatedStorage.Rocket1:Clone() clone.Parent = workspace game.StarterGui.ScreenGui.LaunchMenu.Visible = true game.StarterGui.ScreenGui.Screen.Visible = false game.StarterGui.ScreenGui.RocketMenu.Visible = false end end)
You can't access the startergui.
script.Parent.MouseButton1Click:Connect(function(plr) if script.Parent.Parent.RocketSelected.Value == 'Rocket1' then game.ReplicatedStorage:WaitForChild('Rocket1') local clone = game.ReplicatedStorage.Rocket1:Clone() clone.Parent = workspace plr = game.Players:GetPlayerFromCharacter(plr.Parent) plr.PlayerGui.LaunchMenu.Visible = true plr.PlayerGui.ScreenGui.Screen.Visible = false plr.PlayerGui.ScreenGui.RocketMenu.Visible = false end end)