00:44:32.981 - Players.MrLordFearLT.Backpack.AK-47.Scripts.FrontendScript:4: attempt to index local 'player' (a nil value)


--Variables--
local tool = script.Parent.Parent
local player = game:GetChildren("Players").LocalPlayer
local mouse = player:GetMouse()
local hole = tool:WaitForChild("Hole")
local handle = tool:WaitForChild("Handle")
local actionService = game:GetService("ContextActionService")
local mouseDown = false
local equipped = false

**DAFUQ **

5 comments

0

Try local player = game:GetService("Players"):WaitForChild("LocalPlayer")

0

THANKS.

0

mark as [Solved]

0

game:GetService not game:GetChildren

0

LocalPlayer is a property of the Players service, not a child.