#trying to spawn particle inside attachment at my feet but its spawning in random locations.

24 messages · Page 1 of 1 (latest)

rocky flint
#

this is my current script the other partaining code isnt needed.

'''
-- Create an attachment at the player's feet
local attachment = Instance.new("Attachment")
attachment.Position = player.Character.HumanoidRootPart.Position
attachment.Parent = player.Character.HumanoidRootPart

-- Duplicate particle from ReplicatedStorage
local particle = ReplicatedStorage.floorattach:Clone()
particle.Parent = attachment

particle:Emit(10)


-- Destroy particle after a delay
wait(0.5)
attachment:Destroy()

end
'''

tribal bluff
rocky flint
#

I gotta name shit better

full fog
#

bro

pliant ibexBOT
#

studio** You are now Level 2! **studio

full fog
#

do you know how to script?

#

well anyway

#

the reason

#

is because

#

that the attachments position is only set once

#

so as the player moves their humanoidrootpart changes

eager gate
#

if u want the attachment to be in the middle of your rootpart do attachment.positon = vector.new(0,0,0)

#

but since its at the feet put it to like 0,-5,0 or smth

#

putting ur attachment's position to the rootpart will just add it to its the rootpart's position, you should use attachment.worldposition for that instead

full fog
#

didnt need a repeat of what i js said

eager gate
#

your thing was too passive-aggressive and didnt make much sense to me ngl

full fog
#

"passive aggressive"

#

i said it clear enough

#

no need to make it more complicated

#

if you want me to explain it more its that the attachments position is only set once the player spawns

#

so it will only stay there and not follow the humanoid

ionic orbit
#

quepedo