I want to move the blocks lower and around the player.
Here is a link to where the blocks are located:
I’ve tried multiplying the CFrame with another one and it still won’t move. I also removed Locked.
game.Players.PlayerAdded:Connect(function(Player)
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character.Humanoid
local Root = Character:FindFirstChild("HumanoidRootPart")
local Amount = math.random(10,15)
for i = 1, Amount do
print("Instancing")
local Rock = Instance.new("Part")
Rock.Anchored, Rock.CanCollide = true, false
Rock.Locked = true
Rock.Name = "GroundRock"
Rock.Parent = game.Workspace
local RandomMulti = math.random(80, 120)
Rock.Size = Vector3.new(3, 3, 3) * RandomMulti/100
Rock.CFrame = Root.CFrame * CFrame.Angles(0, math.rad(360/Amount * i), -10)
Rock.CFrame = Rock.CFrame * CFrame.new(0, -Rock.Size.Y/2, 15)
local NewCFrame = Rock.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)),math.rad(math.random(-360, 360)),math.rad(math.random(-360, 360)))
print("Finished instancing")
end
end)
I’m rewriting a module my friend gave me.