#how do i fix this light not removing its hitbox on unequip(STILL NEED HELP)

1 messages · Page 1 of 1 (latest)

unique lark
#

ill provide all the scripts below

#
local Debounce = false
local Distance = 26
local BlindAnim = game.ReplicatedStorage.ReplicatedAnimations.RakeBlindAnimation
local BlindPart = script.Parent.Light
while true do
    wait()
    if workspace.Blinded.Value == false then
        local MonsterTorso = workspace.The_Rake.Torso
        if (MonsterTorso.Position - BlindPart.Position).magnitude < Distance and Debounce == false then
            Debounce = true
            local Monster = workspace:FindFirstChild("The_Rake")
            local AddBlind = script.Blind:Clone()
            AddBlind.Parent = Monster
            AddBlind.Disabled = false
            workspace.The_Rake.Stun.GetStuns.Value = workspace.The_Rake.Stun.GetStuns.Value + 0
            wait(1)
            Debounce = false 
            end
    end
end
#

damage

#

blind

#
while true do
    wait()
    if script.Parent.Power.Value == 0 then
        repeat
            wait()
            script.Parent.UsePower.Disabled = true
            script.Parent.On.Value = 0
            script.Parent.PowerEnabler.Disabled = true
            script.Parent.MainScript.Disabled=true
            script.Parent.OnScript.Disabled=true
        until  script.Parent.Power.Value == 200
    elseif script.Parent.Power.Value == 200 then
        script.Parent.MainScript.Disabled=false
        script.Parent.OnScript.Disabled=false
    end
end
#

main disablr

#

repeat wait() until script.parent.parent:FindFirstChild("Humanoid")
local Tool = script.Parent
local Clicked = false

script.parent.Equipped:Connect(function()
end)

script.parent.Unequipped:Connect(function()
    script.Parent.On.Value = 3
end)

function ToolClicked()
    if script.Parent.On.Value == 0 and Clicked == false or script.Parent.On.Value == 3 and Clicked == false then
        Clicked = true
        script.Parent.PowerEnabler.Disabled = true
        script.Parent.PowerRecharge2.Disabled = true
        script.Parent.On.Value=1
        --wait(0.7)
    Clicked = false
    elseif script.Parent.On.Value == 1 and Clicked == false then
        Clicked = true
        script.Parent.PowerEnabler.Disabled = false
        script.Parent.On.Value=0
        --wait(0.7)
        Clicked = false
        --wait(2)
        --script.Parent.PowerRecharge2.Disabled = false
  end
  end

Tool.Activated:Connect(ToolClicked)
#

main script

#

i think thats all u need

#

its from a rake testing game uv flashlight thingy

#

i was tryin to fix it for the past hour but i couldnt

#

plez @ping me if ur ever gonna reply with help

#

if u can atleast idk if u cna

#

can