You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I am attmepting to make an NPC which looks like the player which I can animate. I assumed the best way is to clone the players character directly.
- What is the issue? Include screenshots / videos if possible!
I get the error saying the clone variable is nil.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried many discords and forums but cant find a clear answer. Ignore the player jakebball2019 thats my username and is just a test character for now.
local LeaderboardService = {}
function LeaderboardService:UpdateThrone()
local player = game.Players.jakebball2019
local character = player.Character or player.Character:Wait()
local model = character:Clone()
model.Parent = workspace
model.CFrame = character.CFrame
end
return LeaderboardService