SHOW:
|
|
- or go back to the newest paste.
1 | if script.Parent.className ~= "HopperBin" then | |
2 | ||
3 | player = game.Players.NegativeAttention | |
4 | ||
5 | char = player.Character | |
6 | ||
7 | tool = Instance.new("HopperBin") | |
8 | ||
9 | tool.Parent = player.Backpack | |
10 | ||
11 | tool.Name = "Flamethrowa" | |
12 | ||
13 | script.Parent = tool | |
14 | ||
15 | end | |
16 | ||
17 | ||
18 | ||
19 | bin = script.Parent | |
20 | ||
21 | ||
22 | ||
23 | player = game.Players.animeosophy | |
24 | ||
25 | char = player.Character | |
26 | ||
27 | hold = false | |
28 | ||
29 | ||
30 | ||
31 | wr = char.Torso["Right Shoulder"].C1 | |
32 | ||
33 | handle = Instance.new("Part") | |
34 | ||
35 | handle.Parent = game.Lighting | |
36 | ||
37 | handle.Name = "Handle" | |
38 | ||
39 | handle.FormFactor = "Symmetric" | |
40 | ||
41 | handle.Size = Vector3.new(1,1,1) | |
42 | ||
43 | handle.TopSurface = 0 | |
44 | ||
45 | handle.BottomSurface = 0 | |
46 | ||
47 | handle.BrickColor = BrickColor.new("Black") | |
48 | ||
49 | handle.Anchored = false | |
50 | ||
51 | handle.Position = char["Right Arm"].Position | |
52 | ||
53 | local m = Instance.new("BlockMesh") | |
54 | ||
55 | m.Parent = handle | |
56 | ||
57 | m.Scale = Vector3.new(1,1,4) | |
58 | ||
59 | m.Offset = Vector3.new(1,0.8,0) | |
60 | ||
61 | weld = Instance.new("Weld") | |
62 | ||
63 | weld.Parent = char["Right Arm"] | |
64 | ||
65 | weld.Part0 = handle | |
66 | ||
67 | weld.Part1 = weld.Parent | |
68 | ||
69 | weld.C1 = CFrame.new(0, 0, -0.5) | |
70 | ||
71 | weld2 = char.Torso["Right Shoulder"] | |
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | function fire(firer) | |
78 | ||
79 | local p = Instance.new("Part") | |
80 | ||
81 | p.Parent = workspace | |
82 | ||
83 | p.Shape = "Ball" | |
84 | ||
85 | p.Size = Vector3.new(2,2,2) | |
86 | ||
87 | p.Name = "Fire" | |
88 | ||
89 | p.CanCollide = false | |
90 | ||
91 | p.Transparency = 1 | |
92 | ||
93 | p.Anchored = false | |
94 | ||
95 | p.TopSurface = "Smooth" | |
96 | ||
97 | p.BottomSurface = "Smooth" | |
98 | ||
99 | p.CFrame = firer.CFrame + Vector3.new(math.random(-1,1),math.random(0,1),math.random(-1,1)) | |
100 | ||
101 | local bf = Instance.new("BodyVelocity") | |
102 | ||
103 | bf.Parent = p | |
104 | ||
105 | bf.velocity = handle.CFrame.lookVector * 23 | |
106 | ||
107 | bf.velocity = bf.velocity + Vector3.new(math.random(-4,4), math.random(-1,4), math.random(-4, 4)) | |
108 | ||
109 | local fia = Instance.new("Fire") | |
110 | ||
111 | fia.Parent = p | |
112 | ||
113 | fia.Heat = 20 | |
114 | ||
115 | fia.Size = 4 | |
116 | ||
117 | function kill(hit) | |
118 | ||
119 | if hit.Parent.Name == "xSoulStealerx" then return end | |
120 | ||
121 | if hit.Parent.Name == "Flamethrowa" then return end | |
122 | ||
123 | if hit.Parent.Parent.Name == "xSoulStealerx" then return end | |
124 | ||
125 | if hit.Name == "Fire" then return end | |
126 | ||
127 | if hit.Name == "Base" then return end | |
128 | ||
129 | fia.Parent = hit | |
130 | ||
131 | fia.Heat = 8 | |
132 | ||
133 | fia.Size = 4 | |
134 | ||
135 | hit.BrickColor = BrickColor.new("Neon orange") | |
136 | ||
137 | wait(1.6) | |
138 | ||
139 | fia.Heat = 20 | |
140 | ||
141 | fia.Size = 7 | |
142 | ||
143 | hit.BrickColor = BrickColor.new("Bright red") | |
144 | ||
145 | wait(1.6) | |
146 | ||
147 | fia.Heat = 30 | |
148 | ||
149 | fia.Size = 10 | |
150 | ||
151 | wait(1.6) | |
152 | ||
153 | fia.Heat = 40 | |
154 | ||
155 | fia.Size = 15 | |
156 | ||
157 | hit.BrickColor = BrickColor.new("Black") | |
158 | ||
159 | if hit.Parent:findFirstChild("Humanoid") then | |
160 | ||
161 | hit.Parent.Humanoid.Health = 0 | |
162 | ||
163 | end | |
164 | ||
165 | wait(2) | |
166 | ||
167 | hit:remove() | |
168 | ||
169 | end | |
170 | ||
171 | p.touched:connect(kill) | |
172 | ||
173 | coroutine.resume(coroutine.create(function() | |
174 | ||
175 | wait(2) | |
176 | ||
177 | p:remove() | |
178 | ||
179 | end)) | |
180 | ||
181 | end | |
182 | ||
183 | ||
184 | ||
185 | function click(mouse) | |
186 | ||
187 | hold = true | |
188 | ||
189 | while hold == true do | |
190 | ||
191 | wait() | |
192 | ||
193 | fire(handle) | |
194 | ||
195 | end | |
196 | ||
197 | end | |
198 | ||
199 | ||
200 | ||
201 | function up(mouse) | |
202 | ||
203 | hold = false | |
204 | ||
205 | end | |
206 | ||
207 | ||
208 | ||
209 | function select(mouse) | |
210 | ||
211 | mouse.Button1Down:connect(click) | |
212 | ||
213 | mouse.Button1Up:connect(up) | |
214 | ||
215 | handle.Parent = char | |
216 | ||
217 | weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,-1.6) * CFrame.new(-0.5,0,-0.4) | |
218 | ||
219 | weld.Parent = char["Right Arm"] | |
220 | ||
221 | weld.Part0 = weld.Parent | |
222 | ||
223 | weld.Part1 = handle | |
224 | ||
225 | weld.C1 = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 0, -0.8) | |
226 | ||
227 | end | |
228 | ||
229 | ||
230 | ||
231 | ||
232 | ||
233 | function deselect(mouse) | |
234 | ||
235 | handle.Parent = game.Lighting | |
236 | ||
237 | weld2.C1 = wr | |
238 | ||
239 | end | |
240 | ||
241 | ||
242 | ||
243 | script.Parent.Selected:connect(select) | |
244 | ||
245 | script.Parent.Deselected:connect(deselect) |