How i can make something like this with script?
This is something like an ability that will be invoked by the user. The plan is also to make it possible to conveniently adjust the distance, so that no holes are left behind.
My try to make this:
local character = game.Players.LocalPlayer.Character
function Createpart()
local part = Instance.new("Part")
part.Parent = character
part.Size = Vector3.new(1,1,6)
local Weld = Instance.new("Weld", part)
Weld.Name = "Weld"
Weld.Part0 = part
Weld.Part1 = character.HumanoidRootPart
return part
end
for i = 1,8,1 do
local Part = Createpart()
Part.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
+ Vector3.new(math.cos(math.rad(i) * 45) * 10,0,math.sin(math.rad(i) * 45) * 10)
end