Hello everyone, I'm creating a spawn car, when they click on a button, they generate a car and erase the old ones but it don´t work can help me please i Need this
normal script Located in a part on Workspace it´s a BillboardGui
script.Parent.MouseButton1Click:connect(function(GetCar)
local plyr = game.Players.LocalPlayer
Mod = game.ServerStorage.DodgeChallenger
clone = Mod:clone()
clone.Parent = workspace
clone:MakeJoints()
if game.Workspace.DodgeChallenger.CurrentOwner.Value == plyr.Name then
clone:Destroy()
end
clone.CurrentOwner.Value = plyr.Name
end)
please help me with this code i need it

3 comments
Sheesh, he is asking for a Gui script, not a ClickDetector.
lol he can change it though
no thanks it works i adapted it