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: Gui Help!

Previous Thread :: Next Thread 
hung999 is not online. hung999
Joined: 19 Sep 2008
Total Posts: 819
11 Feb 2012 02:52 PM
script.Parent.MouseButton1Click:connect(function()
local PLR = script.Parent.Parent.NameOfPlayer.TextBoxName.Text
game.Players:FirstFindChild(PLR).Points.PT.Value + 5
end)

I don't see what's wrong , (This is not a LocalScript .)
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
11 Feb 2012 02:54 PM
Just about everything is wrong. And it pretty much needs to be a localscript.

script.Parent.MouseButton1Click:connect(function()
local PLR = game.Players.LocalPlayer
PLR.Points.PT.Value = PLR.Points.PT.Value + 5
end)

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
Grove537 is not online. Grove537
Joined: 05 Feb 2010
Total Posts: 3478
11 Feb 2012 02:55 PM
script.Parent.MouseButton1Click:connect(function()
local PLR = script.Parent.Parent.NameOfPlayer.TextBoxName.Text
game.Players:FirstFindChild(PLR).Points.PT.Value = game.Players:FirstFindChild(PLR).Points.PT.Value + 5
end)
Report Abuse
hung999 is not online. hung999
Joined: 19 Sep 2008
Total Posts: 819
11 Feb 2012 02:57 PM
Swim that's not what I want ... Grove It doen't work .
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
11 Feb 2012 02:58 PM
@Hung
It does the exact same thing

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
hung999 is not online. hung999
Joined: 19 Sep 2008
Total Posts: 819
11 Feb 2012 02:58 PM
No it doesn't I don't want "LocalPlayer" I want to find the player in the Text game.Players:FirstFindChild(PLR) and give the person 5 points ..
Report Abuse
hung999 is not online. hung999
Joined: 19 Sep 2008
Total Posts: 819
11 Feb 2012 03:09 PM
Bump
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
11 Feb 2012 03:10 PM
Main problem I see is that you have a findfirstchild and then you go to script.Parent. I have no idea how that would ever work out...
Report Abuse
hung999 is not online. hung999
Joined: 19 Sep 2008
Total Posts: 819
11 Feb 2012 03:15 PM
How would I fix then .
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