|
| 25 May 2017 02:28 AM |
Trying to do a character gui changer This script was saved on my script folder from about 6 months ago and it worked before local player = script.Parent.Parent.Parent.Parent.Parent.Parent local Hat = player:WaitForChild("Hat") local HatFolder = (game:GetService('ReplicatedStorage'):WaitForChild('Hats') local Count = 1 local Hats = ()
local LB = script.Parent:WaitForChild('LeftButton') local RB = script.Parent:WaitForChild('RightButton')
function update() script.Parent:WaitForChild('HatName').Text = Hats[Count].Name Hat.Value = Hats[Count] end for i,v in(HatFolder:GetChildren do()) Table.insert(Hats,v) end)
LB.MouseButton1Down:Connect(function)) if Count > 1 then Count = Count - 1 Update() end
RB.MouseButton1Down:Connect(function)) if count >= #hats then else Count = Count + 1 Update() end
Guitar hero more like guitar zero |
|
|
| Report Abuse |
|
|
|
| 25 May 2017 02:34 AM |
Just a question.
1. LocalScript or ServerScript? |
|
|
| Report Abuse |
|
|
|
| 25 May 2017 02:41 AM |
Sever script
Guitar hero more like guitar zero |
|
|
| Report Abuse |
|
|
|
| 25 May 2017 03:42 AM |
I would highly suggest using a local script for any form of GUI work.
Once you do that, you can easily do:
local player = game.Players.LocalPlayer
That might have something to do with it right now. It's really late for me so I can't be bothered to look at in studio right now, but if this isn't resolved in the morning I'll look into it. |
|
|
| Report Abuse |
|
|
|
| 25 May 2017 03:44 AM |
| There are a great number of syntax errors in your script. I can tell that you either did not write this or have no idea how it works, so I would suggestion that rather than us simply 'fixing' it for you, you go and take a look at some basic introductory info on the wiki. |
|
|
| Report Abuse |
|
|