poey27
|
  |
| Joined: 21 Jun 2008 |
| Total Posts: 469 |
|
|
| 14 Nov 2013 08:09 PM |
does anyone know how to spawn a model from lighting to a player?
if you do could you help i have this but it teleports to last place it was before it was in lighting....
local model = game.Lighting.Car local Cash = game.Players.LocalPlayer.leaderstats.Cash function onClicked() if Cash.Value >= 50 then Cash.Value = Cash.Value - 50 local c = model:Clone() wait() c.Parent = game.Workspace c:MakeJoints() end end script.Parent.MouseButton1Down:connect(onClicked)
how would i get this to spawn to local player that buys it? |
|
|
| Report Abuse |
|
|
|
| 14 Nov 2013 08:27 PM |
local model = game.Lighting.Car local Cash = game.Players.LocalPlayer.leaderstats.Cash function onClicked() if Cash.Value >= 50 then Cash.Value = Cash.Value - 50 local c = model:Clone() wait() c.Parent = game.Workspace c:MakeJoints() c:MoveTo(game.Players.LocalPlayer.Character.Torso.Position) game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(c.VehicleSeat.Position) end end script.Parent.MouseButton1Down:connect(onClicked)
try that
|
|
|
| Report Abuse |
|
|
poey27
|
  |
| Joined: 21 Jun 2008 |
| Total Posts: 469 |
|
| |
|
|
| 14 Nov 2013 08:33 PM |
| Probably got something wrong, am tired. |
|
|
| Report Abuse |
|
|
poey27
|
  |
| Joined: 21 Jun 2008 |
| Total Posts: 469 |
|
|
| 14 Nov 2013 08:34 PM |
My bad it does work!
Thank you so much! |
|
|
| Report Abuse |
|
|
|
| 14 Nov 2013 08:36 PM |
k
am genius even when tired |
|
|
| Report Abuse |
|
|