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 » Scripters
Home Search
 

What's wrong with this script?

Previous Thread :: Next Thread 
KZskychi is not online. KZskychi
Joined: 19 Apr 2012
Total Posts: 202
23 Jul 2016 12:19 AM
local tool = game.ServerStorage.Tool

function OnPlayerSpawned(player)
if player:GetRankInGroup(2830909) <= 250 then
tool:Clone().parent = player.backpack
end
end



game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(OnPlayerSpawned)
end)


Note: This script is supposed to give higher ranks a tool when they enter my game.

script is stored in ServerScriptStorage
tool is stored in ServerStorage


Report Abuse
DogeKip is not online. DogeKip
Joined: 06 Mar 2011
Total Posts: 6860
23 Jul 2016 12:20 AM
What is the error
Also you did it for if their rank is less than 250 in the group


[Redacted]
Report Abuse
KZskychi is not online. KZskychi
Joined: 19 Apr 2012
Total Posts: 202
23 Jul 2016 12:24 AM
oh yeah forgot that
Report Abuse
KZskychi is not online. KZskychi
Joined: 19 Apr 2012
Total Posts: 202
23 Jul 2016 12:26 AM
even then it won't give me a tool
Report Abuse
pidgey is not online. pidgey
Joined: 16 Jan 2008
Total Posts: 2739
23 Jul 2016 12:41 AM
<= 250 huh i wonder why lol


https://www.roblox.com/My/Groups.aspx?gid=2893266 | pidgey is my name sh##posting is my game
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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