Part moving differently in roblox studio, but working in game?

For some reason my part with the particles (that has the monster face thing) is moving differently in roblox studio than it is in actual roblox and for some reason the particles aren’t rendering (or the part with the particles is behind the player for literally no reason).

I want to see the same thing in game as i do in studio and for some reason it isn’t working…

This is really confusing me and I would really appreciate some help if possible :sob:

The code works by adding an attachment to the players head, adjusting the position of the attachment, and then when the player moves, it tweens the particle part to the attachment on the head

Here is a video attachment to demonstrate what’s going on

PS: notice the movement of the part in the roblox studio one, it seems to start at the back and then morph through the player and ends up in front of them (which is what I want) while in roblox, when you turn around, for some reason the part starts in front of the player and then goes into the back of the player!??!

That is really odd… it could have to do with the zoffset of the particles?
Really cool game btw thats amazing

Appreciate it! My goal was to make this entity in 1 day start to finish and just when I thought I did it, this came up :sob:

I don’t think it has anything to do with the z-offset of the particles. it’s an issue with the part that actually has the particles. The part is being tweened differently in studio vs roblox for no reason lol

You can debug this by using developer console (if you press f9 in game it’ll open). So print out the position of the part, also print out the properties of the particles.

Alright I just did what you said and for some reason the worldposition of the attachment and the position of the particle part are DIFFERENT in roblox but pm the same in studio. What should i do with this information?

Appreciate your help by the way!! :smile:

PS: I’ve observed using freecam that the the particle part is moving forwards and backwards but it seems way too exadurated, as its moving like 50 studs away from the position its supposed to be tweening to. I have the attachments visible property enabled and i can see the attachment is where it should be as well?? it’s really strange

Another observeration ive made is that for some reason im invisible on other players screen after the entity finishes attacking… when i tried to teleport them to my character in the console, it teleported them to a random position and they said they could see my name tag for a second

This is the only line that interferes with the players position:

TS:Create(Character.HumanoidRootPart, TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut), {CFrame = Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(180), 0)}):Play()

No way I never thought it would be this… I’m pretty stupid and I don’t know how this broke it but I accidentally named starter character scripts to “health” instead of naming something INSIDE of starter character scripts to “health”… I also made a teleportation script when you press t and i realized when i dont use that it works!!!

Thank you everybody for there help and i apologize for my stupidity lol

I think what was causing the part to move differently is the teleportation script… the particle part script thought that my character was somewhere else

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.