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: Every thing works except the thing it is really supposed to do.

Previous Thread :: Next Thread 
jackstrap is not online. jackstrap
Joined: 20 Dec 2009
Total Posts: 551
24 Feb 2012 11:43 PM
Ok maybe it was a mistake, even if i'm just learning to script, i writed that script into a local script. Every thing prints like normaly, the output says i have no problems but the script is supposed to change the name of the tool... but doesnt work and doesnt break.

function equip()
print("Equipped")
if game.Players.LocalPlayer ~= nil then
script.Parent.Parent.Name = "GL2("..script.Parent.Amo.Value..")"
end
end

function unequip()
print("Unequipped")
if game.Players.LocalPlayer ~= nil then
print("localplayer found")
script.Parent.Parent.Name = "GL2"
end
end

script.Parent.Equipped:connect(equip)
script.Parent.Unequipped:connect(unequip)

Maybe it needs a loop so i can uptade but i don't really think it would work cause it doesnt change the name at all.
Report Abuse
jackstrap is not online. jackstrap
Joined: 20 Dec 2009
Total Posts: 551
24 Feb 2012 11:48 PM
Any ideas any one?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
24 Feb 2012 11:50 PM
Try putting a print after this line: if game.Players.LocalPlayer ~= nil then
Report Abuse
jackstrap is not online. jackstrap
Joined: 20 Dec 2009
Total Posts: 551
25 Feb 2012 10:47 PM
Doesnt work :/
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