So, I have a script cloning an effect from ServerStorage. BUT, the position stays the same as if it was cloned, and it’s position wasn’t changed via the script. I have tried target.HumanoidRootPart.Position, and that didn’t work.
this is my script.
function abilities(newTower, config, target, player, targetMode)
local Impact = game.ServerStorage.Effects.LargeImpact:Clone()
Impact.Parent = newTower
Impact.CanCollide = false
Impact.shockwave.Speed = 10
Impact.Impact.Speed = 10
Impact.Anchored = true
Impact.Position = target:GetPivot().Position --position not working, stays in same position when in server storage.
wait(2)
Impact.Impact.Enabled = false
Impact.shockwave.Enabled = false
Impact:Destroy()
for i,enemy in pairs(workspace.Mobs:GetChildren()) do
if (target.HumanoidRootPart.Position - enemy.HumanoidRootPart.Position).Magnitude <= config.SplashRadius.Value then
damage(enemy, config)
end
end
end