Hey, I wanted to move to profile service recently, tho i keep running into this problem where if i add characterAdded it won’t check it for the first time only if you get resetted. Is there any way to fix this without causing any problems with profile service ? here is the way i used to do it
try adding a check for the existence of Character before CharacterAdded:
if player.Character then
task.wait()
player.Character:PivotTo(CFrame.new(0,1,0))
end
1 Like
will this always work tho ? it seems to simple to work everytime
Yes! this method will always work fine
but if you are still worried, you can add task.spawn and pcall to be 100% safe:
pcall(function()
if player.Character and player.Character.primaryPart then
task.spawn(function()
task.wait()
player.Character:PivotTo(CFrame.new(0,1,0))
end)
end
end)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
