Hi, I need help changing the hair on my character to super Saiyan hair but, it uses a StarterCharacter in StarterPlayer and AddAsscessory() Doesn't seem to work so can anyone help here is my script btw
local p = game.Players.LocalPlayer --Get the localplayer
local char = p.Character
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.X then
local part = Instance.new("Part", workspace)
part.CanCollide = false
part.Anchored = true
part.Position = p.Character.HumanoidRootPart.Position
part.BrickColor = BrickColor.new("New Yeller")
part.Shape = "Ball"
part.formFactor = 'Symmetric'
part.TopSurface = 0
part.BottomSurface = 0
part.Size = Vector3.new(1, 1, 1)
wait (0.01)
part.Size = Vector3.new(3, 3, 3)
wait (0.01)
part.Size = Vector3.new(5, 5, 5)
wait (0.01)
part.Size = Vector3.new(7, 7, 7)
wait (0.01)
part.Size = Vector3.new(9, 9, 9)
wait (0.01)
part.Size = Vector3.new(10, 10, 10)
wait (0.01)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
part.Transparency = part.Transparency + 0.1
wait (0.05)
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
