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
 

Re: My script isn't working

Previous Thread :: Next Thread 
ralleybrodey is not online. ralleybrodey
Joined: 15 May 2013
Total Posts: 2221
04 Jun 2016 07:46 AM
I made a GUI Button, to change the player's skin, for some reason it's not working!
Here's the script:

function click()
local NewSkin = Instance.new("Skin")
NewSkin.Parent = Player
NewSkin.SkinColor = "Reddish Brown"

end

script.Parent.MouseButton1Click:connect(onClicked)





Report Abuse
KarthonTulliusEnnius is not online. KarthonTulliusEnnius
Joined: 30 May 2010
Total Posts: 230
04 Jun 2016 07:55 AM
Your problem is, the last line of the script calls the function 'onClicked', but you don't have a function onClicked, you have the function 'click'

Change the function name to onClicked...

'function onClicked()'
Report Abuse
ralleybrodey is not online. ralleybrodey
Joined: 15 May 2013
Total Posts: 2221
04 Jun 2016 07:59 AM
Still not working.


Report Abuse
Sub_Dev is not online. Sub_Dev
Joined: 16 Jun 2013
Total Posts: 553
04 Jun 2016 08:01 AM
function click()
local NewSkin = Instance.new("Skin")
NewSkin.Parent = Player
NewSkin.SkinColor = "Reddish Brown"

end

script.Parent.MouseButton1Click:connect(click)




I need a small code of a million lines...
Report Abuse
ralleybrodey is not online. ralleybrodey
Joined: 15 May 2013
Total Posts: 2221
04 Jun 2016 08:02 AM
Nope, still not working.


Report Abuse
Sub_Dev is not online. Sub_Dev
Joined: 16 Jun 2013
Total Posts: 553
04 Jun 2016 08:14 AM
Oh lel I actually paid attention.

You never defined player..


I need a small code of a million lines...
Report Abuse
ralleybrodey is not online. ralleybrodey
Joined: 15 May 2013
Total Posts: 2221
04 Jun 2016 08:15 AM
Oh yeah, I did, but I forgot to write it here.


Report Abuse
Sub_Dev is not online. Sub_Dev
Joined: 16 Jun 2013
Total Posts: 553
04 Jun 2016 08:24 AM
Whole script?


I need a small code of a million lines...
Report Abuse
Sub_Dev is not online. Sub_Dev
Joined: 16 Jun 2013
Total Posts: 553
04 Jun 2016 08:25 AM
also, try debugging by adding prints at different steps.


I need a small code of a million lines...
Report Abuse
ralleybrodey is not online. ralleybrodey
Joined: 15 May 2013
Total Posts: 2221
04 Jun 2016 08:46 AM
No need now, I've fixed it, thanks for the help though.


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