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

How do i fix this spawn car gui? nothing happens when i click in the textbutton

Asked by 4 years ago
Edited 4 years ago

When i click in the TextButton, nothing happens, i cant spawn the car and not even an error appears in the output

script.Parent.MouseButton1Click:connect(function() local player = game.Players.LocalPlayer local car = game.Lighting.CarOne:Clone()

if car ~= nil then

car:MoveTo(player.Character.Head.Position) end end)

Answer this question