I’m trying to make a forcefield part around a player’s torso, welding it to the torso, but when making the weld and assigning it to the parts, the player gets teleported away with the forcefield for some reason. Is there any way to fix this?
looks like you forgot to cframe the forcefield to the character torso . The game might be teleporting the character to the forcefield cuz of that. Also I recommend Weld Constraints instead of weld
No, the forcefield is not anchored. And secondly, I cannot use the Roblox forcefield because the purpose of my forcefield is to keep other players out of it (and thus away from the player).
I understand how that might be logical, but it’s a bad practice for networking reasons. Here you’re setting 8 properties AFTER setting the parent. This means that you might get the instance replicated and then have the 8 property changes individually replicated to all clients.
This creates a lot of network traffic. When you set the parent last, the client wouldn’t know about the new Instance, as it lives in the server’s nil. Only when you’ve set everything up about the Instance, it can travel all at once to the client.
As a side note, creating Instances where you don’t modify properties right after creation can be 100% done with the second argument, I do it all the time.