I might be making a stupid mistake or be completely blind because this usually works. But I’m using math.random to choose a random model from a folder, and then clone it, and then change the player’s character to it. Basically, morph the player, it keeps returning 1 though, this is my code:
local randomObject = Models[math.random(1, #Models:GetChildren())]
local oldModel = player.Character
local newModel = randomObject:Clone()
local oldCFrame = oldModel:GetPrimaryPartCFrame()
newModel.Name = player.Name
player.Character = newModel
newModel.Parent = workspace
newModel:SetPrimaryPartCFrame(oldCFrame)
oldModel:Destroy()
Status.Value = player.Name.." became a "..randomObject.Name