script.Parent.OnServerEvent:Connect(function(plr)
local getfromgame = game.Workspace:WaitForChild(plr.Name)
local clone = getfromgame:Clone()
local cf = CFrame.new(52.66, 0.5, -30.56) * CFrame.Angles(0, math.rad(-90), 0)
clone.Name = plr.Name.."CLONED"
clone:SetPrimaryPartCFrame(cf)
clone.Parent = plr.PlayerGui.Avatar.PoliceScotlandUniform.ViewportFrame
end)
I can’t figure out why my script is returning nil when I try to name my clone. Any help would be good :).
When I print the name, it’s not nil.