How to set a meshpart's position to the position of an attachment

so i am making a magic where like the ground in a small region becomes acid so for that what I am doing is

game.ReplicatedStorage.Magic.Water.Floor.OnServerEvent:Connect(function(player, mouse)
	local character = player.Character
	local HumanoidRootPart = character["Right Leg"]

	local Tornado = game.ReplicatedStorage.Magic.Water.Floor.VFX:Clone()
	Tornado.Transparency = 0
	Tornado.Parent = folder
	Tornado.Pos.Parent = HumanoidRootPart
	Tornado.Position = HumanoidRootPart.Pos.Position
	Tornado.CFrame = HumanoidRootPart.Pos.CFrame
	Tornado.CanCollide = true
	Tornado.Anchored = true
	
	local Dmg = script.Dmg:Clone()
	local dmgmod = require(Dmg.ModuleScript)
	dmgmod.plrname = player.Name
	Dmg.Parent = Tornado
	Dmg.Disabled = false
	print(Tornado.Position)
	print(HumanoidRootPart.Pos.Position)
	wait(5)
	Tornado:Destroy()
end)

the attachment’s position is right, and like in the output there are no errors and the positions are right but for some reason i cant see the vfx

The Position property of Attachments is relative to it’s parent Part. Try WorldPosition instead for the world-space position of the attachment (there’s also a WorldCFrame property).

1 Like

wdym tho so do i like do

Tornado.Position = HumanoidRootPart.Pos.WorldPosition

??

1 Like