I got this error for some reason on my gun script. It used to work but now its changed somehow. Idk how to fix it. It can't find the position of the handle.
local mouse = player:GetMouse()
local Tool = script.Parent
local cooldown = false
local cooldownTime = 0.1
local function Pew()
Tool.Handle.PointLight.Enabled = true
local pew = Tool.Handle.pew
pew:Play()
game.ReplicatedStorage.ShootGun:FireServer(Tool.Handle)
end
local function Shoot()
-- Function code
if cooldown == true then
return
end
cooldown = true
Pew()
print("Firing")
wait(cooldownTime)
cooldown = false
Tool.Handle.PointLight.Enabled = false
end
Tool.Activated:Connect(function()
-- Will run when player clicks with weapon equipped
Shoot()
end)``` Local script in the tool