im relativley new to roblox studio, i changed my script around so that i dont have to script each parts elements induvidually. However, now it wont let me set the position to the players position, why?
local playerpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Position
local juicecount = 0
local juicescript = workspace.Juicescript
local debounce = false
local GrapejBase = workspace.Grapejuice
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.E then
if debounce then return end
debounce = true
if juicecount < 2 then
local grapejuice = GrapejBase:Clone()
local juiceclone = juicescript:Clone()
juiceclone.Enabled = true
grapejuice.Parent = workspace.juices
juiceclone.Parent = grapejuice
juicecount = juicecount + 1
print(juicecount)
wait(10)
debounce = false
end
end
end)```