I'm trying to make a railgun but I keep encountering one problem that I can not solve. Whenever I spawn in to test the railgun It teleports me to a specific point, this only happens when it is anchored, the entire thing other than the handle disappears when it is unanchored, I have never had this problem before, my character is R6 and there are no scripts that would mess this up.
I am wondering if I am missing something or if there is a script I can use to fix this
Any parts in a tool can't be set as anchored otherwise the character will just teleport to the relative position in workspace, if you want parts to stay together you can use welds.
Tools are not supposed to be anchored. You will need to weld all of the parts on your gun to the handle, and then unanchor it. This will allow them to move freely without falling apart.
Tools are not supposed to be anchored. If they are anchored they stay in one position and will teleport the player to the position of the tool.