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