|
| 31 Mar 2013 02:22 PM |
local player = script.Parent
function insert() wait(10) local t = script.GetCar:clone() t.Parent = game.Workspace[player.Name] end
game.Workspace[player.Name].Humanoid.Died:connect(insert)
No error reports, it just won't work, >:c |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:23 PM |
Where is this located?
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:24 PM |
| Btw the script is in the player info and I need it to insert it to the character after it dies. |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Mar 2013 02:30 PM |
Also...
local NumPlyr = game.Workspace.Add.GetCars.GetCar.NumPlyr
function check() wait (3) NumPlyr = NumPlyr + 1 end
game.Players.ChildAdded:connect(check)
It keeps saying... "Workspace.Check:5: attempt to perform arithmetic on upvalue 'NumPlyr' (a userdata value)" |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:30 PM |
I'm guessing that's a value.
NumPlyr.Value = NumPlyr.Value + 1
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:31 PM |
| Oh duh thanks. Also, do you know what wrong with that other one. :/ |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:31 PM |
local player = script.Parent
function insert() script.GetCar:clone().Parent = Workspace:WaitForChild(player.Name) end
Workspace:WaitForChild(player.Name):WaitForChild("Humanoid").Died:connect(function()Delay(10,insert)end)
~Kill The Clones is the best game ever to be created on ROBLOX~ |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:32 PM |
| If I can get that to work my game is pretty much done |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Mar 2013 02:35 PM |
| Wait still isn't working but isn't giving error reports. |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:37 PM |
| does it need game.Workspace not just workspace? |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:38 PM |
Scripts do not run in the Player.
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Mar 2013 02:40 PM |
| What about a local script?? |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Mar 2013 02:42 PM |
| Then could you help me find another way!? |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:42 PM |
| I need to make it so when you died the script GetCar doesn't leave your character. |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Mar 2013 02:46 PM |
| Will it work in player gui? |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:46 PM |
Yes it'll work in the playergui
~Kill The Clones is the best game ever to be created on ROBLOX~ |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:46 PM |
A localscript, yes.
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:47 PM |
| Scripts run inside of Backpack/PlayerGui. |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:47 PM |
local player = game.Players.LocalPlayer
function insert() script.GetCar:clone().Parent = Workspace:WaitForChild(player.Name) end
Workspace:WaitForChild(player.Name):WaitForChild("Humanoid").Died:connect(function()Delay(10,insert)end)
--Put this in a localscript
~Kill The Clones is the best game ever to be created on ROBLOX~ |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2013 02:47 PM |
Wait, no, a script would work I think.
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|