Roblox Forum banner

my script ain't work

155 Views 0 Replies 1 Participant Last post by  AnnelidBruh
Code:
game.Players.PlayerAdded:Connect(function(mouse)
    mouse = mouse:GetMouse()
local normalicon = mouse.Icon
normalicon = mouse.Icon
local audio = script.Parent.scatter_gun_shoot
script.Parent.Parent.Equipped:Connect(function(p)
    script.Parent.Parent.Unequipped:Connect(function(o)
        script.Parent.Parent.Activated:Connect(function(a)
            if p then
                mouse.Icon = "rbxassetid://715003186"
                if a then
                    if mouse.Target.Parent.Name == "The_Rake" then
                        mouse.Target.Parent:FindFirstChildWhichIsA("Humanoid").Health = -135
                        audio:Play()
                        local shot = Instance.new("Part")
                        shot.Color = BrickColor.new("Really black")
                        shot.Material = Enum.Material.Granite
                        shot.Size = Vector3.new(0.5, 0.5, 0.5)
                        shot.Position = Vector3.new(mouse.Hit)

                        mouse.Icon = "rbxassetid://12340835205"
                        wait(0.2)
                        mouse.Icon = "rbxassetid://715003186"
                        if o then
                            mouse.Icon = normalicon


                        end

                    end  
                end
                end
                end)
        end)
    end)
end)
why is this not working, I want to snipe rakes from 300 studs can someone explain why this script doesn't work for my tool
See less See more
1 - 1 of 1 Posts
1 - 1 of 1 Posts
Top