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 
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 11:35 AM
nlen = string.len(script.Parent.Name)
rlen = nlen - 5
name = string.sub(script.Parent.Name,1,rlen)

object = game.Lighting:findFirstChild(name)
error = game.Lighting.ErrorGui
tool = Instance.new("Tool")

script.Parent.Parent.LocalPlayer.Chatted:connect(function(msg)
if string.sub(msg, 1, 5) == "give/" then
player = string.sub(msg, 6)
len = string.len(player)
for i,v in pairs(game.Players:GetChildren()) do
if string.sub(v.Name,len) == player then
tool:clone().Parent = v.BackPack
else
error:Clone().Parent = script.Parent.Parent.LocalPlayer
end
end
end
end)

No out put :/
Report Abuse
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 11:48 AM
Nvm.. I forgot to make it local script -FacePalm-
Report Abuse
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 12:08 PM
Nvm.. It still doesn't work...
Report Abuse
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 12:17 PM
bump :c
Report Abuse
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 12:21 PM
Help D:
Report Abuse
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 12:37 PM
No one can fix? D:
Report Abuse
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 12:42 PM
Help me :C
Report Abuse
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 12:49 PM
Please help...
Report Abuse
Sorexus is not online. Sorexus
Joined: 13 Aug 2013
Total Posts: 124
21 Dec 2013 02:52 PM
Last bump, I quit....
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