Cloning the character does not seem to be working

I’ve been having trouble with this simple script for the past hour, and I can’t seem to find whats going wrong in it.

--// Services
local Players = game:GetService("Players")

--// Vars
local Player = Players.LocalPlayer

repeat wait() until Player.Character

local Character = Player.Character

--// Main
Character.Archivable = false

local clone = Character:Clone().Parent == game.Workspace
clone.Name = "Testing"
Character.Archivable = true

I researched a bit before hand on how to clone characters, and noticed that you needed to set their archivable property to false, so I’ve done that.

I do get an error form the console though,Screen Shot 2020-08-22 at 3.49.35 PM

Which seems to be coming from `Character:Clone().Parent == game.Workspace

I’m kinda stumped by this, because all the articles I go to say to turn archivable off on the character, and then, you just normally clone it.

Thanks if you could help me out!

1 Like

Screen Shot 2020-08-22 at 3.59.13 PM

Studio seems to not like that :confused:

You’re attempting to assign an assignment to a variable in Lua, which isn’t possible (local a = b = c).