I am making a wall that should move with ApplyImpulse on the client but for some reason doesn’t move at all most of time.
for i, Wall in ipairs(ShuffleWallsTab) do
Wall:ApplyImpulse(Wall:GetAttribute("Move"))
wait(5)
end
Note: The GetAttribute does return a Vector3 it’s different depending on the wall and I have messed with the numbers a bit but sometimes it works and sometimes it doesn’t.
I am using 0,0,1000, -1000,0,01000,0,00,0,-1000 for the 4 different walls
So, are you creating parts on the server and trying to move them on the client?
If that’s the case, you shouldn’t be relying on client input since it’ll just make your game easy to exploit with. Assuming this is multiplayer, you should be doing ApplyImpulse on the server when you want the walls to move.
I was moving the walls to mix up unanchored parts for the shuffling and making that different for each client. But i’m guessing making the shuffling different for each client is unnecessary am I right?
You are right, I shouldn’t be using ApplyImpulse on the client from parts on the server. I tried creating the parts on the client to see if it fixes my issue but it doesn’t for some reason.