generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: What's wrong with this?

Previous Thread :: Next Thread 
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Mar 2013 02:23 PM
Where is this located?

(╯°□°)> KMXD
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
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
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:24 PM
There :P
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Mar 2013 02:30 PM
I'm guessing that's a value.

NumPlyr.Value = NumPlyr.Value + 1

(╯°□°)> KMXD
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:31 PM
Oh duh thanks. Also, do you know what wrong with that other one. :/
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
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
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:32 PM
If I can get that to work my game is pretty much done
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:33 PM
THANKS!!!
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:35 PM
Wait still isn't working but isn't giving error reports.
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:37 PM
does it need game.Workspace not just workspace?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Mar 2013 02:38 PM
Scripts do not run in the Player.

(╯°□°)> KMXD
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:40 PM
WHAT!? >_>
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:40 PM
What about a local script??
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Mar 2013 02:41 PM
No.

(╯°□°)> KMXD
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:42 PM
Then could you help me find another way!?
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
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
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:43 PM
die*
Report Abuse
playmobil1898 is not online. playmobil1898
Joined: 02 Jun 2009
Total Posts: 131
31 Mar 2013 02:46 PM
Will it work in player gui?
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Mar 2013 02:46 PM
A localscript, yes.

(╯°□°)> KMXD
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
31 Mar 2013 02:47 PM
Scripts run inside of Backpack/PlayerGui.
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Mar 2013 02:47 PM
Wait, no, a script would work I think.

(╯°□°)> KMXD
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image