Okay, so basically I've been trying to clone the player.Character in a server script, but it keeps saying "attempt to index local 'Astral' (a nil value)" even though Its not a nil value. Does anyone know whats happening?
local PrueFire = game.ReplicatedStorage.Prue PrueFire.OnServerEvent:Connect(function(Player,Spell,Misc) if Spell == "Astral" then local Char = Player.Character if Char then local Astral = Char:Clone() Astral.Parent = workspace end end end)
This question was previously answered here, you need to set the Archivable property of Character to true
local PrueFire = game.ReplicatedStorage.Prue PrueFire.OnServerEvent:Connect(function(Player,Spell,Misc) if Spell == "Astral" then local Char = Player.Character if Char then Char.Archivable = true local Astral = Char:Clone() Astral.Parent = workspace end end end)