SHOW:
|
|
- or go back to the newest paste.
1 | if script.Parent.className ~= HopperBin then | |
2 | local h = Instance.new(HopperBin) | |
3 | - | h.Parent = game.Players.Xtherisus.Backpack |
3 | + | h.Parent = game.Players.Tomppa_Beats.Backpack |
4 | h.Name = SuicideBomb! | |
5 | local p = Instance.new(Part) | |
6 | p.Parent = game.Workspace.FunctionOffset | |
7 | p.Name = SuicideBomb | |
8 | p.Size = Vector3.new(2,2,1) | |
9 | p.TopSurface = 0 | |
10 | p.BottomSurface = 0 | |
11 | p.Locked = true | |
12 | p.BrickColor = BrickColor.new(Really black) | |
13 | local w = Instance.new(Weld) | |
14 | w.Parent = p.Parent | |
15 | w.Part0 = p | |
16 | w.Part1 = p.Parent.Torso | |
17 | w.C0 = CFrame.new(0,0,-1) | |
18 | script.Parent = h | |
19 | local d = Instance.new(Decal) | |
20 | d.Parent = p | |
21 | d.Face = Back | |
22 | d.Texture = httpwww.roblox.comassetid=28824625 | |
23 | Instance.new(BlockMesh).Parent = p | |
24 | end | |
25 | ||
26 | tool = script.Parent | |
27 | ||
28 | function click(mouse) | |
29 | if game.Workspace.FunctionOffsetFindFirstChild(SuicideBomb) ~= nil then | |
30 | local s = Instance.new(Sparkles) | |
31 | s.Parent = game.Workspace.FunctionOffset.SuicideBomb | |
32 | s.Color = Color3.new(.5,.5,0) | |
33 | wait(3) | |
34 | local e = Instance.new(Explosion) | |
35 | e.Parent = game.Workspace | |
36 | e.BlastPressure = 1000000 | |
37 | e.BlastRadius = 15 | |
38 | e.Position = game.Workspace.FunctionOffset.SuicideBomb.Position | |
39 | else | |
40 | script.ParentRemove() | |
41 | end | |
42 | end | |
43 | ||
44 | function selected(mouse) | |
45 | mouse.Button1Downconnect(function () click(mouse) end) | |
46 | end | |
47 | ||
48 | tool.Selectedconnect(selected) |