So basically, im making a fast-paced marble racing game where the ball rotates insanely fast, and I'm trying to add accessories to it. But, I dont want those attachments to rotate, but I want them to stay in the position of the marble. If I use a weld, the accessory will just rotate. If I constantly update a CFrame, it will look insanely laggy. Any ideas?
*Edit: Forgot to mention, I am currently using the marble's velocity that constantly updates depending on where the humanoid's MoveDirection is going.
You could possibly add a StringValue called Object in the Handles of Accessories, I'd imagine you use a for loop that rotates all the objects. Anything called Object will be put in a part you wouldn't want to rotate so you can put an if statement in the for loop. Let me demonstrate:
if not v:FindFirstChild("Object") then -- code here end
Edit: I forgot to mention that this allows you to weld without rotation. Edit 2: Put a StringValue in all Parts inside the character that you would not like to rotate. Edit 3: I was told that my code is outdated, so I updated it.
I dont know too much lua, but you could make a block that always copies x,y,z position of ball and that keeps a rotation, later, you could weld the hat to that block:
Red is block/ Blue is ball/ Green is hat/ Yellow is weld
https://ibb.co/fQZVFz