#how do i replace the player model
1 messages · Page 1 of 1 (latest)
“I have a timer for 30s and when it hits 0s I want it to replace the player model with another model called Noob in Workspace. How can I do that?”
Here’s how you can handle that in Roblox:
⸻
✅ Script Example
Put this in ServerScriptService:
** You are now Level 4! **
-- Example: replace player character with a "Noob" model after 30 seconds
local Players = game:GetService("Players")
-- Function to replace a player's character
local function replaceCharacter(player)
local noobModel = workspace:FindFirstChild("Noob") -- Make sure this model exists
if noobModel then
local clone = noobModel:Clone()
clone.Name = player.Name -- character must have the same name as player
player.Character = clone
clone.Parent = workspace
player:LoadCharacter() -- refreshes the character
else
warn("Noob model not found in Workspace")
end
end
-- Example timer (runs for each player that joins)
Players.PlayerAdded:Connect(function(player)
task.wait(30) -- wait 30 seconds
replaceCharacter(player)
end)