Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Making a character refresh every 30 secs?

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

2 comments

0

Can you explain more?

0

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

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.