Basically I want a magic circle to appear in front of the humanoidrootpart when I use a tool and when I use the tool for the first time then it works perfectly, but the second and third time ect. would move the magic circle to the right and I don’t know how to fix it.
and here’s the code:
local PosMC = char:WaitForChild("HumanoidRootPart").Position
local TorsoWeld = char:WaitForChild("HumanoidRootPart")
local CircleWeld = Wave.WindMC:Clone()
CircleWeld.Parent = char
CircleWeld.Size = Vector3.new(0.1,0.1,0.1)
CircleWeld.Position = (PosMC)
local weld = Instance.new("ManualWeld")
weld.Name = "MCWeld"
weld.Parent = workspace
weld.Part0 = TorsoWeld
weld.Part1 = CircleWeld
CircleWeld.Position = CircleWeld.Position + Vector3.new(0.1,0.1,-5)
for i = 1,10,1 do
CircleWeld.Size = CircleWeld.Size + Vector3.new(0.75,0.75,0)
CircleWeld:FindFirstChild("Decal1").Transparency = CircleWeld:FindFirstChild("Decal1").Transparency - 0.1
CircleWeld:FindFirstChild("Decal2").Transparency = CircleWeld:FindFirstChild("Decal2").Transparency - 0.1
wait(0.0000001)
end