Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Thanks for using this script
- --This script is made by Joriangames/Problox Studio Scripts
- --Want to know how to use this and script explanation?
- --Watch my tutorial: https://youtu.be/2GGmbc6BKi0
- local carsFolder = game.ReplicatedStorage.Cars
- local carEvent = game.ReplicatedStorage.CarEvent
- print("carscript is ready to use")
- carEvent.OnServerEvent:Connect(function(plr, carName)
- local clone = carsFolder:FindFirstChild(carName):Clone()
- clone.Parent = workspace
- clone:SetPrimaryPartCFrame(plr.Character.HumanoidRootPart.CFrame + Vector3.new(0,8,0))
- clone:MakeJoints()
- end)
Add Comment
Please, Sign In to add comment