local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char.Humanoid
local t = char.Torso
local deb = false
function onActivated()
if deb then
return
end
print("Tool Activated!")
deb = true
local ball = Instance.new("Part")
ball.FormFactor = "Custom"
ball.Shape = "Ball"
ball.BottomSurface = "Smooth"
ball.TopSurface = "Smooth"
ball.CanCollide = false
ball.Size = Vector3.new(0.5,0.5,0.5)
ball.BrickColor = BrickColor.new("Really black")
local subject = Instance.new("Part")
subject.Parent = t
subject.FormFactor = "Custom"
subject.CanCollide = false
subject.Size = Vector3.new(0.1,0.1,0.1)
subject.BrickColor = BrickColor.new("Really black")
ball.Parent = subject
local w = Instance.new("ManualWeld")
w.Name = "Weldy"
w.Parent = subject
w.Part0 = t
w.Part1 = subject
w.C0 = CFrame.new(0,0,0)
local w2 = Instance.new("ManualWeld")
w2.Name = "Weldy"
w2.Parent = ball
w2.Part0 = subject
w2.Part1 = ball
w2.C0 = CFrame.new(0,0,2.5)
local angle = 0
while true do
w.C0 = CFrame.new(0,0,0) * CFrame.Angles(0, angle, 0)
wait()
angle = angle + 0.1
end
wait(5)
deb = false
end
script.Parent.Activated:connect(onActivated)
Okay, I'll explain the problem im having.
You left click, a ball starts rotating around your torso. Everything fine. Debounce works fine 100% but:
If you left click, the ball appears rotating, the debounce countdowns to 0. and in that countdown iterval you start spamming left click. It jumps out the debounce and starts spamming and ignoring the debounce. Any help ?

2 comments
Is this the full script? There are a few things that shouldn't work, but, you say it works
It is the full script.