Swapping Tools Script?
So I wanted to ability to swap tools when pressing "q", I get no errors (I've never done this before). Am I approaching this the correct way, or am I doing something wrong?
Please note that this is not the whole script
02 | Player = game.Players.LocalPlayer |
06 | leaderstats = Player:FindFirstChild( "leaderstats" ) |
09 | local Mouse = Player:GetMouse() |
12 | local Ak 47 = Player.Backpack:FindFirstChild( "AK47" ) |
13 | local M 9 = Player.Backpack:FindFirstChild( "M9" ) |
17 | De.Parent = Player.Backpack |
18 | Player.Character.Humanoid:EquipTool(Ep) |
22 | leaderstats.InHeist.Changed:connect( function () |
23 | if leaderstats.InHeist.Value = = true then |
28 | Mouse.KeyDown:connect( function (key) |
30 | if leaderstats.InHeist.Value = = true then |