I'm making a custom character creator and it works perfectly in studio but not In game...
In studio the hats fit nicely as they should but in game they're in the wrong positions..
It was working fine before..please help.
Player = game.Players.LocalPlayer
HairValue = script.Parent.Parent:WaitForChild("ControlScript").HairValue
script.Parent.MouseButton1Click:connect(function()
local CurrentHatA = Player.Character:WaitForChild("Accessory" .. HairValue.Value)
if script.Parent.Parent.ControlScript.HairValue.Value > 1 then
script.Parent.Parent.ControlScript.HairValue.Value = script.Parent.Parent.ControlScript.HairValue.Value - 1
CurrentHatA:Destroy()
local NewHatA = game.ReplicatedStorage.Hair["Accessory" .. HairValue.Value]:Clone()
NewHatA.Handle.BrickColor = BrickColor.new(Color3.new(script.Parent.Parent.ControlScript.HairColorValue.Value))
NewHatA.Parent = Player.Character
print("7")
elseif script.Parent.Parent.ControlScript.HairValue.Value == 1 then
script.Parent.Parent.ControlScript.HairValue.Value = 30
CurrentHatA:Destroy()
local NewHatA = game.ReplicatedStorage.Hair["Accessory" .. HairValue.Value]:Clone()
NewHatA.Handle.BrickColor = BrickColor.new(Color3.new(script.Parent.Parent.ControlScript.HairColorValue.Value))
NewHatA.Parent = Player.Character
end
end)
