Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

When my gun is equipped, my character won't move?!

Hey! I needed a gun, so i took a free model. I know you can make your own gun, but i was simply just lazy. And don't have really time to script the whole gun etc. So i found it easier to take one.

Now i have a problem.... When i equip the gun, i get TP'd to the location the gun was inserted in. It's unachored and unlocked. But it simply breaks the whole gun. Because i can't shoot, i can't do nothing. My character is just hanging there.

Then i found another gun! One who works! (also a FM) But with this one, i also have problems....

  • My cursor or disappears when i unequip the gun, or stays as the gun cursor
  • when i unequip the gun, and i walk, and then re-equip the gun, i get Teleported back to the last location where i equipped it. Is it because the gun loads to fast or something?

So basically my question for gun 1 is; What makes my character teleport to the place where the gun was, before i putted it in server storage?
And for gun 2 is; What causes this glitch, that i get teleported to the old location of the gun.

I don't know if you want the codes (since those are very long) if so, please let me know.

Image/video(s): http://gyazo.com/bd10f730b4cce489d3fc78799c6a2010 http://gyazo.com/6128b3afeff433b53562a88b8120c28d

2 comments

0

you are not even showing us a script, how are we supposed to help? just guess?

0

I said, if you guys need it please ask me, since its a very long script. Like super duper long....

1 answer

If the tool is anchored it won't let the player move. Try un-anchoring the tool.

1 comment

0

I tried un-anchoring it, but it doesn't let me.... Then i tried doing it trough a script, but that doesn't work either..

This discussion is preserved as it was. New answers, comments, and votes are closed.