My character flings to one side when i jump

okay so uh, this is my first post on the Devforum and i want to clarify first of all that im not an expert at scripting ( i literally started scripting last week), but i understand the basics, and i wanted to ask about this problem im having on the studio.

  1. What do you want to achieve? so im trying to make this Gaster Blaster (idk if you know em but its like a beam attack) appear in front of the player, let it do its thing and then make it disappear.

  2. What is the issue? so i CFramed the HumanoidRootPart, put the model in server storage and welded the blaster to the HumanoidRootPart so it spawns in front of the player

    but heres the problem, it works and theres no errors on the output but each time i jump i get flinged to one side and the movement is glitchy
    robloxapp-20221227-1728479.wmv (2.8 MB)
    and for some reason when i change to R6 the Gaster Blaster spawns behind me
    robloxapp-20221227-1731348.wmv (1.9 MB)

  3. What solutions have you tried so far? i tried searching on the Devforum but i didnt find anything, tried searching on YouTube and google but also nothing, im pretty sure its a problem with the WeldConstraint, since when i deleted it my problem got fixed but the Gaster blaster now spawns in front of me but not where im looking at.

Its a normal script btw, maybe the fix is pretty easy and i havent realized but im still learning about scripting and stuff, if you guys could tell me how to fix it i would really appreciate it

oh and ik this sound dumb but do you guys know any post’s or anything explaining CFrame? i had to watch some tutorials on how to do certain things with CFrame to write the code.

make sure modelpositionpart is set to massless to avoid changing character physics

also make sure everything in the model is non collision

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