#what is wrong with this script

1 messages · Page 1 of 1 (latest)

thorny geyser
#

it says that the player chracter clone is nil

#

local plr = script.Parent.Player
local nameOfContestant = script.Parent.NameOfContestant
local contestants = workspace.CONTESTANTS
local text1 = script.Parent.Screen.SurfaceGui.text1
local text2 = script.Parent.Screen.SurfaceGui.text2
local text3 = script.Parent.Screen.SurfaceGui.text3

wait(20)

if plr.Value.Value then
local player = plr.Value.Value
if player and player:IsA("Player") then
local char = player.Character or player.CharacterAdded:Wait()
if char then
local g = player.Character:Clone()
if g then
-- for i, scriptH in ipairs(g:GetChildren()) do
-- if scriptH:IsA("Script") then
-- scriptH:Destroy()
-- end
--end
g.HumanoidRootPart.Anchored = true
g.HumanoidRootPart.CFrame = script.Parent.CharacterPosition.CFrame
g.Parent = script.Parent
end
end
end

#

pls help

mystic ember
#

character.archivable=true

#

but you should really be using players:loadcharacterfromdescription instead

thorny geyser
#

i di it