Why is my script not working?

  1. What do you want to achieve? Keep it simple and clear!

I want to open a GUI with a command

  1. What is the issue? Include screenshots / videos if possible!

My script doesn’t work.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried many but it doesn’t work

game.Players.PlayerAdded:Connect(function(player)
	player.Chatted:Connect(function(message)
		if message == "test" then -- you can change /gui by command of you want
			player.PlayerGui.CanariaAP.Enabled = true
		end
	end)
end)

I’ve been trying for 30 minutes trying to get different scripts.

1 Like

I found the solution, you have to put the script into serverscript if its chat related.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.