This variable hole = tool.Hole doesn't work in game
local tool = script.Parent.Parent local hole = tool.Hole
is there anyway to fix this?
If you check the output it probably says something like "Hole is not a member of -Parent name here-". The error is because the script can't find Hole, because it hasn't been created yet. Utilize WaitForChild() on children.
local tool = script.Parent.Parent local hole = tool:WaitForChild("Hole")