Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Part1.Position = Part2.Position not working?

Asked by
c_odez 20
3 years ago
Edited 3 years ago

code:

local particle = game.ServerStorage.Particles.Explosion:Clone()
particle.Position = oiltanker.Position
particle.Parent = game.Workspace["Temporary Objects"]
particle.Attachment.ParticleEmitter:Emit(5000)
print(particle.Position, oiltanker.Position)

output:

-19.7250023, 35.9000053, -8.5500021 -19.7250023, 35.9000053, -8.5500021

in the script i set the particle's position to the oil tanker's position but when i test it they aren't in the same position. the script is a function from a module called in a server script, and there's nothing else changing either of their positions. the particle is anchored and the oil tanker is welded to an anchored part with a weld constraint.

0
try replacing Position with CFrame Z3PIC 0 — 3y

Answer this question