"shoot" (which is a part) is not a valid member of tool even though it is?

local player = game.Players.LocalPlayer

local mouse = player:GetMouse()
local hol = script.Parent.shoot
local event = game.ReplicatedStorage.ShootEvent

	local hitPos = mouse.Hit.p
	event:FireServer(hol.Position, hitPos)

Error Message:
As You Can See It Is A Member The Tool:

Not sure if this a studio bug.

That’s odd, what line is it on? Might be a studio thing.
Try changing the variable hol to script.Parent:WaitForChild("shoot")

Thanks man! Your the best! :smiley:

1 Like