Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When I click the button, nothing happens, why?

Asked by 8 years ago
01local Player = game.Players.LocalPlayer
02local gender = game.ServerStorage[Player.Name].Gender.Value
03local playerhair = game.ServerStorage[Player.Name].Hair.Value
04local hairs = game.ServerStorage.Hairs
05local buttonright = script.Parent[">"]
06local buttonleft = script.Parent["<"]
07 
08function onClickRight()
09if playerhair == 0 then
10if gender == "Male" then
11playerhair = 1
12local malehair1 = hairs.MaleHair1:Clone()
13malehair1.Parent = Player.Character
14local w = Instance.new("Weld")
15w.Part0 = Player.Character.Head
View all 50 lines...

It is not working but I get no error in the output either, help please?

0
1st you are trying to access ServerStorage from a localscript? http://wiki.roblox.com/index.php?title=API:Class/ServerStorage User#5423 17 — 8y
0
ohh thanks AdamFunMaker 35 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

You must be trying to access ServerStorage. You can't do that, I think.

API:Class/ServerStorage

Ad

Answer this question