Hey guys! I can’t figure out why my part ( bound) is not moving. I tried Lerping and I tried Just setting the Cframe to my player’s cFrame but it’s not moving at all.
runService.RenderStepped:Connect(function()
local PlayerCframeX = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X
local PlayerCframeZ = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z
game.Players.LocalPlayer.Character.HumanoidRootPart:GetPropertyChangedSignal("Position"):Connect(function()
local Vectoroo = Vector3.new(0,135,0)
bound.CFrame = root.Cframe + Vectoroo -- Here! I try to set the Cframe of the bound part
end)
if count == true then
count = false
local Clouds = {[1] = cloudFolder.Cloud1,[2] = cloudFolder.Cloud2, [3] = cloudFolder.Cloud3}
local randomCloud = math.random(1, #Clouds)
print(Clouds)
local newPart0 = Clouds[randomCloud]
local newPart = newPart0:Clone()
newPart.Position = partPos
newPart.Parent = workspace.CloudStore
local tween = tweenService:Create(newPart,tweenInfo,{['Position'] = newPart.Position + Vector3.new(300,0,0)})
tween:Play()
task.wait(math.random(30,40))
newPart:Destroy()
count = true
end
wait(1)
count = true
end)```