So, when I clone a part, I want to position it inside of a part. Instead, it positions it on top of the part that's supposed to be positioned to.
Here's my script:
local tool = script.Parent.Parent
local player = game.Players.LocalPlayer
local hum = player.Character:WaitForChild("Humanoid")
local animation = game.ServerStorage.Anime
local blackthings = game.ServerStorage.Model.Part
local db = false
tool.Equipped:connect(function(a)
for _,v in pairs(tool:GetChildren()) do
v.Transparency = 1
end
a.Button1Down:connect(function()
if not db then
db = true
animation.AnimationId = "http://www.roblox.com/asset/?id=1575109264"
local animTrack = hum:LoadAnimation(animation)
animTrack:Play()
for _,v in pairs(tool:GetChildren()) do
v.Transparency = 0
a = 0
repeat
local blackthingsClone = blackthings:Clone()
blackthingsClone.Parent = v
blackthingsClone.CFrame = CFrame.new(v.CFrame)
a = a + 1
print(a)
until a == 10
wait()
end
wait(5)
db = false
end
end)
end)

5 comments
It's just physics, the cloned part(or the generated one) can't be with "can collide" to don't let this happen!
the thing is, cancollide is turned off. also, it teleports into the ground
You could use CFrame instead. It pretty much ignores parts, unlike Vector3.
How could I use CFrame? Can you explain for me please?
Give me a second to make an answer.