View difference between Paste ID: 2VwyfUNq and qC2sxu0K
SHOW: | | - or go back to the newest paste.
1
--Made by 112isaiah
2
--NAMES THAT START WITH A NUMBER WILL NOT WORK!
3
--Script is not local
4
--JUST CHANGE ASALTYSKID TO YOUR USERNAME
5
 
6
 
7-
me = game.Players.BNutty07
7+
me = game.Players.timetodie23232223
8
sel = false
9
mousehold = false
10
mode = 1
11
speed = 1
12
 
13
function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
14
part.Parent = parent
15
part.formFactor = form
16
part.CanCollide = collide
17
part.Transparency = tran
18
part.Reflectance = ref
19
part.Size = Vector3.new(x,y,z)
20
part.BrickColor = BrickColor.new(color)
21
part.TopSurface = 0
22
part.BottomSurface = 0
23
part.Anchored = anchor
24
part.Locked = true
25
part:BreakJoints()
26
end
27
 
28
if script.Parent.className ~= "HopperBin" then
29
    h = Instance.new("HopperBin",me.Backpack)
30
    h.Name = "Watch"
31
    script.Parent = h
32
end
33
bin = script.Parent
34
 
35
cam = workspace.CurrentCamera
36
function sel(mouse)
37
    sel = true
38
    mouse.Button1Down:connect(function()
39
        mousehold = true
40
        if mode == 1 then
41
            me.Character = nil
42
            cam.CameraSubject = nil
43
            cam.CameraType = "Fixed"
44
            mode = 0
45
        else
46
            while sel and mousehold do
47
            local dis = (cam.CoordinateFrame.p - mouse.Hit.p).magnitude
48
            local pew = Instance.new("Part")
49
            prop(pew,workspace,false,0.1,0,0.1,1,0.1,"Bright yellow",true,"Custom")
50
            pew.CFrame = CFrame.new(cam.CoordinateFrame * CFrame.new(math.random(-100,100)/10,math.random(-100,100)/10,math.random(0,100)/10).p,mouse.Hit.p) * CFrame.Angles(math.pi/2,0,0) * CFrame.new(0,-dis/2,0)
51
            local mes = Instance.new("CylinderMesh",pew)
52
            mes.Scale = Vector3.new(15,dis,15)
53
            local ex = Instance.new("Explosion",workspace)
54
            ex.BlastRadius = 6
55
            ex.BlastPressure = 450000
56
            ex.Position = pew.CFrame * CFrame.new(0,-dis/2,0).p
57
            ex.Hit:connect(function(p)
58
                if p:GetMass() < 100 then
59
                    p.BrickColor = BrickColor.new("Black")
60
                    p.Transparency = 0.3
61
                    p.Anchored = false
62
                    p:BreakJoints()
63
                end
64
            end)
65
            coroutine.resume(coroutine.create(function()
66
                for i=0.1,1,0.2 do
67
                    wait()
68
                    pew.Transparency = i
69
                end
70
                pew:remove()
71
            end))
72
            wait()
73
            end
74
        end
75
    end)
76
    mouse.Button1Up:connect(function()
77
        mousehold = false
78
    end)
79
end
80
 
81
function desel()
82
    mousehold = false
83
    sel = false
84
end
85
 
86
bin.Deselected:connect(desel)
87
bin.Selected:connect(sel)