-- Listen for chat messages

game:GetService("Chat").Chatted:Connect(function(chat, message)
	if message:lower() == "respawn" then
		local player = getPlayerFromChat(chat)
		if player then
			player:LoadCharacter() -- Respawn the player
		end
	end
end)
print("Hello world!")
