Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont this delete the car thats inside the players folder?

Asked by 5 years ago
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

0
Try game.ReplicatedStorage[Player.Name].CAR:Destroy(); saenae 318 — 5y
0
It works thanks TheOwlFromSaturn 26 — 5y

Answer this question