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

Help with cloning a model ?

Asked by 8 years ago

I'm making a game, in which is kind of Test Drive Unlimited. I made the cars, dealerships, and the map in general. I'm about to finish my game, I made it so when you get into the car seat in a dealership it shows a gui in which shows the speed, the class of the car, the name and the price with a "Buy" button. How do I make it so when I click buy it clones the car to the back of the dealership?

I guess it has to do with CFrame, but I cannot find the way to do it. (I'm not asking for you to make me the script, but to tell me what I should have in mind to do it)

Thank you.

Money.Value = cash.Money - cost
        space.Money = space.Value + 1 
        vehicle = workspace.Camaro.Value:Clone()
        vehicle.Parent = user.Character:findFirstChild("Humanoid")
        vehicle:MakeJoints()
        script.Parent.Parent.Visible = false
        script.Parent.Parent.Parent.Parent.HUDGui.Gui.Car.Text = "Chevrolet Camaro"

^ what I have.

0
Put your code into a code block please. TheDeadlyPanther 2460 — 8y
0
Ah, I already found out how. Thank you anyways. luicasas 13 — 8y

Answer this question