function Clicked()
local p1 = game.ReplicatedStorage.Cars:findFirstChild("Car1"):clone()
local p2 = game.Players.LocalPlayer --You can tell its a local script by this line. I want this code to be able to work in a normal script.
if p1 ~= nil then
p1.Parent = game.Workspace
wait()
p1:MoveTo(p2.Character.HumanoidRootPart.Position + Vector3.new(3, 0, 3))
end
end
script.Parent.MouseButton1Click:connect(Clicked)
COMMUNITY QUESTION
How do I turn this LocalScript code into a normal script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
