local spawned = false
local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
Player.Chatted:Connect(function(msg)
if msg:lower() == "/test" and not spawned then
	
	
	
	
	game.ReplicatedStorage.Player.CAR:Destroy()
end
end)
end)

This is a serverscript and it wont work, no errors. Im very confused on why this isnt working.

Heres a image to help https://gyazo.com/17a4d93dd98f0c23c67032f907fe68e2

2 comments

0

Try game.ReplicatedStorage[Player.Name].CAR:Destroy();

0

It works thanks