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

Roblox Equip Weapon Help Clones into backpack but glitches out player when selected?

Asked by 6 years ago

I'm using a GUI to control the player and the weapons they choose.(Filtering Enabled is on)

Places the weapon in the user's backpack.

game.Lighting["1"]:clone().Parent = Player.Backpack
currentWeapons[slot] = Player.Backpack["1"]
-- Code to equip the weapon
Player.Character.Humanoid:EquipTool(etool)
--etool = currentWeapons[1] in this case

The problem is when I go to equip it, it's not equipping to the player but in the same spot in a game, and causes the player's arm and body to rotate at weird

Thanks for your help much appreciated

0
Are you sure it's not the weapon itself that's causing the problem? Also try adding a wait() between lines 2 and 4. User#20279 0 — 6y

1 answer

Log in to vote
0
Answered by
AyeJude 41
6 years ago

The weapon it self is anchored. Unanchor it, that should fix the problem.

0
Also Turn cancollide off AyeJude 41 — 6y
0
I did that, the animation is played but the weapon disappears. TheGreatSailor 20 — 6y
0
^ Does your weapon have a handle? User#20279 0 — 6y
0
yes TheGreatSailor 20 — 6y
0
When I added a weapon to the starter pack it seemed to fix it for some unknown reason TheGreatSailor 20 — 6y
Ad

Answer this question