local Player = game.Players.LocalPlayer
local UName = Player.Character.Name
for i,v in pairs(workspace:GetChildren())do
if v:IsA("Part") and v.Name == "Tape" then
game.workspace.UName.HumanoidRootPart.CFrame = v.CFrame
end
end
I have error UName is not a valid member of workspace

3 comments
try game.Players.LocalPlayer.Name
Why don't you just user userID?
What are you trying to do? Are you trying to make an admin only room or something?