|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
| |
|
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 |
|
|
|
| 04 Jun 2016 08:15 AM |
Oh yeah, I did, but I forgot to write it here.
|
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 04 Jun 2016 08:46 AM |
No need now, I've fixed it, thanks for the help though.
|
|
|
| Report Abuse |
|
|