I've tried to make a script where you save the Values,** but, when i print the Value, it's always says the number 0...**
If i'm doing this wrong, or just put the Value creation in the wrong place, please tell me!
Spotchoice = {nil,game.ServerStorage.Leftbang,game.ServerStorage.Rightbang,game.ServerStorage.Straightbang,game.ServerStorage.Mohawk,game.ServerStorage.Leftbang}
Index = 1
function Click()
Index = Index + 1
local item= Spotchoice[Index]
if Index >= 6 then
Index = 1
end
player = script.Parent.Parent.Parent.Parent.Parent.Character
if player:FindFirstChild("HairValue")== nil then
HairValue = Instance.new("NumberValue",player)
HairValue.Name = "HairValue"
end
HairValue.Value=Index
print (HairValue.Value)
-- Morphing things.....

4 comments
wheres the print??
Whoops, sorry, i forgot to add that.
This isn't the whole code, is it?
Yea, but that part isn't important. Since it doesnt really relate to the other code block i'm focusing on.