How would I make a character model refresh like every 30 seconds when the real player changes its avatar.. I have no idea how to do this
COMMUNITY QUESTION
Making a character refresh every 30 secs?
1 answer
You could use :LoadCharacter like this
while wait(30) do
for i, v in pairs(game.Players:GetChildren()) do
local lastpos = v.Character.Head.Position
v:LoadCharacter()
workspace:WaitForChild(v.Name):WaitForChild('Head').CFrame = CFrame.new(lastpos)
wait()
end
end
This reloads the character and teleports them back where they were. This may not be an efficient way, but really, is resetting a character every 30 seconds really necessary? Like, rarely no one changes their avatar while playing a game.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Can you explain more?
You could also detect if their shirt/skincolor/face/etc was changed instead so that you don't have to have the script run every 30 seconds