|
| 13 Oct 2013 12:57 PM |
Hi so i got this far but i cant get it to spawn in front of player. do i use body pos
player = script.Parent.Parent.Parent.Parent.Parent money = player.leaderstats.Money price = 0 --Put the items price here tool = game.Lighting:findFirstChild("BugattiVeyron")
function buy() if money.Value >= price then money.Value = money.Value - price local a = tool:clone() a.Parent = player.Backpack local b = tool:clone() b.Parent = player.StarterGear
end end script.Parent.MouseButton1Down:connect(buy) |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2013 12:59 PM |
| Position the car with the player Torso's lookVector. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2013 01:02 PM |
| Could you help its not working :( |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2013 01:05 PM |
Example:
car = Car:Clone()
car.Parent = Workspace car.Position = player.Torso.Position + Vector3.new(player.Torso.CFrame.lookVector)
This won't actually work, it's just an example of what you would do. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2013 01:12 PM |
| well he did say car, so id assume that its a model so you would probably wanna use the :MoveTo(part.position, part) method |
|
|
| Report Abuse |
|
|