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: Anyone know what is wrong with this script?

Previous Thread :: Next Thread 
tomtheflutist is not online. tomtheflutist
Joined: 14 Dec 2009
Total Posts: 5388
19 Jun 2012 06:45 PM
I haven't done scripting in a while and I don't know wht is wrong with this.

function onPlayerEntered(newPlayer)
if newPlayer:IsInGroup(157284) then
local item1 = game.Lighting.Turtle:clone()
item1.Parent = newPlayer.Backpack
end
end

function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end

game.Players.ChildAdded:connect(onPlayerEntered)

inb4urdumb
Report Abuse
tomtheflutist is not online. tomtheflutist
Joined: 14 Dec 2009
Total Posts: 5388
19 Jun 2012 06:47 PM
The purpose of this script was to make it so if you are in that group, you would get a turtle hidden in the lighting.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
19 Jun 2012 06:47 PM
Lol.


A tutle xD






~Leave me in the city with 50 bucks and watch me come back a millionaire~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
19 Jun 2012 06:48 PM
Try this:

Game.Players.PlayerAdded:connect(function(newPlayer)
newPlayer.CharacterAdded:connect(function(char)
if newPlayer:IsInGroup(157284) then
Game.Lighting.Turtle:Clone().Parent = newPlayer.Backpack
end
end)
end)

† KMXD †
Report Abuse
tomtheflutist is not online. tomtheflutist
Joined: 14 Dec 2009
Total Posts: 5388
19 Jun 2012 06:48 PM
That was of no help to me.
Report Abuse
tomtheflutist is not online. tomtheflutist
Joined: 14 Dec 2009
Total Posts: 5388
19 Jun 2012 06:48 PM
Thank you nightmare for trying.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
19 Jun 2012 06:49 PM
game.Players.PlayerAdded:connect(function(plyr)
if not plyr:IsInGroup(157284) then return end
plyr.CharacterAdded:wait()
game.Lighting.Turtle:Clone().Parent = plyr.Backpack
game.Lighting.Turtle:Clone().Parent = plyr.StarterGear
end)


Maybe?
Report Abuse
tomtheflutist is not online. tomtheflutist
Joined: 14 Dec 2009
Total Posts: 5388
19 Jun 2012 07:07 PM
Nightmare's worked.
Thanks for trying Spectrum! :P
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
19 Jun 2012 07:08 PM
K*

No problem, and there's no doubt in my mind that Spectrum's would have worked anyways.

† 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