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: Would this repeat for people that join?

Previous Thread :: Next Thread 
DailyTime is not online. DailyTime
Joined: 09 Nov 2013
Total Posts: 285
12 Jan 2014 07:07 PM
-- Made by DailyTime
id = 1017207

game.Players.ChildAdded:connect(function (child)
while true do
if child:GetRankInGroup(id)==tonumber(59)then
game.Lighting.Taser:clone().Parent = child.Backpack
end
end
end)


Because i had this before

-- Made by DailyTime
id = 1017207

game.Players.ChildAdded:connect(function (child)
if child:GetRankInGroup(id)==tonumber(59)then
game.Lighting.Taser:clone().Parent = child.Backpack
end
end)


and it only did it to one person.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
12 Jan 2014 07:09 PM
id = 1017207

game.Players.PlayerAdded:connect(function(child)
if child:GetRankInGroup(id)==tonumber(59)then -- What's the tonumber(59) for exactly?
game.Lighting.Taser:clone().Parent = child.Backpack
end
end)
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
12 Jan 2014 07:09 PM
Do this:

game.Players.PlayerAdded:connect(function(Player)
print(Player.Name)
--code
end)
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
12 Jan 2014 07:10 PM
Oh wait never mind, I just realized what it was for.
Report Abuse
DailyTime is not online. DailyTime
Joined: 09 Nov 2013
Total Posts: 285
12 Jan 2014 07:21 PM
-- Made by DailyTime
id = 1017207

game.Players.PlayerAdded:connect(function(Player)
print(Player.Name)
if Player:GetRankInGroup(id)==tonumber(59)then
game.Lighting.Taser:clone().Parent = Player.Backpack
end
end)


only works once and if they reset they don't get it back.
Report Abuse
DragonFox11 is not online. DragonFox11
Joined: 15 Nov 2013
Total Posts: 284
12 Jan 2014 07:34 PM
o
Report Abuse
DragonFox11 is not online. DragonFox11
Joined: 15 Nov 2013
Total Posts: 284
12 Jan 2014 07:34 PM
also why was you teleporting people to your game lol
Report Abuse
DailyTime is not online. DailyTime
Joined: 09 Nov 2013
Total Posts: 285
12 Jan 2014 07:35 PM
because i do buy i want help not what i do in my life.
Report Abuse
DragonFox11 is not online. DragonFox11
Joined: 15 Nov 2013
Total Posts: 284
12 Jan 2014 07:36 PM
ok
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
12 Jan 2014 07:39 PM
maybe cus tazer is in backpack not startergear

omg

taz = game.Lighting.Tazer
taz:Clone().Parent = child.BackPack
taz:Clone().Parent = child.StarterGear

boom

mindblown
Report Abuse
DailyTime is not online. DailyTime
Joined: 09 Nov 2013
Total Posts: 285
12 Jan 2014 07:47 PM
It works but it does not work when they reset:

-- Made by DailyTime
id = 1017207

game.Players.PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(id)==tonumber(59)then
game.Lighting.Taser:clone().Parent = Player.Backpack
end
end)
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