Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Equipping an item I made teleports me to where the item is located, how can I fix this?

Asked by 4 years ago

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

0
its anchored dude CheckeredDevAlt 25 — 4y

3 answers

Log in to vote
1
Answered by
Robowon1 323 Moderation Voter
4 years ago

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.

Ad
Log in to vote
0
Answered by 4 years ago

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.

0
I realized that right after I asked imperialsnoop377 5 — 4y
Log in to vote
0
Answered by 4 years ago

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.

Answer this question