function loadTruck()
if game.Workspace["Army Truck 4"] then
game.Workspace["Army Truck 4"]:Destroy()
local clone = game.Lighting["Army Truck 4"]:Clone()
clone.Parent = game.Workspace
else
local clone = game.Lighting["Army Truck 4"]:Clone()
clone.Parent = game.Workspace
end
end
script.Parent.ClickDetector.MouseClick:connect(loadTruck)
Error:
13:50:28.155 - Army Truck 4 is not a valid member of Workspace; 13:50:28.156 - Script 'Workspace.Model.Part.Script', Line 2
It's supposed to delete the Army Truck if it already exists, and spawn a new one. And if one doesn't exist, it should spawn one.

1 comment
you stole my question >:V