Hi, for whatever reason the If statement in my script seems to instantly break it without actually
putting an error in the output, I’ve used printing to see exactly where it stops working and its in the it statement, I’m pretty sure my pathing is correct so I’m honestly not sure why it doesn’t work. Sorry for the broken english but here’s the script.
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:connect(function(character)
game.ReplicatedStorage.CustomizationSaving.OnServerEvent:Connect(function(plr)
print "ok here1"
if character.DataHair.Value == 1 then
print "ok here2"
Player.CustomizationSaving.Hair.Value = 1
print "this workd i think!1'"
end
end)
end)
end)
Any and all help or advice would be greatly appreciated.