SHOW:
|
|
- or go back to the newest paste.
1 | m = game:service'Players'.LocalPlayer:GetMouse() | |
2 | game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false) | |
3 | local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head) | |
4 | txtfag.Adornee = Hello | |
5 | txtfag.Name = "Loading CS:GO..." | |
6 | txtfag.Size = UDim2.new(2, 0, 1.2, 0) | |
7 | txtfag.StudsOffset = Vector3.new(-5, 3, 0) | |
8 | local textfag = Instance.new("TextLabel", txtfag) | |
9 | textfag.Size = UDim2.new(6, 0, 1, 0) | |
10 | textfag.FontSize = "Size8" | |
11 | textfag.TextScaled = true | |
12 | textfag.TextTransparency = 0 | |
13 | textfag.BackgroundTransparency = 1 | |
14 | textfag.TextTransparency = 0 | |
15 | textfag.TextStrokeTransparency = 0 | |
16 | textfag.Font = "Cartoon" | |
17 | textfag.TextStrokeColor3 = Color3.fromRGB(125,225,166) | |
18 | textfag.Text = "CS:GO Loaded! R8 Revolver loaded!" | |
19 | wait(4) | |
20 | textfag.Text = "Let's kill sum guy!" | |
21 | wait(4) | |
22 | textfag.Text = "Mety the R8 Revolver user" | |
23 | m.KeyDown:connect(function(k) | |
24 | if k == "1" then | |
25 | textfag.Text = "I LOVE CS:GO!!!" | |
26 | wait(4) | |
27 | textfag.Text = " Mety the R8 Revolver user" | |
28 | end | |
29 | end) | |
30 | m.KeyDown:connect(function(k) | |
31 | if k == "2" then | |
32 | textfag.Text = "WHAT... Hacker noobs..." | |
33 | wait(4) | |
34 | textfag.Text = " Mety the R8 Revolver user" | |
35 | end | |
36 | end) | |
37 | m.KeyDown:connect(function(k) | |
38 | if k == "3" then | |
39 | textfag.Text = "Helu!" | |
40 | wait(4) | |
41 | textfag.Text = " Mety the R8 Revolver user" | |
42 | end | |
43 | end) | |
44 | m.KeyDown:connect(function(k) | |
45 | if k == "4" then | |
46 | textfag.Text = "G3T R3K7 M8!" | |
47 | wait(4) | |
48 | textfag.Text = " Mety the R8 Revolver user" | |
49 | end | |
50 | end) | |
51 | m.KeyDown:connect(function(k) | |
52 | if k == "5" then | |
53 | textfag.Text = "You gonna die m8... Heh..." | |
54 | wait(4) | |
55 | textfag.Text = " Mety the R8 Revolver user" | |
56 | end | |
57 | end) | |
58 | m.KeyDown:connect(function(k) | |
59 | if k == "6" then | |
60 | textfag.Text = "CY** BL** >:(" | |
61 | wait(4) | |
62 | textfag.Text = " Mety the R8 Revolver user" | |
63 | end | |
64 | end) | |
65 | m.KeyDown:connect(function(k) | |
66 | if k == "7" then | |
67 | textfag.Text = "EMILIE :o" | |
68 | wait(8) | |
69 | textfag.Text = " Mety the R8 Revolver user" | |
70 | end | |
71 | end) | |
72 | m.KeyDown:connect(function(k) | |
73 | if k == "8" then | |
74 | textfag.Text = "MEMO! :o" | |
75 | wait(8) | |
76 | textfag.Text = " Mety the R8 Revolver user" | |
77 | end | |
78 | end) | |
79 | m.KeyDown:connect(function(k) | |
80 | if k == "9" then | |
81 | textfag.Text = "Let's dance bois!" | |
82 | wait(4) | |
83 | textfag.Text = " Mety the R8 Revolver user" | |
84 | ||
85 | --ffghjkgh67 | |
86 | ||
87 | --Script Builder Radio! | |
88 | ||
89 | local Player = game.Players.LocalPlayer | |
90 | local c = Player.Character | |
91 | if not c or not c.Parent then | |
92 | c = Player.CharacterAdded:wait() | |
93 | end | |
94 | ||
95 | wait(1) | |
96 | ||
97 | local radio = Instance.new("Part",c) | |
98 | - | o2.Material = Enum.Material.Neon |
98 | + | radio.Name = "Radio" |
99 | - | o2.BrickColor = BrickColor.new("Toothpaste") |
99 | + | radio.CanCollide = false |
100 | BrickColor = Color3.fromRGB(34,139,34) | |
101 | radio.Anchored = true | |
102 | radio.FormFactor = "Custom" | |
103 | radio.Size = Vector3.new(4, 4, 4) | |
104 | radio.CFrame = c.Torso.CFrame * CFrame.new(0,3,0) | |
105 | radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0) | |
106 | radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0) | |
107 | local mesh = Instance.new("SpecialMesh",radio) | |
108 | mesh.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
109 | ||
110 | local weld = Instance.new("Weld",radio) | |
111 | weld.Part0 = c.Torso | |
112 | weld.Part1 = radio | |
113 | weld.C0 = c.Torso.CFrame:inverse() | |
114 | weld.C1 = radio.CFrame:inverse() | |
115 | - | o4.Material = Enum.Material.Neon |
115 | + | radio.Anchored = false |
116 | - | o4.BrickColor = BrickColor.new("Toothpaste") |
116 | + | |
117 | local sound = Instance.new("Sound",radio) | |
118 | sound.Name = "Music" | |
119 | sound.Looped = true | |
120 | sound.Volume = 2 | |
121 | Instance.new("DistortionSoundEffect", sound).Level = 0 | |
122 | ||
123 | local gui = Instance.new("ScreenGui",Player.PlayerGui) | |
124 | ||
125 | local frame = Instance.new("Frame",gui) | |
126 | frame.BackgroundColor3 = Color3.new(58/255,58/255,58/255) | |
127 | frame.BorderColor3 = Color3.new(0,0,0) | |
128 | frame.BorderSizePixel = 2 | |
129 | frame.Size = UDim2.new(0,300,0,200) | |
130 | frame.Position = UDim2.new(0,20,.5,-100) | |
131 | ||
132 | - | o6.Material = Enum.Material.Neon |
132 | + | local playb = Instance.new("TextButton",frame) |
133 | - | o6.BrickColor = BrickColor.new("Toothpaste") |
133 | + | playb.BackgroundColor3 = Color3.new(0,85/255,0) |
134 | playb.BorderColor3 = Color3.new(0,0,0) | |
135 | playb.BorderSizePixel = 2 | |
136 | playb.Size = UDim2.new(.3,0,.2,0) | |
137 | playb.Position = UDim2.new(.1,0,.7,0) | |
138 | playb.Text = "Pl0y" | |
139 | playb.TextColor3 = Color3.new(255,255,255) | |
140 | playb.TextScaled = true | |
141 | ||
142 | local stopb = Instance.new("TextButton",frame) | |
143 | stopb.BackgroundColor3 = Color3.new(170/255,0,0) | |
144 | stopb.BorderColor3 = Color3.new(0,0,0) | |
145 | stopb.BorderSizePixel = 2 | |
146 | stopb.Size = UDim2.new(.3,0,.2,0) | |
147 | stopb.Position = UDim2.new(.6,0,.7,0) | |
148 | stopb.Text = "St0p" | |
149 | - | o8.Material = Enum.Material.Neon |
149 | + | stopb.TextColor3 = Color3.new(255,255,255) |
150 | - | o8.BrickColor = BrickColor.new("Toothpaste") |
150 | + | stopb.TextScaled = true |
151 | ||
152 | local stipb = Instance.new("TextBox",frame) | |
153 | stipb.BackgroundColor3 = Color3.new(0,0,127/255) | |
154 | stipb.BorderColor3 = Color3.new(0,0,0) | |
155 | stipb.BorderSizePixel = 2 | |
156 | stipb:TweenSize(UDim2.new(.5,0,.25,0),"Out","Quad",1,true) | |
157 | stipb.Position = UDim2.new(.25,0,.3,0) | |
158 | stipb.Text = "SoundId" | |
159 | stipb.TextColor3 = Color3.new(255,255,255) | |
160 | stipb.TextScaled = true | |
161 | ||
162 | local label = Instance.new("TextLabel",frame) | |
163 | label.Text = "Kill em' plz" | |
164 | label.TextScaled = true | |
165 | label:TweenSize(UDim2.new(1,0,.2,0)) | |
166 | - | o10.Material = Enum.Material.Neon |
166 | + | label.TextColor3 = Color3.new(255,255,255) |
167 | - | o10.BrickColor = BrickColor.new("Toothpaste") |
167 | + | label.BackgroundTransparency = 1 |
168 | --stipb.Size = UDim2.new(1,0,.2,0) | |
169 | ||
170 | local Playing = false | |
171 | ||
172 | stipb.Changed:connect(function() | |
173 | sound.SoundId = "rbxassetid://" .. stipb.Text | |
174 | end) | |
175 | ||
176 | playb.MouseButton1Click:connect(function() | |
177 | sound:Play() | |
178 | Playing = true | |
179 | end) | |
180 | ||
181 | stopb.MouseButton1Click:connect(function() | |
182 | sound:Stop() | |
183 | Playing = false | |
184 | end) | |
185 | ||
186 | while true do | |
187 | if Playing then | |
188 | mesh.Scale = Vector3.new(2.1,2.1,2.1) | |
189 | wait(.2) | |
190 | mesh.Scale = Vector3.new(2,2,2) | |
191 | end | |
192 | wait(.2) | |
193 | end | |
194 | wait(3) | |
195 | textfag.Text = " Mety the R8 Revolver user" | |
196 | ||
197 | end | |
198 | end) | |
199 | cors = {} | |
200 | mas = Instance.new("Model",game:GetService("Lighting")) | |
201 | mas.Name = "CompiledModel" | |
202 | o1 = Instance.new("Model") | |
203 | o2 = Instance.new("Part") | |
204 | o3 = Instance.new("CylinderMesh") | |
205 | o4 = Instance.new("Part") | |
206 | o5 = Instance.new("CylinderMesh") | |
207 | o6 = Instance.new("Part") | |
208 | o7 = Instance.new("CylinderMesh") | |
209 | o8 = Instance.new("Part") | |
210 | o9 = Instance.new("CylinderMesh") | |
211 | o10 = Instance.new("Part") | |
212 | o11 = Instance.new("CylinderMesh") | |
213 | o12 = Instance.new("Part") | |
214 | o13 = Instance.new("CylinderMesh") | |
215 | o14 = Instance.new("Part") | |
216 | o15 = Instance.new("CylinderMesh") | |
217 | o16 = Instance.new("Part") | |
218 | o17 = Instance.new("SpecialMesh") | |
219 | o18 = Instance.new("Part") | |
220 | o19 = Instance.new("CylinderMesh") | |
221 | o20 = Instance.new("Part") | |
222 | o21 = Instance.new("CylinderMesh") | |
223 | o22 = Instance.new("Part") | |
224 | o23 = Instance.new("BlockMesh") | |
225 | o24 = Instance.new("Part") | |
226 | o25 = Instance.new("Part") | |
227 | o26 = Instance.new("BlockMesh") | |
228 | o27 = Instance.new("Part") | |
229 | o28 = Instance.new("BlockMesh") | |
230 | o29 = Instance.new("Part") | |
231 | o30 = Instance.new("BlockMesh") | |
232 | o31 = Instance.new("Part") | |
233 | o32 = Instance.new("SpecialMesh") | |
234 | o33 = Instance.new("Part") | |
235 | o34 = Instance.new("SpecialMesh") | |
236 | o35 = Instance.new("Part") | |
237 | o36 = Instance.new("Part") | |
238 | o37 = Instance.new("BlockMesh") | |
239 | o38 = Instance.new("Part") | |
240 | o39 = Instance.new("CylinderMesh") | |
241 | o40 = Instance.new("Part") | |
242 | o41 = Instance.new("Part") | |
243 | o42 = Instance.new("SpecialMesh") | |
244 | o43 = Instance.new("Part") | |
245 | o44 = Instance.new("Part") | |
246 | o45 = Instance.new("BlockMesh") | |
247 | o46 = Instance.new("Part") | |
248 | o47 = Instance.new("CylinderMesh") | |
249 | o48 = Instance.new("Part") | |
250 | o49 = Instance.new("BlockMesh") | |
251 | o50 = Instance.new("Part") | |
252 | o51 = Instance.new("BlockMesh") | |
253 | o52 = Instance.new("Part") | |
254 | o53 = Instance.new("Part") | |
255 | o54 = Instance.new("CylinderMesh") | |
256 | o55 = Instance.new("Part") | |
257 | o56 = Instance.new("Part") | |
258 | o57 = Instance.new("SpecialMesh") | |
259 | o58 = Instance.new("Part") | |
260 | o59 = Instance.new("BlockMesh") | |
261 | o60 = Instance.new("Part") | |
262 | o61 = Instance.new("SpecialMesh") | |
263 | o62 = Instance.new("Part") | |
264 | o63 = Instance.new("SpecialMesh") | |
265 | o64 = Instance.new("Part") | |
266 | o65 = Instance.new("BlockMesh") | |
267 | o66 = Instance.new("Part") | |
268 | o67 = Instance.new("CylinderMesh") | |
269 | o68 = Instance.new("Part") | |
270 | o69 = Instance.new("CylinderMesh") | |
271 | o70 = Instance.new("Part") | |
272 | o71 = Instance.new("BlockMesh") | |
273 | o72 = Instance.new("Part") | |
274 | o73 = Instance.new("BlockMesh") | |
275 | o74 = Instance.new("Part") | |
276 | o75 = Instance.new("BlockMesh") | |
277 | o76 = Instance.new("Part") | |
278 | o77 = Instance.new("Part") | |
279 | o78 = Instance.new("BlockMesh") | |
280 | o79 = Instance.new("Part") | |
281 | o80 = Instance.new("SpecialMesh") | |
282 | o81 = Instance.new("Part") | |
283 | o82 = Instance.new("SpecialMesh") | |
284 | o83 = Instance.new("Part") | |
285 | o84 = Instance.new("SpecialMesh") | |
286 | o85 = Instance.new("Part") | |
287 | o86 = Instance.new("SpecialMesh") | |
288 | o87 = Instance.new("Part") | |
289 | o88 = Instance.new("CylinderMesh") | |
290 | o89 = Instance.new("Part") | |
291 | o90 = Instance.new("BlockMesh") | |
292 | o1.Name = "Revolver" | |
293 | o1.Parent = mas | |
294 | o2.Name = "A6" | |
295 | o2.Parent = o1 | |
296 | o2.Material = Enum.Material.SmoothPlastic | |
297 | o2.BrickColor = BrickColor.new("Mid gray") | |
298 | o2.Position = Vector3.new(51.2299995, 4, 5.23000002) | |
299 | o2.Rotation = Vector3.new(-0, 0, 90) | |
300 | o2.Anchored = true | |
301 | o2.CanCollide = false | |
302 | o2.Shape = Enum.PartType.Cylinder | |
303 | o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
304 | o2.CFrame = CFrame.new(51.2299995, 4, 5.23000002, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
305 | o2.BottomSurface = Enum.SurfaceType.Smooth | |
306 | o2.TopSurface = Enum.SurfaceType.Smooth | |
307 | o2.Color = Color3.new(0, 1, 1) | |
308 | o2.Position = Vector3.new(51.2299995, 4, 5.23000002) | |
309 | o3.Parent = o2 | |
310 | o3.Scale = Vector3.new(1, 1.54999995, 0.400000006) | |
311 | o4.Name = "A3" | |
312 | o4.Parent = o1 | |
313 | o4.Material = Enum.Material.SmoothPlastic | |
314 | o4.BrickColor = BrickColor.new("Mid gray") | |
315 | o4.Position = Vector3.new(51.2299995, 3.9000001, 5.41499996) | |
316 | o4.Rotation = Vector3.new(-0, 0, 90) | |
317 | o4.Anchored = true | |
318 | o4.CanCollide = false | |
319 | o4.Shape = Enum.PartType.Cylinder | |
320 | o4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
321 | o4.CFrame = CFrame.new(51.2299995, 3.9000001, 5.41499996, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
322 | o4.BottomSurface = Enum.SurfaceType.Smooth | |
323 | o4.TopSurface = Enum.SurfaceType.Smooth | |
324 | o4.Color = Color3.new(0, 1, 1) | |
325 | o4.Position = Vector3.new(51.2299995, 3.9000001, 5.41499996) | |
326 | o5.Parent = o4 | |
327 | o5.Scale = Vector3.new(1, 1.54999995, 0.400000006) | |
328 | o6.Name = "A2" | |
329 | o6.Parent = o1 | |
330 | o6.Material = Enum.Material.SmoothPlastic | |
331 | o6.BrickColor = BrickColor.new("Mid gray") | |
332 | o6.Position = Vector3.new(51.2299995, 4, 5.41499996) | |
333 | o6.Rotation = Vector3.new(-0, 0, 90) | |
334 | o6.Anchored = true | |
335 | o6.CanCollide = false | |
336 | o6.Shape = Enum.PartType.Cylinder | |
337 | o6.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
338 | o6.CFrame = CFrame.new(51.2299995, 4, 5.41499996, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
339 | o6.BottomSurface = Enum.SurfaceType.Smooth | |
340 | o6.TopSurface = Enum.SurfaceType.Smooth | |
341 | o6.Color = Color3.new(0, 1, 1) | |
342 | o6.Position = Vector3.new(51.2299995, 4, 5.41499996) | |
343 | o7.Parent = o6 | |
344 | o7.Scale = Vector3.new(1, 1.54999995, 0.400000006) | |
345 | o8.Name = "A5" | |
346 | o8.Parent = o1 | |
347 | o8.Material = Enum.Material.SmoothPlastic | |
348 | o8.BrickColor = BrickColor.new("Mid gray") | |
349 | o8.Position = Vector3.new(51.2299995, 3.9000001, 5.23000002) | |
350 | o8.Rotation = Vector3.new(-0, 0, 90) | |
351 | o8.Anchored = true | |
352 | o8.CanCollide = false | |
353 | o8.Shape = Enum.PartType.Cylinder | |
354 | o8.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
355 | o8.CFrame = CFrame.new(51.2299995, 3.9000001, 5.23000002, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
356 | o8.BottomSurface = Enum.SurfaceType.Smooth | |
357 | o8.TopSurface = Enum.SurfaceType.Smooth | |
358 | o8.Color = Color3.new(0, 1, 1) | |
359 | o8.Position = Vector3.new(51.2299995, 3.9000001, 5.23000002) | |
360 | o9.Parent = o8 | |
361 | o9.Scale = Vector3.new(1, 1.54999995, 0.400000006) | |
362 | o10.Name = "A4" | |
363 | o10.Parent = o1 | |
364 | o10.Material = Enum.Material.SmoothPlastic | |
365 | o10.BrickColor = BrickColor.new("Mid gray") | |
366 | o10.Position = Vector3.new(51.2319984, 3.8599999, 5.32000017) | |
367 | o10.Rotation = Vector3.new(-0, 0, 90) | |
368 | o10.Anchored = true | |
369 | o10.CanCollide = false | |
370 | o10.Shape = Enum.PartType.Cylinder | |
371 | o10.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
372 | o10.CFrame = CFrame.new(51.2319984, 3.8599999, 5.32000017, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
373 | o10.BottomSurface = Enum.SurfaceType.Smooth | |
374 | o10.TopSurface = Enum.SurfaceType.Smooth | |
375 | o10.Color = Color3.new(0, 1, 1) | |
376 | o10.Position = Vector3.new(51.2319984, 3.8599999, 5.32000017) | |
377 | o11.Parent = o10 | |
378 | o11.Scale = Vector3.new(1, 1.54999995, 0.400000006) | |
379 | o12.Name = "Barrel" | |
380 | o12.Parent = o1 | |
381 | o12.Material = Enum.Material.SmoothPlastic | |
382 | o12.BrickColor = BrickColor.new("Mid gray") | |
383 | o12.Position = Vector3.new(51.981369, 4.00200367, 5.31954384) | |
384 | - | o36.Material = Enum.Material.Neon |
384 | + | |
385 | - | o36.BrickColor = BrickColor.new("Toothpaste") |
385 | + | |
386 | o12.CanCollide = false | |
387 | o12.Shape = Enum.PartType.Cylinder | |
388 | o12.Size = Vector3.new(0.200000003, 1, 0.200000003) | |
389 | o12.CFrame = CFrame.new(51.981369, 4.00200367, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
390 | o12.BottomSurface = Enum.SurfaceType.Smooth | |
391 | o12.TopSurface = Enum.SurfaceType.Smooth | |
392 | o12.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
393 | o12.Position = Vector3.new(51.981369, 4.00200367, 5.31954384) | |
394 | o13.Parent = o12 | |
395 | o13.Scale = Vector3.new(0.899999976, 1, 0.899999976) | |
396 | o14.Name = "BarrelEnd" | |
397 | o14.Parent = o1 | |
398 | o14.Material = Enum.Material.SmoothPlastic | |
399 | o14.BrickColor = BrickColor.new("Really black") | |
400 | o14.Position = Vector3.new(52.3849983, 4, 5.31954384) | |
401 | o14.Rotation = Vector3.new(-0, 0, 90) | |
402 | o14.Anchored = true | |
403 | o14.CanCollide = false | |
404 | o14.Shape = Enum.PartType.Cylinder | |
405 | o14.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
406 | o14.CFrame = CFrame.new(52.3849983, 4, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
407 | o14.BottomSurface = Enum.SurfaceType.Smooth | |
408 | o14.TopSurface = Enum.SurfaceType.Smooth | |
409 | o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
410 | o14.Position = Vector3.new(52.3849983, 4, 5.31954384) | |
411 | o15.Parent = o14 | |
412 | o15.Scale = Vector3.new(0.699999988, 1, 0.699999988) | |
413 | o16.Name = "T2" | |
414 | o16.Parent = o1 | |
415 | o16.Material = Enum.Material.SmoothPlastic | |
416 | o16.BrickColor = BrickColor.new("Dark stone grey") | |
417 | o16.Position = Vector3.new(50.9799995, 3.38000011, 5.31954384) | |
418 | o16.Rotation = Vector3.new(-95.8101654, 58.8695641, -85.0219879) | |
419 | o16.Anchored = true | |
420 | o16.CanCollide = false | |
421 | o16.Size = Vector3.new(0.200000003, 0.223999992, 0.200000003) | |
422 | o16.CFrame = CFrame.new(50.9799995, 3.38000011, 5.31954384, 0.0448608175, 0.515038073, 0.855992556, 0.0269551426, -0.857167304, 0.514332235, 0.99862957, 3.7252903e-008, -0.0523361489) | |
423 | o16.BottomSurface = Enum.SurfaceType.Smooth | |
424 | o16.TopSurface = Enum.SurfaceType.Smooth | |
425 | o16.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
426 | o16.Position = Vector3.new(50.9799995, 3.38000011, 5.31954384) | |
427 | o17.Parent = o16 | |
428 | o17.Scale = Vector3.new(0.5, 0.5, 0.519999981) | |
429 | o17.MeshType = Enum.MeshType.Wedge | |
430 | o18.Name = "Chamber" | |
431 | o18.Parent = o1 | |
432 | o18.Material = Enum.Material.SmoothPlastic | |
433 | o18.Position = Vector3.new(51.2313728, 3.95000005, 5.31954384) | |
434 | o18.Rotation = Vector3.new(-0, 0, 90) | |
435 | o18.Anchored = true | |
436 | o18.CanCollide = false | |
437 | o18.Shape = Enum.PartType.Cylinder | |
438 | o18.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
439 | o18.CFrame = CFrame.new(51.2313728, 3.95000005, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
440 | o18.BottomSurface = Enum.SurfaceType.Smooth | |
441 | o18.TopSurface = Enum.SurfaceType.Smooth | |
442 | o18.Position = Vector3.new(51.2313728, 3.95000005, 5.31954384) | |
443 | o19.Parent = o18 | |
444 | o19.Scale = Vector3.new(1.5, 1.5, 1.5) | |
445 | o20.Name = "H1" | |
446 | o20.Parent = o1 | |
447 | o20.Material = Enum.Material.SmoothPlastic | |
448 | o20.BrickColor = BrickColor.new("Dark stone grey") | |
449 | o20.Position = Vector3.new(50.8233681, 3.94829392, 5.31954384) | |
450 | o20.Rotation = Vector3.new(90, 90, 0) | |
451 | o20.Anchored = true | |
452 | o20.CanCollide = false | |
453 | o20.Shape = Enum.PartType.Cylinder | |
454 | o20.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
455 | o20.CFrame = CFrame.new(50.8233681, 3.94829392, 5.31954384, -4.37113883e-008, 0, 1, 1, -4.37113883e-008, 4.37113883e-008, 4.37113883e-008, 1, 1.91068547e-015) | |
456 | o20.BottomSurface = Enum.SurfaceType.Smooth | |
457 | o20.TopSurface = Enum.SurfaceType.Smooth | |
458 | o20.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
459 | o20.Position = Vector3.new(50.8233681, 3.94829392, 5.31954384) | |
460 | o21.Parent = o20 | |
461 | o22.Name = "H2" | |
462 | o22.Parent = o1 | |
463 | o22.Material = Enum.Material.SmoothPlastic | |
464 | o22.BrickColor = BrickColor.new("Dark stone grey") | |
465 | o22.Position = Vector3.new(50.7559967, 4.01956081, 5.31500006) | |
466 | o22.Rotation = Vector3.new(-0, 0, 44) | |
467 | o22.Anchored = true | |
468 | o22.CanCollide = false | |
469 | o22.Size = Vector3.new(0.200000003, 0.239000008, 0.200000003) | |
470 | o22.CFrame = CFrame.new(50.7559967, 4.01956081, 5.31500006, 0.719339788, -0.694658399, 0, 0.694658399, 0.719339788, 0, 0, 0, 1) | |
471 | o22.BottomSurface = Enum.SurfaceType.Smooth | |
472 | o22.TopSurface = Enum.SurfaceType.Smooth | |
473 | o22.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
474 | o22.Position = Vector3.new(50.7559967, 4.01956081, 5.31500006) | |
475 | o23.Parent = o22 | |
476 | o23.Scale = Vector3.new(0.5, 0.899999976, 0.5) | |
477 | o24.Name = "Handle" | |
478 | o24.Parent = o1 | |
479 | o24.Material = Enum.Material.SmoothPlastic | |
480 | o24.BrickColor = BrickColor.new("Dark stone grey") | |
481 | o24.Position = Vector3.new(50.4970093, 3.37834263, 5.32154369) | |
482 | o24.Rotation = Vector3.new(-0, 0, 45) | |
483 | o24.Anchored = true | |
484 | o24.CanCollide = false | |
485 | o24.Size = Vector3.new(0.730000019, 0.300000072, 0.300000012) | |
486 | o24.CFrame = CFrame.new(50.4970093, 3.37834263, 5.32154369, 0.707106769, -0.707106769, 0, 0.707106769, 0.707106769, 0, 0, 0, 1) | |
487 | o24.BottomSurface = Enum.SurfaceType.Smooth | |
488 | o24.TopSurface = Enum.SurfaceType.Smooth | |
489 | o24.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
490 | o24.Position = Vector3.new(50.4970093, 3.37834263, 5.32154369) | |
491 | o25.Parent = o1 | |
492 | o25.Material = Enum.Material.SmoothPlastic | |
493 | o25.BrickColor = BrickColor.new("Mid gray") | |
494 | o25.Position = Vector3.new(51.2200012, 3.46000004, 5.31954384) | |
495 | o25.Rotation = Vector3.new(-0, 0, 150.000015) | |
496 | o25.Anchored = true | |
497 | o25.CanCollide = false | |
498 | o25.Size = Vector3.new(0.200000003, 0.321999997, 0.200000003) | |
499 | o25.CFrame = CFrame.new(51.2200012, 3.46000004, 5.31954384, -0.866025507, -0.499999821, 0, 0.499999821, -0.866025507, 0, 0, 0, 1) | |
500 | o25.BottomSurface = Enum.SurfaceType.Smooth | |
501 | o25.TopSurface = Enum.SurfaceType.Smooth | |
502 | o25.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
503 | o25.Position = Vector3.new(51.2200012, 3.46000004, 5.31954384) | |
504 | o26.Parent = o25 | |
505 | o26.Scale = Vector3.new(0.5, 1.5, 0.699999988) | |
506 | o27.Parent = o1 | |
507 | o27.Material = Enum.Material.SmoothPlastic | |
508 | o27.BrickColor = BrickColor.new("Mid gray") | |
509 | o27.Position = Vector3.new(51.0099983, 3.2750001, 5.31954384) | |
510 | o27.Rotation = Vector3.new(-0, 0, 90) | |
511 | o27.Anchored = true | |
512 | o27.CanCollide = false | |
513 | o27.Size = Vector3.new(0.200000003, 0.223999992, 0.200000003) | |
514 | o27.CFrame = CFrame.new(51.0099983, 3.2750001, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
515 | o27.BottomSurface = Enum.SurfaceType.Smooth | |
516 | o27.TopSurface = Enum.SurfaceType.Smooth | |
517 | o27.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
518 | o27.Position = Vector3.new(51.0099983, 3.2750001, 5.31954384) | |
519 | o28.Parent = o27 | |
520 | o28.Scale = Vector3.new(0.5, 1.20000005, 0.699999988) | |
521 | o29.Parent = o1 | |
522 | o29.Material = Enum.Material.SmoothPlastic | |
523 | o29.BrickColor = BrickColor.new("Mid gray") | |
524 | o29.Position = Vector3.new(50.8295479, 3.33778, 5.31954384) | |
525 | o29.Rotation = Vector3.new(-0, 0, 48.0000038) | |
526 | o29.Anchored = true | |
527 | o29.CanCollide = false | |
528 | o29.Size = Vector3.new(0.200000003, 0.223999992, 0.200000003) | |
529 | o29.CFrame = CFrame.new(50.8295479, 3.33778, 5.31954384, 0.669130564, -0.74314487, 0, 0.74314487, 0.669130564, 0, 0, 0, 1) | |
530 | o29.BottomSurface = Enum.SurfaceType.Smooth | |
531 | o29.TopSurface = Enum.SurfaceType.Smooth | |
532 | o29.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
533 | o29.Position = Vector3.new(50.8295479, 3.33778, 5.31954384) | |
534 | o30.Parent = o29 | |
535 | o30.Scale = Vector3.new(0.5, 1, 0.699999988) | |
536 | o31.Parent = o1 | |
537 | o31.Material = Enum.Material.SmoothPlastic | |
538 | o31.BrickColor = BrickColor.new("Mid gray") | |
539 | o31.Position = Vector3.new(49.8057709, 3.23564911, 5.30704403) | |
540 | o31.Rotation = Vector3.new(-0, -90, 0) | |
541 | o31.Anchored = true | |
542 | o31.CanCollide = false | |
543 | o31.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998) | |
544 | o31.CFrame = CFrame.new(49.8057709, 3.23564911, 5.30704403, -4.37113883e-008, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-008) | |
545 | o31.BottomSurface = Enum.SurfaceType.Smooth | |
546 | o31.TopSurface = Enum.SurfaceType.Smooth | |
547 | o31.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
548 | o31.Position = Vector3.new(49.8057709, 3.23564911, 5.30704403) | |
549 | o32.Parent = o31 | |
550 | o32.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994) | |
551 | o32.MeshType = Enum.MeshType.Wedge | |
552 | o33.Parent = o1 | |
553 | o33.Material = Enum.Material.SmoothPlastic | |
554 | o33.BrickColor = BrickColor.new("Mid gray") | |
555 | o33.Position = Vector3.new(49.8667717, 3.22244596, 5.30704403) | |
556 | o33.Rotation = Vector3.new(90, -45, 90) | |
557 | o33.Anchored = true | |
558 | o33.CanCollide = false | |
559 | o33.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998) | |
560 | o33.CFrame = CFrame.new(49.8667717, 3.22244596, 5.30704403, -3.09086197e-008, -0.707106829, -0.707106769, -1.28027686e-008, 0.707106769, -0.707106829, 1, -1.28027686e-008, -3.09086197e-008) | |
561 | o33.BottomSurface = Enum.SurfaceType.Smooth | |
562 | o33.TopSurface = Enum.SurfaceType.Smooth | |
563 | o33.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
564 | o33.Position = Vector3.new(49.8667717, 3.22244596, 5.30704403) | |
565 | o34.Parent = o33 | |
566 | o34.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994) | |
567 | o34.MeshType = Enum.MeshType.Wedge | |
568 | o35.Parent = o1 | |
569 | o35.Material = Enum.Material.SmoothPlastic | |
570 | o35.BrickColor = BrickColor.new("Mid gray") | |
571 | o35.Position = Vector3.new(50.4745674, 3.36495113, 5.38520098) | |
572 | o35.Rotation = Vector3.new(91.2115326, -45.6857071, 0.228031278) | |
573 | o35.Anchored = true | |
574 | o35.CanCollide = false | |
575 | o35.Size = Vector3.new(0.230000064, 0.200000003, 0.709999979) | |
576 | o35.CFrame = CFrame.new(50.4745674, 3.36495113, 5.38520098, 0.698588252, -0.00278032362, -0.715518475, -0.715436995, -0.0182964802, -0.698437631, -0.0111495871, 0.999828696, -0.0147708533) | |
577 | o35.BottomSurface = Enum.SurfaceType.Smooth | |
578 | o35.TopSurface = Enum.SurfaceType.Smooth | |
579 | o35.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
580 | o35.Position = Vector3.new(50.4745674, 3.36495113, 5.38520098) | |
581 | o36.Parent = o1 | |
582 | o36.Material = Enum.Material.SmoothPlastic | |
583 | o36.BrickColor = BrickColor.new("Mid gray") | |
584 | o36.Position = Vector3.new(50.7599983, 3.6400001, 5.20449972) | |
585 | o36.Rotation = Vector3.new(-0, 0, -44) | |
586 | o36.Anchored = true | |
587 | o36.CanCollide = false | |
588 | o36.Size = Vector3.new(0.203000054, 0.200000003, 0.200000003) | |
589 | o36.CFrame = CFrame.new(50.7599983, 3.6400001, 5.20449972, 0.719339788, 0.694658399, 0, -0.694658399, 0.719339788, 0, 0, 0, 1) | |
590 | o36.BottomSurface = Enum.SurfaceType.Smooth | |
591 | o36.TopSurface = Enum.SurfaceType.Smooth | |
592 | o36.Color = Color3.new(0, 1, 1) | |
593 | o36.Position = Vector3.new(50.7599983, 3.6400001, 5.20449972) | |
594 | o37.Parent = o36 | |
595 | o37.Scale = Vector3.new(0.800000012, 0.300000012, 0.5) | |
596 | o38.Parent = o1 | |
597 | o38.Material = Enum.Material.SmoothPlastic | |
598 | o38.BrickColor = BrickColor.new("Smoky grey") | |
599 | o38.Position = Vector3.new(51.2353706, 3.95000005, 5.31954384) | |
600 | o38.Rotation = Vector3.new(-0, 0, 90) | |
601 | o38.Anchored = true | |
602 | o38.CanCollide = false | |
603 | o38.Shape = Enum.PartType.Cylinder | |
604 | o38.Size = Vector3.new(0.200000003, 0.5, 0.200000003) | |
605 | o38.CFrame = CFrame.new(51.2353706, 3.95000005, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
606 | o38.BottomSurface = Enum.SurfaceType.Smooth | |
607 | o38.TopSurface = Enum.SurfaceType.Smooth | |
608 | o38.Color = Color3.new(0.356863, 0.364706, 0.411765) | |
609 | o38.Position = Vector3.new(51.2353706, 3.95000005, 5.31954384) | |
610 | o39.Parent = o38 | |
611 | o39.Scale = Vector3.new(1, 0.800000012, 0.600000024) | |
612 | o40.Parent = o1 | |
613 | o40.Material = Enum.Material.SmoothPlastic | |
614 | o40.BrickColor = BrickColor.new("Mid gray") | |
615 | o40.Position = Vector3.new(51.0823708, 3.66909075, 5.31954384) | |
616 | o40.Anchored = true | |
617 | o40.CanCollide = false | |
618 | o40.Size = Vector3.new(0.868000031, 0.200000003, 0.264999986) | |
619 | o40.CFrame = CFrame.new(51.0823708, 3.66909075, 5.31954384, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
620 | o40.BottomSurface = Enum.SurfaceType.Smooth | |
621 | o40.TopSurface = Enum.SurfaceType.Smooth | |
622 | o40.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
623 | o40.Position = Vector3.new(51.0823708, 3.66909075, 5.31954384) | |
624 | o41.Parent = o1 | |
625 | o41.Material = Enum.Material.SmoothPlastic | |
626 | o41.BrickColor = BrickColor.new("Mid gray") | |
627 | o41.Position = Vector3.new(49.8017693, 3.35193205, 5.30704403) | |
628 | o41.Rotation = Vector3.new(-90, 0, -90) | |
629 | o41.Anchored = true | |
630 | o41.CanCollide = false | |
631 | o41.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998) | |
632 | o41.CFrame = CFrame.new(49.8017693, 3.35193205, 5.30704403, -4.37113883e-008, 1, 0, 4.37113883e-008, 1.91068547e-015, 1, 1, 4.37113883e-008, -4.37113883e-008) | |
633 | o41.BottomSurface = Enum.SurfaceType.Smooth | |
634 | o41.TopSurface = Enum.SurfaceType.Smooth | |
635 | o41.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
636 | o41.Position = Vector3.new(49.8017693, 3.35193205, 5.30704403) | |
637 | o42.Parent = o41 | |
638 | o42.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994) | |
639 | o42.MeshType = Enum.MeshType.Wedge | |
640 | o43.Parent = o1 | |
641 | o43.Material = Enum.Material.SmoothPlastic | |
642 | o43.BrickColor = BrickColor.new("Dark stone grey") | |
643 | o43.Position = Vector3.new(50.2837715, 3.10236478, 5.31154442) | |
644 | o43.Rotation = Vector3.new(-0, 0, -20.9999962) | |
645 | o43.Anchored = true | |
646 | o43.CanCollide = false | |
647 | o43.Size = Vector3.new(0.410000026, 0.200000003, 0.400000006) | |
648 | o43.CFrame = CFrame.new(50.2837715, 3.10236478, 5.31154442, 0.933580458, 0.35836789, 0, -0.35836789, 0.933580458, 0, 0, 0, 1) | |
649 | o43.BottomSurface = Enum.SurfaceType.Smooth | |
650 | o43.TopSurface = Enum.SurfaceType.Smooth | |
651 | o43.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
652 | o43.Position = Vector3.new(50.2837715, 3.10236478, 5.31154442) | |
653 | o44.Parent = o1 | |
654 | o44.Material = Enum.Material.SmoothPlastic | |
655 | o44.BrickColor = BrickColor.new("Black") | |
656 | o44.Position = Vector3.new(50.8300018, 3.80446577, 5.31500006) | |
657 | o44.Rotation = Vector3.new(-0, 0, -35.0000076) | |
658 | o44.Anchored = true | |
659 | o44.CanCollide = false | |
660 | o44.Size = Vector3.new(0.206999987, 0.435000002, 0.264999986) | |
661 | o44.CFrame = CFrame.new(50.8300018, 3.80446577, 5.31500006, 0.819151998, 0.57357651, 0, -0.57357651, 0.819151998, 0, 0, 0, 1) | |
662 | o44.BottomSurface = Enum.SurfaceType.Smooth | |
663 | o44.TopSurface = Enum.SurfaceType.Smooth | |
664 | o44.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
665 | o44.Position = Vector3.new(50.8300018, 3.80446577, 5.31500006) | |
666 | o45.Parent = o44 | |
667 | o45.Scale = Vector3.new(1, 1, 0.800000012) | |
668 | o46.Parent = o1 | |
669 | o46.Material = Enum.Material.SmoothPlastic | |
670 | o46.BrickColor = BrickColor.new("Mid gray") | |
671 | o46.Position = Vector3.new(49.8587685, 3.29909968, 5.30704403) | |
672 | o46.Rotation = Vector3.new(90, 0, -0) | |
673 | o46.Anchored = true | |
674 | o46.CanCollide = false | |
675 | o46.Shape = Enum.PartType.Cylinder | |
676 | - | o72.Material = Enum.Material.Neon |
676 | + | |
677 | - | o72.BrickColor = BrickColor.new("Toothpaste") |
677 | + | |
678 | o46.BottomSurface = Enum.SurfaceType.Smooth | |
679 | o46.TopSurface = Enum.SurfaceType.Smooth | |
680 | o46.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
681 | o46.Position = Vector3.new(49.8587685, 3.29909968, 5.30704403) | |
682 | o47.Parent = o46 | |
683 | o47.Scale = Vector3.new(0.899999976, 0.550000012, 0.899999976) | |
684 | o48.Parent = o1 | |
685 | o48.Material = Enum.Material.SmoothPlastic | |
686 | o48.BrickColor = BrickColor.new("Black") | |
687 | o48.Position = Vector3.new(50.9568748, 3.94950008, 5.31954384) | |
688 | o48.Anchored = true | |
689 | o48.CanCollide = false | |
690 | o48.Size = Vector3.new(0.226999998, 0.358999997, 0.264999986) | |
691 | o48.CFrame = CFrame.new(50.9568748, 3.94950008, 5.31954384, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
692 | o48.BottomSurface = Enum.SurfaceType.Smooth | |
693 | o48.TopSurface = Enum.SurfaceType.Smooth | |
694 | o48.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
695 | o48.Position = Vector3.new(50.9568748, 3.94950008, 5.31954384) | |
696 | o49.Parent = o48 | |
697 | o49.Scale = Vector3.new(0.699999988, 1, 0.800000012) | |
698 | o50.Parent = o1 | |
699 | o50.Material = Enum.Material.SmoothPlastic | |
700 | o50.BrickColor = BrickColor.new("Mid gray") | |
701 | o50.Position = Vector3.new(50.0637703, 3.18861699, 5.30704403) | |
702 | o50.Rotation = Vector3.new(-0, 0, -28.9999962) | |
703 | o50.Anchored = true | |
704 | o50.CanCollide = false | |
705 | o50.Size = Vector3.new(0.410000026, 0.200000003, 0.204999998) | |
706 | o50.CFrame = CFrame.new(50.0637703, 3.18861699, 5.30704403, 0.874619722, 0.484809577, 0, -0.484809577, 0.874619722, 0, 0, 0, 1) | |
707 | o50.BottomSurface = Enum.SurfaceType.Smooth | |
708 | o50.TopSurface = Enum.SurfaceType.Smooth | |
709 | o50.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
710 | o50.Position = Vector3.new(50.0637703, 3.18861699, 5.30704403) | |
711 | o51.Parent = o50 | |
712 | o51.Scale = Vector3.new(1, 0.5, 0.5) | |
713 | o52.Parent = o1 | |
714 | o52.Material = Enum.Material.SmoothPlastic | |
715 | o52.BrickColor = BrickColor.new("Mid gray") | |
716 | o52.Position = Vector3.new(50.4745674, 3.3599999, 5.24100018) | |
717 | o52.Rotation = Vector3.new(91.2115326, -45.6857071, 0.228031278) | |
718 | - | o77.Material = Enum.Material.Neon |
718 | + | |
719 | - | o77.BrickColor = BrickColor.new("Toothpaste") |
719 | + | |
720 | o52.Size = Vector3.new(0.230000064, 0.200000003, 0.709999979) | |
721 | o52.CFrame = CFrame.new(50.4745674, 3.3599999, 5.24100018, 0.698588252, -0.00278032362, -0.715518475, -0.715436995, -0.0182964802, -0.698437631, -0.0111495871, 0.999828696, -0.0147708533) | |
722 | o52.BottomSurface = Enum.SurfaceType.Smooth | |
723 | o52.TopSurface = Enum.SurfaceType.Smooth | |
724 | o52.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
725 | o52.Position = Vector3.new(50.4745674, 3.3599999, 5.24100018) | |
726 | o53.Parent = o1 | |
727 | o53.Material = Enum.Material.SmoothPlastic | |
728 | o53.Position = Vector3.new(51.2313728, 3.87404203, 5.31954384) | |
729 | o53.Rotation = Vector3.new(-0, 0, 90) | |
730 | o53.Anchored = true | |
731 | o53.CanCollide = false | |
732 | o53.Shape = Enum.PartType.Cylinder | |
733 | o53.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
734 | o53.CFrame = CFrame.new(51.2313728, 3.87404203, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
735 | o53.BottomSurface = Enum.SurfaceType.Smooth | |
736 | o53.TopSurface = Enum.SurfaceType.Smooth | |
737 | o53.Position = Vector3.new(51.2313728, 3.87404203, 5.31954384) | |
738 | o54.Parent = o53 | |
739 | o54.Scale = Vector3.new(1, 0.800000012, 0.600000024) | |
740 | o55.Parent = o1 | |
741 | o55.Material = Enum.Material.SmoothPlastic | |
742 | o55.BrickColor = BrickColor.new("Mid gray") | |
743 | o55.Position = Vector3.new(50.6496391, 3.44902349, 5.3220439) | |
744 | o55.Rotation = Vector3.new(-0, 0, 46) | |
745 | o55.Anchored = true | |
746 | o55.CanCollide = false | |
747 | o55.Size = Vector3.new(0.605000019, 0.200000003, 0.200000003) | |
748 | o55.CFrame = CFrame.new(50.6496391, 3.44902349, 5.3220439, 0.694658399, -0.719339788, 0, 0.719339788, 0.694658399, 0, 0, 0, 1) | |
749 | o55.BottomSurface = Enum.SurfaceType.Smooth | |
750 | o55.TopSurface = Enum.SurfaceType.Smooth | |
751 | o55.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
752 | o55.Position = Vector3.new(50.6496391, 3.44902349, 5.3220439) | |
753 | o56.Parent = o1 | |
754 | o56.Material = Enum.Material.SmoothPlastic | |
755 | o56.BrickColor = BrickColor.new("Black") | |
756 | o56.Position = Vector3.new(52.3800011, 4.23000002, 5.32000017) | |
757 | o56.Anchored = true | |
758 | o56.CanCollide = false | |
759 | o56.Size = Vector3.new(0.200000003, 0.200000003, 0.204999983) | |
760 | o56.CFrame = CFrame.new(52.3800011, 4.23000002, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
761 | o56.BottomSurface = Enum.SurfaceType.Smooth | |
762 | o56.TopSurface = Enum.SurfaceType.Smooth | |
763 | o56.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
764 | o56.Position = Vector3.new(52.3800011, 4.23000002, 5.32000017) | |
765 | o57.Parent = o56 | |
766 | o57.Scale = Vector3.new(0.800000012, 0.400000006, 0.25) | |
767 | o57.MeshType = Enum.MeshType.Torso | |
768 | o58.Parent = o1 | |
769 | o58.Material = Enum.Material.SmoothPlastic | |
770 | o58.BrickColor = BrickColor.new("Black") | |
771 | o58.Position = Vector3.new(52.3800011, 4.14001513, 5.32000017) | |
772 | o58.Anchored = true | |
773 | o58.CanCollide = false | |
774 | o58.Size = Vector3.new(0.200000003, 0.200000003, 0.204999983) | |
775 | o58.CFrame = CFrame.new(52.3800011, 4.14001513, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
776 | o58.BottomSurface = Enum.SurfaceType.Smooth | |
777 | o58.TopSurface = Enum.SurfaceType.Smooth | |
778 | o58.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
779 | o58.Position = Vector3.new(52.3800011, 4.14001513, 5.32000017) | |
780 | o59.Parent = o58 | |
781 | o59.Scale = Vector3.new(0.800000012, 0.5, 0.699999988) | |
782 | o60.Parent = o1 | |
783 | o60.Material = Enum.Material.SmoothPlastic | |
784 | o60.BrickColor = BrickColor.new("Mid gray") | |
785 | o60.Position = Vector3.new(51.6235008, 3.67000008, 5.32000017) | |
786 | o60.Rotation = Vector3.new(-180, -90, 0) | |
787 | o60.Anchored = true | |
788 | o60.CanCollide = false | |
789 | o60.Size = Vector3.new(0.200000003, 0.200000003, 0.216999978) | |
790 | o60.CFrame = CFrame.new(51.6235008, 3.67000008, 5.32000017, -4.37113883e-008, 0, -1, 1.50995803e-007, -1, -6.60023616e-015, -1, -1.50995803e-007, 4.37113883e-008) | |
791 | o60.BottomSurface = Enum.SurfaceType.Smooth | |
792 | o60.TopSurface = Enum.SurfaceType.Smooth | |
793 | o60.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
794 | o60.Position = Vector3.new(51.6235008, 3.67000008, 5.32000017) | |
795 | o61.Parent = o60 | |
796 | o61.Scale = Vector3.new(1.29999995, 1, 1) | |
797 | o61.MeshType = Enum.MeshType.Wedge | |
798 | - | o87.Material = Enum.Material.Neon |
798 | + | |
799 | - | o87.BrickColor = BrickColor.new("Toothpaste") |
799 | + | |
800 | o62.BrickColor = BrickColor.new("Mid gray") | |
801 | o62.Position = Vector3.new(51.5999985, 4.21000004, 5.32000017) | |
802 | o62.Rotation = Vector3.new(-0, -90, 0) | |
803 | o62.Anchored = true | |
804 | o62.CanCollide = false | |
805 | o62.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
806 | o62.CFrame = CFrame.new(51.5999985, 4.21000004, 5.32000017, -4.37113883e-008, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-008) | |
807 | o62.BottomSurface = Enum.SurfaceType.Smooth | |
808 | o62.TopSurface = Enum.SurfaceType.Smooth | |
809 | o62.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
810 | o62.Position = Vector3.new(51.5999985, 4.21000004, 5.32000017) | |
811 | o63.Parent = o62 | |
812 | o63.Scale = Vector3.new(0.899999976, 0.200000003, 1) | |
813 | o63.MeshType = Enum.MeshType.Wedge | |
814 | o64.Parent = o1 | |
815 | o64.Material = Enum.Material.SmoothPlastic | |
816 | o64.BrickColor = BrickColor.new("Mid gray") | |
817 | o64.Position = Vector3.new(51.7574959, 4.13999987, 5.32000017) | |
818 | o64.Anchored = true | |
819 | o64.CanCollide = false | |
820 | o64.Size = Vector3.new(1.44499993, 0.200000003, 0.204999983) | |
821 | o64.CFrame = CFrame.new(51.7574959, 4.13999987, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
822 | o64.BottomSurface = Enum.SurfaceType.Smooth | |
823 | o64.TopSurface = Enum.SurfaceType.Smooth | |
824 | o64.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
825 | o64.Position = Vector3.new(51.7574959, 4.13999987, 5.32000017) | |
826 | o65.Parent = o64 | |
827 | o65.Scale = Vector3.new(1, 0.5, 0.800000012) | |
828 | o66.Parent = o1 | |
829 | o66.Material = Enum.Material.SmoothPlastic | |
830 | o66.BrickColor = BrickColor.new("Mid gray") | |
831 | o66.Position = Vector3.new(51.8513641, 3.88200378, 5.31954384) | |
832 | o66.Rotation = Vector3.new(-0, 0, 90) | |
833 | o66.Anchored = true | |
834 | o66.CanCollide = false | |
835 | o66.Shape = Enum.PartType.Cylinder | |
836 | o66.Size = Vector3.new(0.200000003, 0.899999976, 0.200000003) | |
837 | o66.CFrame = CFrame.new(51.8513641, 3.88200378, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
838 | o66.BottomSurface = Enum.SurfaceType.Smooth | |
839 | o66.TopSurface = Enum.SurfaceType.Smooth | |
840 | o66.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
841 | o66.Position = Vector3.new(51.8513641, 3.88200378, 5.31954384) | |
842 | o67.Parent = o66 | |
843 | o67.Scale = Vector3.new(0.800000012, 0.850000024, 0.800000012) | |
844 | o68.Parent = o1 | |
845 | o68.Material = Enum.Material.SmoothPlastic | |
846 | o68.BrickColor = BrickColor.new("Mid gray") | |
847 | o68.Position = Vector3.new(51.4799995, 4, 5.31954384) | |
848 | o68.Rotation = Vector3.new(-0, 0, 90) | |
849 | o68.Anchored = true | |
850 | o68.CanCollide = false | |
851 | o68.Shape = Enum.PartType.Cylinder | |
852 | o68.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
853 | o68.CFrame = CFrame.new(51.4799995, 4, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
854 | o68.BottomSurface = Enum.SurfaceType.Smooth | |
855 | o68.TopSurface = Enum.SurfaceType.Smooth | |
856 | o68.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
857 | o68.Position = Vector3.new(51.4799995, 4, 5.31954384) | |
858 | o69.Parent = o68 | |
859 | o70.Parent = o1 | |
860 | o70.Material = Enum.Material.SmoothPlastic | |
861 | o70.BrickColor = BrickColor.new("Mid gray") | |
862 | o70.Position = Vector3.new(51.4289932, 3.75999999, 5.32000017) | |
863 | o70.Anchored = true | |
864 | o70.CanCollide = false | |
865 | o70.Size = Vector3.new(0.200000003, 0.200000003, 0.204999983) | |
866 | o70.CFrame = CFrame.new(51.4289932, 3.75999999, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
867 | o70.BottomSurface = Enum.SurfaceType.Smooth | |
868 | o70.TopSurface = Enum.SurfaceType.Smooth | |
869 | o70.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
870 | o70.Position = Vector3.new(51.4289932, 3.75999999, 5.32000017) | |
871 | o71.Parent = o70 | |
872 | o71.Scale = Vector3.new(0.5, 1.89999998, 1) | |
873 | o72.Parent = o1 | |
874 | o72.Material = Enum.Material.SmoothPlastic | |
875 | o72.BrickColor = BrickColor.new("Mid gray") | |
876 | o72.Position = Vector3.new(52.1899986, 3.87007713, 5.32449865) | |
877 | o72.Rotation = Vector3.new(0, 90, 0) | |
878 | o72.Anchored = true | |
879 | o72.CanCollide = false | |
880 | o72.Size = Vector3.new(0.203000054, 0.200000003, 0.200000003) | |
881 | - | indicator.Font = "Fantasy" |
881 | + | |
882 | o72.BottomSurface = Enum.SurfaceType.Smooth | |
883 | o72.TopSurface = Enum.SurfaceType.Smooth | |
884 | o72.Color = Color3.new(0, 1, 1) | |
885 | o72.Position = Vector3.new(52.1899986, 3.87007713, 5.32449865) | |
886 | o73.Parent = o72 | |
887 | o73.Scale = Vector3.new(0.400000006, 0.300000012, 0.5) | |
888 | o74.Parent = o1 | |
889 | o74.Material = Enum.Material.SmoothPlastic | |
890 | o74.BrickColor = BrickColor.new("Mid gray") | |
891 | o74.Position = Vector3.new(51.2900009, 4.21000004, 5.32000017) | |
892 | o74.Anchored = true | |
893 | o74.CanCollide = false | |
894 | o74.Size = Vector3.new(0.42900002, 0.200000003, 0.204999983) | |
895 | o74.CFrame = CFrame.new(51.2900009, 4.21000004, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
896 | o74.BottomSurface = Enum.SurfaceType.Smooth | |
897 | o74.TopSurface = Enum.SurfaceType.Smooth | |
898 | o74.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
899 | o74.Position = Vector3.new(51.2900009, 4.21000004, 5.32000017) | |
900 | o75.Parent = o74 | |
901 | o75.Scale = Vector3.new(1, 0.25, 1) | |
902 | o76.Parent = o1 | |
903 | o76.Material = Enum.Material.SmoothPlastic | |
904 | o76.BrickColor = BrickColor.new("Dark stone grey") | |
905 | o76.Position = Vector3.new(50.7550011, 3.6400001, 5.32000017) | |
906 | o76.Rotation = Vector3.new(-0, 0, 1.28066051e-006) | |
907 | o76.Anchored = true | |
908 | o76.CanCollide = false | |
909 | o76.Size = Vector3.new(0.225000039, 0.209999993, 0.300000012) | |
910 | o76.CFrame = CFrame.new(50.7550011, 3.6400001, 5.32000017, 1, -2.23517418e-008, 0, 2.23517418e-008, 1, 0, 0, 0, 1) | |
911 | o76.BottomSurface = Enum.SurfaceType.Smooth | |
912 | o76.TopSurface = Enum.SurfaceType.Smooth | |
913 | o76.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
914 | o76.Position = Vector3.new(50.7550011, 3.6400001, 5.32000017) | |
915 | o77.Parent = o1 | |
916 | o77.Material = Enum.Material.SmoothPlastic | |
917 | o77.BrickColor = BrickColor.new("Mid gray") | |
918 | o77.Position = Vector3.new(50.7610054, 3.64415002, 5.44049978) | |
919 | o77.Rotation = Vector3.new(-0, 0, -44) | |
920 | o77.Anchored = true | |
921 | o77.CanCollide = false | |
922 | - | p2.Font = Enum.Font.SourceSans |
922 | + | |
923 | o77.CFrame = CFrame.new(50.7610054, 3.64415002, 5.44049978, 0.719339788, 0.694658399, 0, -0.694658399, 0.719339788, 0, 0, 0, 1) | |
924 | o77.BottomSurface = Enum.SurfaceType.Smooth | |
925 | o77.TopSurface = Enum.SurfaceType.Smooth | |
926 | o77.Color = Color3.new(0, 1, 1) | |
927 | o77.Position = Vector3.new(50.7610054, 3.64415002, 5.44049978) | |
928 | o78.Parent = o77 | |
929 | o78.Scale = Vector3.new(0.800000012, 0.300000012, 0.5) | |
930 | o79.Parent = o1 | |
931 | o79.Material = Enum.Material.SmoothPlastic | |
932 | o79.BrickColor = BrickColor.new("Mid gray") | |
933 | o79.Position = Vector3.new(49.8607674, 3.37296009, 5.30704403) | |
934 | o79.Rotation = Vector3.new(-90, 45, -90) | |
935 | o79.Anchored = true | |
936 | - | gunshot.Volume = 0.8 |
936 | + | |
937 | - | gunshot.SoundId = "rbxassetid://145080998" |
937 | + | |
938 | o79.CFrame = CFrame.new(49.8607674, 3.37296009, 5.30704403, -3.09086197e-008, 0.707106829, 0.707106769, 7.46200044e-008, -0.707106769, 0.707106829, 1, 7.46200044e-008, -3.09086197e-008) | |
939 | o79.BottomSurface = Enum.SurfaceType.Smooth | |
940 | o79.TopSurface = Enum.SurfaceType.Smooth | |
941 | - | reload.SoundId = "rbxassetid://506273075" |
941 | + | |
942 | o79.Position = Vector3.new(49.8607674, 3.37296009, 5.30704403) | |
943 | o80.Parent = o79 | |
944 | o80.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994) | |
945 | o80.MeshType = Enum.MeshType.Wedge | |
946 | o81.Parent = o1 | |
947 | o81.Material = Enum.Material.SmoothPlastic | |
948 | o81.BrickColor = BrickColor.new("Mid gray") | |
949 | o81.Position = Vector3.new(49.9099998, 3.35300016, 5.30999994) | |
950 | o81.Rotation = Vector3.new(180, 90, 0) | |
951 | o81.Anchored = true | |
952 | o81.CanCollide = false | |
953 | o81.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998) | |
954 | o81.CFrame = CFrame.new(49.9099998, 3.35300016, 5.30999994, -4.37113883e-008, 0, 1, 1.50995803e-007, -1, 6.60023616e-015, 1, 1.50995803e-007, 4.37113883e-008) | |
955 | o81.BottomSurface = Enum.SurfaceType.Smooth | |
956 | o81.TopSurface = Enum.SurfaceType.Smooth | |
957 | o81.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
958 | o81.Position = Vector3.new(49.9099998, 3.35300016, 5.30999994) | |
959 | o82.Parent = o81 | |
960 | o82.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994) | |
961 | o82.MeshType = Enum.MeshType.Wedge | |
962 | o83.Parent = o1 | |
963 | o83.Material = Enum.Material.SmoothPlastic | |
964 | o83.BrickColor = BrickColor.new("Mid gray") | |
965 | o83.Position = Vector3.new(49.7807693, 3.30195999, 5.30704403) | |
966 | o83.Rotation = Vector3.new(-90, -45, -90) | |
967 | o83.Anchored = true | |
968 | o83.CanCollide = false | |
969 | o83.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998) | |
970 | o83.CFrame = CFrame.new(49.7807693, 3.30195999, 5.30704403, -3.09086197e-008, 0.707106829, -0.707106769, 1.28027686e-008, 0.707106769, 0.707106829, 1, 1.28027686e-008, -3.09086197e-008) | |
971 | o83.BottomSurface = Enum.SurfaceType.Smooth | |
972 | o83.TopSurface = Enum.SurfaceType.Smooth | |
973 | o83.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
974 | o83.Position = Vector3.new(49.7807693, 3.30195999, 5.30704403) | |
975 | o84.Parent = o83 | |
976 | o84.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994) | |
977 | o84.MeshType = Enum.MeshType.Wedge | |
978 | o85.Parent = o1 | |
979 | o85.Material = Enum.Material.SmoothPlastic | |
980 | o85.BrickColor = BrickColor.new("Mid gray") | |
981 | o85.Position = Vector3.new(50.9780006, 4.17999983, 5.32000017) | |
982 | o85.Rotation = Vector3.new(0, 90, 0) | |
983 | o85.Anchored = true | |
984 | o85.CanCollide = false | |
985 | o85.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998) | |
986 | o85.CFrame = CFrame.new(50.9780006, 4.17999983, 5.32000017, -4.37113883e-008, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008) | |
987 | o85.BottomSurface = Enum.SurfaceType.Smooth | |
988 | o85.TopSurface = Enum.SurfaceType.Smooth | |
989 | o85.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
990 | o85.Position = Vector3.new(50.9780006, 4.17999983, 5.32000017) | |
991 | o86.Parent = o85 | |
992 | o86.Scale = Vector3.new(1, 0.5, 1) | |
993 | o86.MeshType = Enum.MeshType.Wedge | |
994 | o87.Name = "A1" | |
995 | o87.Parent = o1 | |
996 | o87.Material = Enum.Material.SmoothPlastic | |
997 | o87.BrickColor = BrickColor.new("Mid gray") | |
998 | o87.Position = Vector3.new(51.2319984, 4.05000019, 5.32000017) | |
999 | o87.Rotation = Vector3.new(-0, 0, 90) | |
1000 | o87.Anchored = true | |
1001 | o87.CanCollide = false | |
1002 | o87.Shape = Enum.PartType.Cylinder | |
1003 | o87.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
1004 | o87.CFrame = CFrame.new(51.2319984, 4.05000019, 5.32000017, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1) | |
1005 | o87.BottomSurface = Enum.SurfaceType.Smooth | |
1006 | o87.TopSurface = Enum.SurfaceType.Smooth | |
1007 | o87.Color = Color3.new(0, 1, 1) | |
1008 | o87.Position = Vector3.new(51.2319984, 4.05000019, 5.32000017) | |
1009 | o88.Parent = o87 | |
1010 | o88.Scale = Vector3.new(1, 1.54999995, 0.400000006) | |
1011 | o89.Name = "T1" | |
1012 | o89.Parent = o1 | |
1013 | o89.Material = Enum.Material.SmoothPlastic | |
1014 | o89.BrickColor = BrickColor.new("Dark stone grey") | |
1015 | o89.Position = Vector3.new(50.8995514, 3.52338958, 5.31954384) | |
1016 | o89.Rotation = Vector3.new(-0, 0, 29.0000076) | |
1017 | o89.Anchored = true | |
1018 | o89.CanCollide = false | |
1019 | o89.Size = Vector3.new(0.200000003, 0.223999992, 0.200000003) | |
1020 | o89.CFrame = CFrame.new(50.8995514, 3.52338958, 5.31954384, 0.874619663, -0.484809726, 0, 0.484809726, 0.874619663, 0, 0, 0, 1) | |
1021 | o89.BottomSurface = Enum.SurfaceType.Smooth | |
1022 | o89.TopSurface = Enum.SurfaceType.Smooth | |
1023 | o89.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
1024 | o89.Position = Vector3.new(50.8995514, 3.52338958, 5.31954384) | |
1025 | o90.Parent = o89 | |
1026 | o90.Scale = Vector3.new(0.5, 1, 0.5) | |
1027 | mas.Parent = workspace | |
1028 | mas:MakeJoints() | |
1029 | local mas1 = mas:GetChildren() | |
1030 | for i=1,#mas1 do | |
1031 | mas1[i].Parent = workspace | |
1032 | ypcall(function() mas1[i]:MakeJoints() end) | |
1033 | end | |
1034 | mas:Destroy() | |
1035 | for i=1,#cors do | |
1036 | coroutine.resume(cors[i]) | |
1037 | end | |
1038 | ||
1039 | local Revolver = o1 | |
1040 | local Handle = o24 | |
1041 | local BarrelEnd = o14 | |
1042 | local Chamber = o18 | |
1043 | local A1 = o87 | |
1044 | local A2 = o6 | |
1045 | local A3 = o4 | |
1046 | local A4 = o10 | |
1047 | local A5 = o8 | |
1048 | local A6 = o2 | |
1049 | local H1 = o20 | |
1050 | local H2 = o22 | |
1051 | local T1 = o89 | |
1052 | local T2 = o16 | |
1053 | ||
1054 | ----------------------------------------------------------------------------------- | |
1055 | ||
1056 | function indicate(part,var,typer) | |
1057 | local clonepart = Instance.new("Part", workspace) | |
1058 | clonepart.Size = Vector3.new(1,1,1) | |
1059 | clonepart.CanCollide = false | |
1060 | clonepart.Anchored = true | |
1061 | clonepart.CFrame = part.CFrame | |
1062 | clonepart.Transparency = 1 | |
1063 | local base1 = Instance.new("BillboardGui", clonepart) | |
1064 | base1.Name = "damage" | |
1065 | base1.ExtentsOffset = Vector3.new(-0.1,2,0) | |
1066 | base1.Size = UDim2.new(1,0,1,0) | |
1067 | base1.Adornee = clonepart | |
1068 | local indicator = Instance.new("TextLabel", base1) | |
1069 | indicator.Text = "-"..var | |
1070 | - | mesh.MeshId = "rbxassetid://1029586" |
1070 | + | |
1071 | - | mesh.TextureId = "rbxassetid://1029588" |
1071 | + | |
1072 | if typer == 0 then | |
1073 | indicator.TextColor3 = Color3.new(1,0,0) | |
1074 | elseif typer == 1 then | |
1075 | indicator.TextColor3 = Color3.new(0.5,0.5,0) | |
1076 | end | |
1077 | indicator.TextScaled = true | |
1078 | indicator.FontSize = 7 | |
1079 | indicator.Font = "Arcade" | |
1080 | indicator.Size = UDim2.new(1,0,1,0) | |
1081 | indicator.BackgroundTransparency = 1 | |
1082 | local change = coroutine.wrap(function(thing,thing2) | |
1083 | for i=1, 20 do | |
1084 | thing.TextTransparency = thing.TextTransparency + 0.05 | |
1085 | thing2.ExtentsOffset = thing2.ExtentsOffset + Vector3.new(0,0.1,0) | |
1086 | wait(0.01) | |
1087 | end | |
1088 | indicator.Parent.Parent:Remove() | |
1089 | end) | |
1090 | change(indicator,base1) | |
1091 | end | |
1092 | ||
1093 | local Player = game.Players.LocalPlayer | |
1094 | local Mouse = Player:GetMouse() | |
1095 | Mouse.TargetFilter = Player.Character | |
1096 | local Character = Player.Character | |
1097 | local Humanoid = Character.Humanoid | |
1098 | ||
1099 | Humanoid.WalkSpeed = 20 | |
1100 | Humanoid.JumpPower = 1 | |
1101 | Humanoid.MaxHealth = 100 | |
1102 | wait() | |
1103 | Humanoid.Health = Humanoid.MaxHealth | |
1104 | ||
1105 | local ammo = 6 | |
1106 | local attacking = false | |
1107 | local waiting = false | |
1108 | ||
1109 | local p1 = Instance.new("ScreenGui") | |
1110 | local p2 = Instance.new("TextLabel") | |
1111 | p1.Parent = Player.PlayerGui | |
1112 | p2.Parent = p1 | |
1113 | p2.Position = UDim2.new(0.5,0,0.8,0) | |
1114 | p2.Size = UDim2.new(0.05,0,0.05,0) | |
1115 | p2.Position = UDim2.new(0.5,0,0.8,0) | |
1116 | p2.Position = UDim2.new(0.5,0,0.8,0) | |
1117 | p2.BackgroundColor3 = Color3.new(0,0,0) | |
1118 | p2.BackgroundTransparency = 1 | |
1119 | p2.BorderSizePixel = 0 | |
1120 | p2.Font = Enum.Font.Arcade | |
1121 | p2.FontSize = Enum.FontSize.Size96 | |
1122 | p2.Text = ammo.."/6" | |
1123 | p2.TextColor3 = Color3.new(1,1,1) | |
1124 | ||
1125 | local animstate = 0 | |
1126 | local keyframe = 0 | |
1127 | local animstate2 = -1 | |
1128 | local keyframe2 = -1 | |
1129 | ||
1130 | -- highnoon: 507504338 | |
1131 | -- draw: 423993839 | |
1132 | ||
1133 | local gunshot = Instance.new("Sound", BarrelEnd) | |
1134 | gunshot.Volume = 1 | |
1135 | gunshot.SoundId = "rbxassetid://438149153" | |
1136 | ||
1137 | local reload = Instance.new("Sound", Character.Torso) | |
1138 | reload.Volume = 1 | |
1139 | reload.SoundId = "rbxassetid://151387574" | |
1140 | ||
1141 | local roll = Instance.new("Sound", Character.Torso) | |
1142 | roll.Volume = 1 | |
1143 | roll.SoundId = "rbxassetid://328825627" | |
1144 | ||
1145 | local LRP = Character.HumanoidRootPart.CFrame | |
1146 | ||
1147 | Joints={ | |
1148 | Character.HumanoidRootPart.RootJoint; | |
1149 | Character.Torso.Neck; | |
1150 | Character.Torso['Left Shoulder']; | |
1151 | Character.Torso['Right Shoulder']; | |
1152 | Character.Torso['Left Hip']; | |
1153 | Character.Torso['Right Hip']; | |
1154 | } | |
1155 | CurrentJoints={ | |
1156 | Character.HumanoidRootPart.RootJoint.C0; | |
1157 | Character.Torso.Neck.C0; | |
1158 | Character.Torso['Left Shoulder'].C0; | |
1159 | Character.Torso['Right Shoulder'].C0; | |
1160 | Character.Torso['Left Hip'].C0; | |
1161 | Character.Torso['Right Hip'].C0; | |
1162 | } | |
1163 | LastJoints={ | |
1164 | Character.HumanoidRootPart.RootJoint.C0; | |
1165 | Character.Torso.Neck.C0; | |
1166 | Character.Torso['Left Shoulder'].C0; | |
1167 | Character.Torso['Right Shoulder'].C0; | |
1168 | Character.Torso['Left Hip'].C0; | |
1169 | Character.Torso['Right Hip'].C0; | |
1170 | } | |
1171 | ||
1172 | local orig1 = Joints[1].C0 | |
1173 | local orig2 = Joints[2].C0 | |
1174 | local orig3 = Joints[3].C0 | |
1175 | local orig4 = Joints[4].C0 | |
1176 | local orig5 = Joints[5].C0 | |
1177 | local orig6 = Joints[6].C0 | |
1178 | ||
1179 | Revolver.Parent = Character | |
1180 | Character.Animate:remove() | |
1181 | Character.Humanoid.Animator:remove() | |
1182 | ||
1183 | for _,v in pairs (Revolver:GetChildren()) do | |
1184 | if v.Name ~= "Handle" and (v.Name ~= "A1" and v.Name ~= "A2" and v.Name ~= "A3" and v.Name ~= "A4" and v.Name ~= "A5" and v.Name ~= "A6") and v.Name ~= "T2" and v.Name ~= "H2" then | |
1185 | local NewWeld = Instance.new("Weld") | |
1186 | NewWeld.Part0 = Handle | |
1187 | NewWeld.Part1 = v | |
1188 | NewWeld.C0 = CFrame.new() | |
1189 | NewWeld.C1 = v.CFrame:toObjectSpace(Handle.CFrame) | |
1190 | NewWeld.Parent = Handle | |
1191 | if v.Name == "Chamber" then | |
1192 | NewWeld.Name = "ChamberWeld" | |
1193 | elseif v.Name == "H1" then | |
1194 | NewWeld.Name = "HammerWeld" | |
1195 | elseif v.Name == "T1" then | |
1196 | NewWeld.Name = "TriggerWeld" | |
1197 | end | |
1198 | end | |
1199 | if v.Name == "A1" or v.Name == "A2" or v.Name == "A3" or v.Name == "A4" or v.Name == "A5" or v.Name == "A6" then | |
1200 | local NewWeld = Instance.new("Weld") | |
1201 | NewWeld.Part0 = Chamber | |
1202 | NewWeld.Part1 = v | |
1203 | NewWeld.C0 = CFrame.new() | |
1204 | NewWeld.C1 = v.CFrame:toObjectSpace(Chamber.CFrame) | |
1205 | NewWeld.Parent = Chamber | |
1206 | end | |
1207 | if v.Name == "H2" then | |
1208 | local NewWeld = Instance.new("Weld") | |
1209 | NewWeld.Part0 = H1 | |
1210 | NewWeld.Part1 = v | |
1211 | NewWeld.C0 = CFrame.new() | |
1212 | NewWeld.C1 = v.CFrame:toObjectSpace(H1.CFrame) | |
1213 | NewWeld.Parent = H1 | |
1214 | end | |
1215 | if v.Name == "T2" then | |
1216 | local NewWeld = Instance.new("Weld") | |
1217 | NewWeld.Part0 = T1 | |
1218 | NewWeld.Part1 = v | |
1219 | NewWeld.C0 = CFrame.new() | |
1220 | NewWeld.C1 = v.CFrame:toObjectSpace(T1.CFrame) | |
1221 | NewWeld.Parent = T1 | |
1222 | end | |
1223 | wait() | |
1224 | end | |
1225 | for _,v in pairs (Revolver:GetChildren()) do | |
1226 | v.Anchored = false | |
1227 | wait() | |
1228 | end | |
1229 | ||
1230 | local Cweld = Handle:FindFirstChild("ChamberWeld") | |
1231 | local Hweld = Handle:FindFirstChild("HammerWeld") | |
1232 | local Tweld = Handle:FindFirstChild("TriggerWeld") | |
1233 | ||
1234 | local origh = Hweld.C0 | |
1235 | local origt = Tweld.C0 | |
1236 | ||
1237 | GunJoints={ | |
1238 | Hweld; | |
1239 | Tweld; | |
1240 | } | |
1241 | CurrentGunJoints={ | |
1242 | Hweld.C0; | |
1243 | Tweld.C0; | |
1244 | } | |
1245 | LastGunJoints={ | |
1246 | Hweld.C0; | |
1247 | Tweld.C0; | |
1248 | } | |
1249 | ||
1250 | Handle.CFrame = Character:FindFirstChild("Right Arm").CFrame*CFrame.new(0,-2.2,-0.7)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(180)) | |
1251 | ||
1252 | local HandleWeld = Instance.new("Weld") | |
1253 | HandleWeld.Name = "HandleWeld" | |
1254 | HandleWeld.Part0 = Character:FindFirstChild("Right Arm") | |
1255 | HandleWeld.Part1 = Handle | |
1256 | HandleWeld.C0 = CFrame.new(0,0,0) | |
1257 | HandleWeld.C1 = Handle.CFrame:toObjectSpace(Character:FindFirstChild("Right Arm").CFrame) | |
1258 | HandleWeld.Parent = Handle | |
1259 | ||
1260 | local hat = Instance.new("Part", Character) | |
1261 | hat.CanCollide = false | |
1262 | hat.Size = Vector3.new(1,0.4,1) | |
1263 | hat.Name = "Hat" | |
1264 | ||
1265 | local mesh = Instance.new("SpecialMesh", hat) | |
1266 | mesh.MeshType = 2 | |
1267 | mesh.Name = "Mesh" | |
1268 | mesh.MeshId = "rbxassetid://" | |
1269 | mesh.VertexColor = Vector3.new(0.4,0.3,0.2) | |
1270 | ||
1271 | hat.CFrame = Character.Head.CFrame*CFrame.new(0,0.6,0) | |
1272 | local HatWeld = Instance.new("Weld") | |
1273 | HatWeld.Name = "HatWeld" | |
1274 | HatWeld.Part0 = Character.Head | |
1275 | HatWeld.Part1 = hat | |
1276 | HatWeld.C0 = CFrame.new(0,0,0) | |
1277 | HatWeld.C1 = hat.CFrame:toObjectSpace(Character.Head.CFrame) | |
1278 | HatWeld.Parent = hat | |
1279 | ||
1280 | function weld(part1,part2,name) | |
1281 | local Weld = Instance.new("Weld") | |
1282 | if name then | |
1283 | Weld.Name = name | |
1284 | else | |
1285 | Weld.Name = "Weld" | |
1286 | end | |
1287 | Weld.Part0 = part1 | |
1288 | Weld.Part1 = part2 | |
1289 | Weld.C0 = CFrame.new(0,0,0) | |
1290 | Weld.C1 = part2.CFrame:toObjectSpace(part1.CFrame) | |
1291 | Weld.Parent = part2 | |
1292 | end | |
1293 | ||
1294 | local timer = 0 | |
1295 | local timer2 = 0 | |
1296 | ||
1297 | local cooled1 = true | |
1298 | local cooled2 = true | |
1299 | local cooled3 = true | |
1300 | local ultcharge = 0 | |
1301 | ||
1302 | game:GetService("RunService").RenderStepped:connect(function() | |
1303 | p2.Text = ammo.."/6" | |
1304 | if animstate ~= 0 then | |
1305 | print("time"..timer) | |
1306 | print("a1"..animstate) | |
1307 | print("a2"..animstate2) | |
1308 | end | |
1309 | if Player.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) and animstate ~= 0 and animstate ~= 2 and not waiting then | |
1310 | animstate = 0 | |
1311 | keyframe = -1 | |
1312 | timer = 0 | |
1313 | LastJoints = CurrentJoints | |
1314 | elseif Player.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and animstate ~= 1 and animstate ~= 2 and not waiting then | |
1315 | animstate = 1 | |
1316 | keyframe = -1 | |
1317 | timer = 0 | |
1318 | LastJoints = CurrentJoints | |
1319 | end | |
1320 | timer = timer + 1 | |
1321 | timer2 = timer2 + 1 | |
1322 | if animstate == 0 then | |
1323 | if keyframe == -1 then | |
1324 | local JointTargets={} | |
1325 | if not attacking then | |
1326 | JointTargets={ | |
1327 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1328 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1329 | orig3*CFrame.Angles(math.rad(-25),0,0); | |
1330 | orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y)); | |
1331 | orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1332 | orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1333 | } | |
1334 | else | |
1335 | JointTargets={ | |
1336 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1337 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1338 | 0; | |
1339 | 0; | |
1340 | orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1341 | orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1342 | } | |
1343 | end | |
1344 | for p=1,#Joints do | |
1345 | if JointTargets[p] ~= 0 then | |
1346 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/10)) | |
1347 | if attacking then | |
1348 | CurrentJoints={ | |
1349 | Joints[1].C0; | |
1350 | Joints[2].C0; | |
1351 | CurrentJoints[3]; | |
1352 | CurrentJoints[4]; | |
1353 | Joints[5].C0; | |
1354 | Joints[6].C0; | |
1355 | } | |
1356 | else | |
1357 | CurrentJoints={ | |
1358 | Joints[1].C0; | |
1359 | Joints[2].C0; | |
1360 | Joints[3].C0; | |
1361 | Joints[4].C0; | |
1362 | Joints[5].C0; | |
1363 | Joints[6].C0; | |
1364 | } | |
1365 | end | |
1366 | end | |
1367 | end | |
1368 | if timer >= 10 then | |
1369 | keyframe = 1 | |
1370 | timer = 0 | |
1371 | LastJoints = CurrentJoints | |
1372 | end | |
1373 | elseif keyframe == 0 then | |
1374 | local JointTargets={} | |
1375 | if not attacking then | |
1376 | JointTargets={ | |
1377 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1378 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1379 | orig3*CFrame.Angles(math.rad(-25),0,0); | |
1380 | orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y)); | |
1381 | orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1382 | orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1383 | } | |
1384 | else | |
1385 | JointTargets={ | |
1386 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1387 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1388 | 0; | |
1389 | 0; | |
1390 | orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1391 | orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1392 | } | |
1393 | end | |
1394 | for p=1,#Joints do | |
1395 | if JointTargets[p] ~= 0 then | |
1396 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/40)) | |
1397 | if attacking then | |
1398 | CurrentJoints={ | |
1399 | Joints[1].C0; | |
1400 | Joints[2].C0; | |
1401 | CurrentJoints[3]; | |
1402 | CurrentJoints[4]; | |
1403 | Joints[5].C0; | |
1404 | Joints[6].C0; | |
1405 | } | |
1406 | else | |
1407 | CurrentJoints={ | |
1408 | Joints[1].C0; | |
1409 | Joints[2].C0; | |
1410 | Joints[3].C0; | |
1411 | Joints[4].C0; | |
1412 | Joints[5].C0; | |
1413 | Joints[6].C0; | |
1414 | } | |
1415 | end | |
1416 | end | |
1417 | end | |
1418 | if timer >= 40 then | |
1419 | wait(0.1) | |
1420 | keyframe = 1 | |
1421 | timer = 0 | |
1422 | LastJoints = CurrentJoints | |
1423 | end | |
1424 | elseif keyframe == 1 then | |
1425 | local JointTargets={} | |
1426 | if not attacking then | |
1427 | JointTargets={ | |
1428 | orig1*CFrame.new(0,0,0.05)*CFrame.Angles(math.rad(2),0,0); | |
1429 | orig2*CFrame.Angles(math.rad(-2)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1430 | orig3*CFrame.Angles(math.rad(-35),0,0); | |
1431 | orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(93)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y)); | |
1432 | orig5*CFrame.new(0,-0.15,0)*CFrame.Angles(math.rad(-5),0,math.rad(18)); | |
1433 | orig6*CFrame.new(0,-0.15,0)*CFrame.Angles(math.rad(-5),0,math.rad(12)); | |
1434 | } | |
1435 | else | |
1436 | JointTargets={ | |
1437 | orig1*CFrame.new(0,0,0.05)*CFrame.Angles(math.rad(2),0,0); | |
1438 | orig2*CFrame.Angles(math.rad(-2)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1439 | 0; | |
1440 | 0; | |
1441 | orig5*CFrame.new(0,-0.15,0)*CFrame.Angles(math.rad(-5),0,math.rad(18)); | |
1442 | orig6*CFrame.new(0,-0.15,0)*CFrame.Angles(math.rad(-5),0,math.rad(12)); | |
1443 | } | |
1444 | end | |
1445 | for p=1,#Joints do | |
1446 | if JointTargets[p] ~= 0 then | |
1447 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/40)) | |
1448 | if attacking then | |
1449 | CurrentJoints={ | |
1450 | Joints[1].C0; | |
1451 | Joints[2].C0; | |
1452 | CurrentJoints[3]; | |
1453 | CurrentJoints[4]; | |
1454 | Joints[5].C0; | |
1455 | Joints[6].C0; | |
1456 | } | |
1457 | else | |
1458 | CurrentJoints={ | |
1459 | Joints[1].C0; | |
1460 | Joints[2].C0; | |
1461 | Joints[3].C0; | |
1462 | Joints[4].C0; | |
1463 | Joints[5].C0; | |
1464 | - | A1.BrickColor = BrickColor.new("Toothpaste") |
1464 | + | |
1465 | - | A2.BrickColor = BrickColor.new("Toothpaste") |
1465 | + | |
1466 | - | A3.BrickColor = BrickColor.new("Toothpaste") |
1466 | + | |
1467 | - | A4.BrickColor = BrickColor.new("Toothpaste") |
1467 | + | |
1468 | - | A5.BrickColor = BrickColor.new("Toothpaste") |
1468 | + | |
1469 | - | A6.BrickColor = BrickColor.new("Toothpaste") |
1469 | + | |
1470 | wait(0.1) | |
1471 | keyframe = 0 | |
1472 | timer = 0 | |
1473 | LastJoints = CurrentJoints | |
1474 | end | |
1475 | end | |
1476 | elseif animstate == 1 then | |
1477 | if keyframe == -1 then | |
1478 | local JointTargets={} | |
1479 | if not attacking then | |
1480 | JointTargets={ | |
1481 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1482 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1483 | orig3*CFrame.Angles(math.rad(-25),0,0); | |
1484 | orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y)); | |
1485 | orig5*CFrame.Angles(0,0,math.rad(40)); | |
1486 | orig6*CFrame.Angles(0,0,math.rad(40)); | |
1487 | } | |
1488 | else | |
1489 | JointTargets={ | |
1490 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1491 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1492 | 0; | |
1493 | 0; | |
1494 | orig5*CFrame.Angles(0,0,math.rad(40)); | |
1495 | orig6*CFrame.Angles(0,0,math.rad(40)); | |
1496 | } | |
1497 | end | |
1498 | for p=1,#Joints do | |
1499 | if JointTargets[p] ~= 0 then | |
1500 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/10)) | |
1501 | if attacking then | |
1502 | CurrentJoints={ | |
1503 | Joints[1].C0; | |
1504 | Joints[2].C0; | |
1505 | CurrentJoints[3]; | |
1506 | CurrentJoints[4]; | |
1507 | Joints[5].C0; | |
1508 | Joints[6].C0; | |
1509 | } | |
1510 | else | |
1511 | CurrentJoints={ | |
1512 | Joints[1].C0; | |
1513 | Joints[2].C0; | |
1514 | Joints[3].C0; | |
1515 | Joints[4].C0; | |
1516 | Joints[5].C0; | |
1517 | Joints[6].C0; | |
1518 | } | |
1519 | end | |
1520 | end | |
1521 | end | |
1522 | if timer >= 10 then | |
1523 | keyframe = 1 | |
1524 | timer = 0 | |
1525 | LastJoints = CurrentJoints | |
1526 | end | |
1527 | elseif keyframe == 0 then | |
1528 | local JointTargets={} | |
1529 | if not attacking then | |
1530 | JointTargets={ | |
1531 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1532 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1533 | orig3*CFrame.Angles(math.rad(-25),0,0); | |
1534 | orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y)); | |
1535 | orig5*CFrame.Angles(0,0,math.rad(40)); | |
1536 | orig6*CFrame.Angles(0,0,math.rad(40)); | |
1537 | } | |
1538 | else | |
1539 | JointTargets={ | |
1540 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1541 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1542 | 0; | |
1543 | 0; | |
1544 | orig5*CFrame.Angles(0,0,math.rad(40)); | |
1545 | orig6*CFrame.Angles(0,0,math.rad(40)); | |
1546 | } | |
1547 | end | |
1548 | for p=1,#Joints do | |
1549 | if JointTargets[p] ~= 0 then | |
1550 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/18)) | |
1551 | if attacking then | |
1552 | CurrentJoints={ | |
1553 | Joints[1].C0; | |
1554 | Joints[2].C0; | |
1555 | CurrentJoints[3]; | |
1556 | CurrentJoints[4]; | |
1557 | Joints[5].C0; | |
1558 | Joints[6].C0; | |
1559 | } | |
1560 | else | |
1561 | CurrentJoints={ | |
1562 | Joints[1].C0; | |
1563 | Joints[2].C0; | |
1564 | Joints[3].C0; | |
1565 | Joints[4].C0; | |
1566 | Joints[5].C0; | |
1567 | Joints[6].C0; | |
1568 | } | |
1569 | end | |
1570 | end | |
1571 | end | |
1572 | if timer >= 18 then | |
1573 | wait(0.1) | |
1574 | keyframe = 1 | |
1575 | timer = 0 | |
1576 | LastJoints = CurrentJoints | |
1577 | end | |
1578 | elseif keyframe == 1 then | |
1579 | local JointTargets={} | |
1580 | if not attacking then | |
1581 | JointTargets={ | |
1582 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1583 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1584 | orig3*CFrame.Angles(math.rad(-25),0,0); | |
1585 | orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y)); | |
1586 | orig5*CFrame.Angles(0,0,math.rad(-40)); | |
1587 | orig6*CFrame.Angles(0,0,math.rad(-40)); | |
1588 | } | |
1589 | else | |
1590 | JointTargets={ | |
1591 | orig1*CFrame.Angles(math.rad(5),0,0); | |
1592 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1593 | Joints[3].C0; | |
1594 | Joints[4].C0; | |
1595 | orig5*CFrame.Angles(0,0,math.rad(-40)); | |
1596 | orig6*CFrame.Angles(0,0,math.rad(-40)); | |
1597 | } | |
1598 | end | |
1599 | for p=1,#Joints do | |
1600 | if JointTargets[p] ~= 0 then | |
1601 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/18)) | |
1602 | if attacking then | |
1603 | CurrentJoints={ | |
1604 | Joints[1].C0; | |
1605 | Joints[2].C0; | |
1606 | CurrentJoints[3]; | |
1607 | CurrentJoints[4]; | |
1608 | Joints[5].C0; | |
1609 | Joints[6].C0; | |
1610 | } | |
1611 | else | |
1612 | CurrentJoints={ | |
1613 | Joints[1].C0; | |
1614 | Joints[2].C0; | |
1615 | Joints[3].C0; | |
1616 | Joints[4].C0; | |
1617 | Joints[5].C0; | |
1618 | Joints[6].C0; | |
1619 | } | |
1620 | end | |
1621 | end | |
1622 | end | |
1623 | if timer >= 18 then | |
1624 | - | local damage = 35 |
1624 | + | |
1625 | keyframe = 0 | |
1626 | timer = 0 | |
1627 | LastJoints = CurrentJoints | |
1628 | end | |
1629 | end | |
1630 | elseif animstate == 2 then | |
1631 | if keyframe == 0 then | |
1632 | local JointTargets={ | |
1633 | - | Flash2.BrickColor = BrickColor.new(Color3.new(0,1,1)) |
1633 | + | |
1634 | orig2*CFrame.Angles(math.rad(15),0,0); | |
1635 | 0; | |
1636 | 0; | |
1637 | orig5*CFrame.Angles(0,0,math.rad(-20)); | |
1638 | orig6*CFrame.Angles(0,0,math.rad(20)); | |
1639 | } | |
1640 | ||
1641 | for p=1,#Joints do | |
1642 | if JointTargets[p] ~= 0 then | |
1643 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/10)) | |
1644 | CurrentJoints={ | |
1645 | Joints[1].C0; | |
1646 | Joints[2].C0; | |
1647 | CurrentJoints[3]; | |
1648 | CurrentJoints[4]; | |
1649 | Joints[5].C0; | |
1650 | Joints[6].C0; | |
1651 | } | |
1652 | end | |
1653 | end | |
1654 | ||
1655 | if timer >= 10 then | |
1656 | keyframe = 1 | |
1657 | timer = 0 | |
1658 | LastJoints = CurrentJoints | |
1659 | roll:Play() | |
1660 | ammo = 6 | |
1661 | A1.BrickColor = BrickColor.new("Mid gray") | |
1662 | A2.BrickColor = BrickColor.new("Mid gray") | |
1663 | A3.BrickColor = BrickColor.new("Mid gray") | |
1664 | A4.BrickColor = BrickColor.new("Mid gray") | |
1665 | A5.BrickColor = BrickColor.new("Mid gray") | |
1666 | A6.BrickColor = BrickColor.new("Mid gray") | |
1667 | end | |
1668 | elseif keyframe == 1 then | |
1669 | local JointTargets={ | |
1670 | LastJoints[1]*CFrame.Angles(math.rad(-240),0,0); | |
1671 | orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0); | |
1672 | 0; | |
1673 | 0; | |
1674 | orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1675 | orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15)); | |
1676 | } | |
1677 | ||
1678 | for p=1,#Joints do | |
1679 | if JointTargets[p] ~= 0 then | |
1680 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/10)) | |
1681 | CurrentJoints={ | |
1682 | Joints[1].C0; | |
1683 | Joints[2].C0; | |
1684 | CurrentJoints[3]; | |
1685 | CurrentJoints[4]; | |
1686 | Joints[5].C0; | |
1687 | Joints[6].C0; | |
1688 | } | |
1689 | end | |
1690 | end | |
1691 | ||
1692 | if timer >= 10 then | |
1693 | animstate = -1 | |
1694 | keyframe = -1 | |
1695 | timer = 0 | |
1696 | LastJoints = CurrentJoints | |
1697 | attacking = false | |
1698 | Character.Humanoid.WalkSpeed = 20 | |
1699 | local waiter = coroutine.wrap(function() | |
1700 | wait(8) | |
1701 | cooled2 = true | |
1702 | end) | |
1703 | waiter() | |
1704 | end | |
1705 | end | |
1706 | end | |
1707 | if animstate2 == 0 then | |
1708 | if keyframe2 == -1 then | |
1709 | local JointTargets={ | |
1710 | 0; | |
1711 | 0; | |
1712 | orig3*CFrame.new(-0.5,0,-1.3)*CFrame.Angles(0,math.rad(-85),math.rad(-115)); | |
1713 | orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)); | |
1714 | 0; | |
1715 | 0; | |
1716 | } | |
1717 | ||
1718 | local GunTargets={ | |
1719 | origh; | |
1720 | origt; | |
1721 | } | |
1722 | ||
1723 | for p=1,#Joints do | |
1724 | if JointTargets[p] ~= 0 then | |
1725 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/5)) | |
1726 | CurrentJoints={ | |
1727 | CurrentJoints[1]; | |
1728 | CurrentJoints[2]; | |
1729 | Character.Torso['Left Shoulder'].C0; | |
1730 | Character.Torso['Right Shoulder'].C0; | |
1731 | CurrentJoints[5]; | |
1732 | CurrentJoints[6]; | |
1733 | } | |
1734 | end | |
1735 | end | |
1736 | ||
1737 | for p=1,#GunJoints do | |
1738 | if GunTargets[p] ~= 0 then | |
1739 | GunJoints[p].C0=LastGunJoints[p]:lerp(GunTargets[p],math.sin(timer2/5)) | |
1740 | CurrentGunJoints={ | |
1741 | GunJoints[1].C0; | |
1742 | GunJoints[2].C0; | |
1743 | } | |
1744 | end | |
1745 | end | |
1746 | ||
1747 | if timer2 >= 5 and not waiting then | |
1748 | if ammo > 0 then | |
1749 | waiting = true | |
1750 | keyframe2 = 0 | |
1751 | timer2 = 0 | |
1752 | LastJoints = CurrentJoints | |
1753 | LastGunJoints = CurrentGunJoints | |
1754 | else | |
1755 | animstate2 = -1 | |
1756 | keyframe2 = -1 | |
1757 | timer2 = 0 | |
1758 | LastJoints = CurrentJoints | |
1759 | LastGunJoints = CurrentGunJoints | |
1760 | attacking = false | |
1761 | waiting = false | |
1762 | cooled1 = true | |
1763 | end | |
1764 | end | |
1765 | elseif keyframe2 == 0 then | |
1766 | if waiting then | |
1767 | waiting = false | |
1768 | gunshot:Play() | |
1769 | if ammo == 6 then | |
1770 | A2.BrickColor = BrickColor.new("Really black") | |
1771 | ammo = 5 | |
1772 | elseif ammo == 5 then | |
1773 | A3.BrickColor = BrickColor.new("Really black") | |
1774 | ammo = 4 | |
1775 | elseif ammo == 4 then | |
1776 | A4.BrickColor = BrickColor.new("Really black") | |
1777 | ammo = 3 | |
1778 | elseif ammo == 3 then | |
1779 | A5.BrickColor = BrickColor.new("Really black") | |
1780 | ammo = 2 | |
1781 | elseif ammo == 2 then | |
1782 | A6.BrickColor = BrickColor.new("Really black") | |
1783 | ammo = 1 | |
1784 | elseif ammo == 1 then | |
1785 | A1.BrickColor = BrickColor.new("Really black") | |
1786 | ammo = 0 | |
1787 | end | |
1788 | local reduced = false | |
1789 | local r1 = math.random(1,2) | |
1790 | local r2 = math.random(1,2) | |
1791 | local f1; | |
1792 | local f2; | |
1793 | if r1 == 1 then | |
1794 | f1 = 1 | |
1795 | else | |
1796 | f1 = -1 | |
1797 | end | |
1798 | if r2 == 1 then | |
1799 | f2 = 1 | |
1800 | else | |
1801 | f2 = -1 | |
1802 | end | |
1803 | ||
1804 | local ray = Ray.new((BarrelEnd.CFrame*CFrame.new(0,-0.2,0)).p,((Mouse.Hit*CFrame.new(f1*math.random(50,100)/100,f2*math.random(50,100)/100,0)).p-(BarrelEnd.CFrame*CFrame.new(0,-0.2,0)).p).unit*999) | |
1805 | local target, hit = workspace:FindPartOnRay(ray,Character) | |
1806 | local newpos = hit | |
1807 | local newhit = target | |
1808 | ||
1809 | if newhit then | |
1810 | if (newpos-Character.HumanoidRootPart.Position).magnitude > 20 then | |
1811 | reduced = true | |
1812 | end | |
1813 | local dist = (newpos-Character.HumanoidRootPart.Position).magnitude | |
1814 | if newhit and (newhit.Parent:FindFirstChild("Humanoid") or newhit.Parent.Parent:FindFirstChild("Humanoid")) then | |
1815 | local hum; | |
1816 | if newhit.Parent.Parent:FindFirstChild("Humanoid") then | |
1817 | hum = newhit.Parent.Parent:FindFirstChild("Humanoid") | |
1818 | elseif newhit.Parent:FindFirstChild("Humanoid") then | |
1819 | hum = newhit.Parent:FindFirstChild("Humanoid") | |
1820 | end | |
1821 | local damage = 999999 | |
1822 | if reduced then | |
1823 | damage = math.floor(damage*(5/dist)) | |
1824 | end | |
1825 | hum.Health = hum.Health - damage | |
1826 | indicate(hum.Parent:FindFirstChild("Head"),damage,0) | |
1827 | end | |
1828 | local Flash2 = Instance.new("Part", Character) | |
1829 | Flash2.CanCollide = false | |
1830 | Flash2.BrickColor = BrickColor.new(Color3.new(1,1,0)) | |
1831 | Flash2.Anchored = true | |
1832 | Flash2.Position = newpos | |
1833 | Flash2.Transparency = 0 | |
1834 | Flash2.Name = "flash" | |
1835 | Flash2.Shape = "Ball" | |
1836 | Flash2.Material = "Neon" | |
1837 | Flash2.BackSurface = "SmoothNoOutlines" | |
1838 | Flash2.FrontSurface = "SmoothNoOutlines" | |
1839 | Flash2.BottomSurface = "SmoothNoOutlines" | |
1840 | Flash2.TopSurface = "SmoothNoOutlines" | |
1841 | Flash2.LeftSurface = "SmoothNoOutlines" | |
1842 | Flash2.RightSurface = "SmoothNoOutlines" | |
1843 | Flash2.FormFactor = "Custom" | |
1844 | Flash2.Size = Vector3.new(0.3,0.3,0.3) | |
1845 | local grow2 = coroutine.wrap(function() | |
1846 | for i=1, 10 do | |
1847 | Flash2.Transparency = Flash2.Transparency + 0.1 | |
1848 | wait(0.01) | |
1849 | end | |
1850 | Flash2:Remove() | |
1851 | end) | |
1852 | local part = Instance.new("Part", Character) | |
1853 | local origpos = BarrelEnd.CFrame*CFrame.new(0,-0.2,0).p | |
1854 | local pos = CFrame.new((origpos+newpos)/2,newpos) | |
1855 | local mag = (origpos - newpos).magnitude | |
1856 | part.CanCollide = false | |
1857 | part.Anchored = true | |
1858 | part.FormFactor = "Custom" | |
1859 | part.Material = "SmoothPlastic" | |
1860 | part.Name = "effect" | |
1861 | part.Shape = "Cylinder" | |
1862 | part.BackSurface = "SmoothNoOutlines" | |
1863 | part.BottomSurface = "SmoothNoOutlines" | |
1864 | part.FrontSurface = "SmoothNoOutlines" | |
1865 | part.LeftSurface = "SmoothNoOutlines" | |
1866 | part.RightSurface = "SmoothNoOutlines" | |
1867 | part.TopSurface = "SmoothNoOutlines" | |
1868 | part.Transparency = 0.5 | |
1869 | part.BrickColor = BrickColor.new(Color3.new(50,50,50)) | |
1870 | part.Size = Vector3.new(mag,0.1,0.1) | |
1871 | part.CFrame = pos*CFrame.Angles(0,math.rad(90),0) | |
1872 | local changer = coroutine.wrap(function() | |
1873 | for i=1, 10 do | |
1874 | - | local damage = 70 |
1874 | + | |
1875 | part.Transparency = part.Transparency + 0.05 | |
1876 | wait() | |
1877 | end | |
1878 | part:Remove() | |
1879 | end) | |
1880 | grow2() | |
1881 | - | local damage = 35 |
1881 | + | |
1882 | end | |
1883 | local Flash = Instance.new("Part", Character) | |
1884 | Flash.CanCollide = false | |
1885 | Flash.BrickColor = BrickColor.new(Color3.new(1,1,0)) | |
1886 | Flash.Anchored = true | |
1887 | Flash.CFrame = BarrelEnd.CFrame*CFrame.new(0,-0.1,0) | |
1888 | Flash.Transparency = 0 | |
1889 | Flash.Material = "Neon" | |
1890 | Flash.BackSurface = "SmoothNoOutlines" | |
1891 | - | Flash2.BrickColor = BrickColor.new(Color3.new(0,1,1)) |
1891 | + | |
1892 | Flash.BottomSurface = "SmoothNoOutlines" | |
1893 | Flash.TopSurface = "SmoothNoOutlines" | |
1894 | Flash.LeftSurface = "SmoothNoOutlines" | |
1895 | Flash.RightSurface = "SmoothNoOutlines" | |
1896 | Flash.FormFactor = "Custom" | |
1897 | Flash.Size = Vector3.new(1,1,1) | |
1898 | local mesh = Instance.new("SpecialMesh", Flash) | |
1899 | mesh.MeshType = "Sphere" | |
1900 | mesh.Scale = Vector3.new(0.4,0.4,0.4) | |
1901 | local grow = coroutine.wrap(function() | |
1902 | for i=1, 5 do | |
1903 | Flash.Transparency = Flash.Transparency + 0.2 | |
1904 | mesh.Scale = mesh.Scale + Vector3.new(0,0.2,0) | |
1905 | wait() | |
1906 | end | |
1907 | Flash:Remove() | |
1908 | end) | |
1909 | grow() | |
1910 | end | |
1911 | local JointTargets={ | |
1912 | 0; | |
1913 | 0; | |
1914 | orig3*CFrame.new(-0.5,0,-1.3)*CFrame.Angles(0,math.rad(-85),math.rad(-110)); | |
1915 | orig4*CFrame.new(-0.1,-0.1,0)*CFrame.Angles(0,0,math.rad(120)); | |
1916 | 0; | |
1917 | 0; | |
1918 | } | |
1919 | ||
1920 | local GunTargets={ | |
1921 | origh*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(15)); | |
1922 | origt*CFrame.Angles(0,0,math.rad(-15)); | |
1923 | } | |
1924 | ||
1925 | for p=1,#Joints do | |
1926 | if JointTargets[p] ~= 0 then | |
1927 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/5)) | |
1928 | CurrentJoints={ | |
1929 | CurrentJoints[1]; | |
1930 | CurrentJoints[2]; | |
1931 | Character.Torso['Left Shoulder'].C0; | |
1932 | Character.Torso['Right Shoulder'].C0; | |
1933 | CurrentJoints[5]; | |
1934 | CurrentJoints[6]; | |
1935 | } | |
1936 | end | |
1937 | end | |
1938 | ||
1939 | for p=1,#GunJoints do | |
1940 | if GunTargets[p] ~= 0 then | |
1941 | GunJoints[p].C0=LastGunJoints[p]:lerp(GunTargets[p],math.sin(timer2/5)) | |
1942 | CurrentGunJoints={ | |
1943 | GunJoints[1].C0; | |
1944 | GunJoints[2].C0; | |
1945 | } | |
1946 | end | |
1947 | end | |
1948 | ||
1949 | if timer2 >= 5 then | |
1950 | keyframe2 = -1 | |
1951 | timer2 = 0 | |
1952 | LastJoints = CurrentJoints | |
1953 | LastGunJoints = CurrentGunJoints | |
1954 | end | |
1955 | end | |
1956 | elseif animstate2 == 1 then | |
1957 | if keyframe2 == -1 then | |
1958 | reload:Play() | |
1959 | local tochange = {} | |
1960 | if ammo == 5 then | |
1961 | table.insert(tochange,A2) | |
1962 | elseif ammo == 4 then | |
1963 | table.insert(tochange,A2) | |
1964 | table.insert(tochange,A3) | |
1965 | elseif ammo == 3 then | |
1966 | table.insert(tochange,A2) | |
1967 | table.insert(tochange,A3) | |
1968 | table.insert(tochange,A4) | |
1969 | elseif ammo == 2 then | |
1970 | table.insert(tochange,A2) | |
1971 | table.insert(tochange,A3) | |
1972 | table.insert(tochange,A4) | |
1973 | table.insert(tochange,A5) | |
1974 | elseif ammo == 1 then | |
1975 | table.insert(tochange,A2) | |
1976 | table.insert(tochange,A3) | |
1977 | table.insert(tochange,A4) | |
1978 | table.insert(tochange,A5) | |
1979 | table.insert(tochange,A6) | |
1980 | elseif ammo == 0 then | |
1981 | table.insert(tochange,A1) | |
1982 | table.insert(tochange,A2) | |
1983 | table.insert(tochange,A3) | |
1984 | table.insert(tochange,A4) | |
1985 | table.insert(tochange,A5) | |
1986 | table.insert(tochange,A6) | |
1987 | end | |
1988 | local changer = coroutine.wrap(function() | |
1989 | for i=1, 10 do | |
1990 | for _,v in pairs (tochange) do | |
1991 | v.BrickColor = BrickColor.new(0,i/10,i/10) | |
1992 | end | |
1993 | wait(0.01) | |
1994 | end | |
1995 | end) | |
1996 | changer() | |
1997 | ammo = 6 | |
1998 | keyframe2 = 0 | |
1999 | timer2 = 0 | |
2000 | elseif keyframe2 == 0 then | |
2001 | local JointTargets={ | |
2002 | 0; | |
2003 | 0; | |
2004 | 0; | |
2005 | orig4*CFrame.new(0,0,0)*CFrame.Angles(0,0,math.rad(180)); | |
2006 | 0; | |
2007 | 0; | |
2008 | } | |
2009 | ||
2010 | for p=1,#Joints do | |
2011 | if JointTargets[p] ~= 0 then | |
2012 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/30)) | |
2013 | CurrentJoints={ | |
2014 | CurrentJoints[1]; | |
2015 | CurrentJoints[2]; | |
2016 | CurrentJoints[3]; | |
2017 | Character.Torso['Right Shoulder'].C0; | |
2018 | CurrentJoints[5]; | |
2019 | CurrentJoints[6]; | |
2020 | } | |
2021 | end | |
2022 | end | |
2023 | ||
2024 | if timer2 >= 30 and not waiting then | |
2025 | waiting = true | |
2026 | wait(0.5) | |
2027 | animstate2 = -1 | |
2028 | keyframe2 = -1 | |
2029 | attacking = false | |
2030 | waiting = false | |
2031 | LastJoints = CurrentJoints | |
2032 | end | |
2033 | end | |
2034 | elseif animstate2 == 2 then | |
2035 | if keyframe2 == -1 then | |
2036 | gunshot:Play() | |
2037 | if ammo == 6 then | |
2038 | A2.BrickColor = BrickColor.new("Really black") | |
2039 | elseif ammo == 5 then | |
2040 | A3.BrickColor = BrickColor.new("Really black") | |
2041 | elseif ammo == 4 then | |
2042 | A4.BrickColor = BrickColor.new("Really black") | |
2043 | elseif ammo == 3 then | |
2044 | A5.BrickColor = BrickColor.new("Really black") | |
2045 | elseif ammo == 2 then | |
2046 | A6.BrickColor = BrickColor.new("Really black") | |
2047 | elseif ammo == 1 then | |
2048 | A1.BrickColor = BrickColor.new("Really black") | |
2049 | end | |
2050 | ammo = ammo - 1 | |
2051 | keyframe2 = 0 | |
2052 | timer2 = 0 | |
2053 | local reduced = false | |
2054 | local ray = Ray.new((BarrelEnd.CFrame*CFrame.new(0,-0.2,0)).p,(Mouse.Hit.p-BarrelEnd.CFrame*CFrame.new(0,-0.2,0).p).unit*999) | |
2055 | local target, hit = workspace:FindPartOnRay(ray,Character) | |
2056 | local newpos = hit | |
2057 | local newhit = target | |
2058 | if newhit then | |
2059 | if (newpos-Character.HumanoidRootPart.Position).magnitude > 70 then | |
2060 | reduced = true | |
2061 | end | |
2062 | local dist = (newpos-Character.HumanoidRootPart.Position).magnitude | |
2063 | if newhit and (newhit.Parent:FindFirstChild("Humanoid") or newhit.Parent.Parent:FindFirstChild("Humanoid")) then | |
2064 | local hum; | |
2065 | if newhit.Parent.Parent:FindFirstChild("Humanoid") then | |
2066 | hum = newhit.Parent.Parent:FindFirstChild("Humanoid") | |
2067 | elseif newhit.Parent:FindFirstChild("Humanoid") then | |
2068 | hum = newhit.Parent:FindFirstChild("Humanoid") | |
2069 | end | |
2070 | if newhit.Name == "Head" or newhit.Name == "Handle" or newhit.ClassName == "Accessory" then | |
2071 | local damage = 999999 | |
2072 | if reduced then | |
2073 | damage = math.floor(damage*(70/dist)) | |
2074 | end | |
2075 | hum.Health = hum.Health - damage | |
2076 | indicate(hum.Parent:FindFirstChild("Head"),damage,1) | |
2077 | else | |
2078 | local damage = 999999 | |
2079 | if reduced then | |
2080 | damage = math.floor(damage*(70/dist)) | |
2081 | end | |
2082 | hum.Health = hum.Health - damage | |
2083 | indicate(hum.Parent:FindFirstChild("Head"),damage,0) | |
2084 | end | |
2085 | end | |
2086 | local Flash2 = Instance.new("Part", Character) | |
2087 | Flash2.CanCollide = false | |
2088 | Flash2.BrickColor = BrickColor.new(Color3.new(1,1,0)) | |
2089 | Flash2.Anchored = true | |
2090 | Flash2.Position = newpos | |
2091 | Flash2.Transparency = 0 | |
2092 | Flash2.Name = "flash" | |
2093 | Flash2.Shape = "Ball" | |
2094 | Flash2.Material = "Neon" | |
2095 | Flash2.BackSurface = "SmoothNoOutlines" | |
2096 | Flash2.FrontSurface = "SmoothNoOutlines" | |
2097 | Flash2.BottomSurface = "SmoothNoOutlines" | |
2098 | Flash2.TopSurface = "SmoothNoOutlines" | |
2099 | Flash2.LeftSurface = "SmoothNoOutlines" | |
2100 | Flash2.RightSurface = "SmoothNoOutlines" | |
2101 | Flash2.FormFactor = "Custom" | |
2102 | Flash2.Size = Vector3.new(0.3,0.3,0.3) | |
2103 | local grow2 = coroutine.wrap(function() | |
2104 | for i=1, 10 do | |
2105 | Flash2.Transparency = Flash2.Transparency + 0.1 | |
2106 | wait(0.01) | |
2107 | end | |
2108 | Flash2:Remove() | |
2109 | end) | |
2110 | local part = Instance.new("Part", Character) | |
2111 | local origpos = BarrelEnd.CFrame*CFrame.new(0,-0.2,0).p | |
2112 | local pos = CFrame.new((origpos+newpos)/2,newpos) | |
2113 | local mag = (origpos - newpos).magnitude | |
2114 | part.CanCollide = false | |
2115 | part.Anchored = true | |
2116 | part.FormFactor = "Custom" | |
2117 | part.Material = "SmoothPlastic" | |
2118 | part.Name = "effect" | |
2119 | part.Shape = "Cylinder" | |
2120 | part.BackSurface = "SmoothNoOutlines" | |
2121 | part.BottomSurface = "SmoothNoOutlines" | |
2122 | part.FrontSurface = "SmoothNoOutlines" | |
2123 | part.LeftSurface = "SmoothNoOutlines" | |
2124 | part.RightSurface = "SmoothNoOutlines" | |
2125 | part.TopSurface = "SmoothNoOutlines" | |
2126 | part.Transparency = 0.5 | |
2127 | part.BrickColor = BrickColor.new(Color3.new(50,50,50)) | |
2128 | part.Size = Vector3.new(mag,0.1,0.1) | |
2129 | part.CFrame = pos*CFrame.Angles(0,math.rad(90),0) | |
2130 | local changer = coroutine.wrap(function() | |
2131 | for i=1, 10 do | |
2132 | part.Size = part.Size + Vector3.new(0,0.01,0.01) | |
2133 | part.Transparency = part.Transparency + 0.05 | |
2134 | wait() | |
2135 | end | |
2136 | part:Remove() | |
2137 | end) | |
2138 | grow2() | |
2139 | changer() | |
2140 | end | |
2141 | local Flash = Instance.new("Part", Character) | |
2142 | Flash.CanCollide = false | |
2143 | Flash.BrickColor = BrickColor.new(Color3.new(1,1,0)) | |
2144 | Flash.Anchored = true | |
2145 | Flash.CFrame = BarrelEnd.CFrame*CFrame.new(0,-0.1,0) | |
2146 | Flash.Transparency = 0 | |
2147 | Flash.Material = "Neon" | |
2148 | Flash.BackSurface = "SmoothNoOutlines" | |
2149 | Flash.FrontSurface = "SmoothNoOutlines" | |
2150 | Flash.BottomSurface = "SmoothNoOutlines" | |
2151 | Flash.TopSurface = "SmoothNoOutlines" | |
2152 | Flash.LeftSurface = "SmoothNoOutlines" | |
2153 | Flash.RightSurface = "SmoothNoOutlines" | |
2154 | Flash.FormFactor = "Custom" | |
2155 | Flash.Size = Vector3.new(1,1,1) | |
2156 | local mesh = Instance.new("SpecialMesh", Flash) | |
2157 | mesh.MeshType = "Sphere" | |
2158 | mesh.Scale = Vector3.new(0.4,0.4,0.4) | |
2159 | local grow = coroutine.wrap(function() | |
2160 | for i=1, 5 do | |
2161 | Flash.Transparency = Flash.Transparency + 0.2 | |
2162 | mesh.Scale = mesh.Scale + Vector3.new(0,0.2,0) | |
2163 | wait() | |
2164 | end | |
2165 | Flash:Remove() | |
2166 | end) | |
2167 | grow() | |
2168 | elseif keyframe2 == 0 then | |
2169 | local JointTargets={ | |
2170 | 0; | |
2171 | 0; | |
2172 | 0; | |
2173 | orig4*CFrame.new(-0.1,-0.1,0)*CFrame.Angles(0,0,math.rad(150)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y)); | |
2174 | 0; | |
2175 | 0; | |
2176 | } | |
2177 | ||
2178 | local GunTargets={ | |
2179 | origh*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(15)); | |
2180 | origt*CFrame.Angles(0,0,math.rad(-15)); | |
2181 | } | |
2182 | for p=1,#Joints do | |
2183 | if JointTargets[p] ~= 0 then | |
2184 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/10)) | |
2185 | CurrentJoints={ | |
2186 | CurrentJoints[1]; | |
2187 | CurrentJoints[2]; | |
2188 | CurrentJoints[3]; | |
2189 | Character.Torso['Right Shoulder'].C0; | |
2190 | CurrentJoints[5]; | |
2191 | CurrentJoints[6]; | |
2192 | } | |
2193 | end | |
2194 | end | |
2195 | ||
2196 | for p=1,#GunJoints do | |
2197 | if GunTargets[p] ~= 0 then | |
2198 | GunJoints[p].C0=LastGunJoints[p]:lerp(GunTargets[p],math.sin(timer2/10)) | |
2199 | CurrentGunJoints={ | |
2200 | GunJoints[1].C0; | |
2201 | GunJoints[2].C0; | |
2202 | } | |
2203 | end | |
2204 | end | |
2205 | if timer2 >= 10 then | |
2206 | keyframe2 = 2 | |
2207 | timer2 = 0 | |
2208 | attacking = false | |
2209 | LastJoints = CurrentJoints | |
2210 | LastGunJoints = CurrentGunJoints | |
2211 | end | |
2212 | elseif keyframe2 == 2 then | |
2213 | local GunTargets={ | |
2214 | origh; | |
2215 | origt; | |
2216 | } | |
2217 | for p=1,#GunJoints do | |
2218 | if GunTargets[p] ~= 0 then | |
2219 | GunJoints[p].C0=LastGunJoints[p]:lerp(GunTargets[p],math.sin(timer2/10)) | |
2220 | CurrentGunJoints={ | |
2221 | GunJoints[1].C0; | |
2222 | GunJoints[2].C0; | |
2223 | } | |
2224 | end | |
2225 | end | |
2226 | if timer2 >= 10 then | |
2227 | animstate2 = -1 | |
2228 | keyframe2 = -1 | |
2229 | LastGunJoints = CurrentGunJoints | |
2230 | local waiter = coroutine.wrap(function() | |
2231 | wait(0.5) | |
2232 | cooled1 = true | |
2233 | end) | |
2234 | waiter() | |
2235 | end | |
2236 | end | |
2237 | elseif animstate2 == 3 then | |
2238 | if keyframe2 == -1 then | |
2239 | local JointTargets={ | |
2240 | 0; | |
2241 | 0; | |
2242 | orig3*CFrame.Angles(0,math.rad(-15),math.rad(-135)); | |
2243 | 0; | |
2244 | 0; | |
2245 | 0; | |
2246 | } | |
2247 | ||
2248 | for p=1,#Joints do | |
2249 | if JointTargets[p] ~= 0 then | |
2250 | Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/12)) | |
2251 | CurrentJoints={ | |
2252 | CurrentJoints[1]; | |
2253 | CurrentJoints[2]; | |
2254 | Character.Torso['Left Shoulder'].C0; | |
2255 | CurrentJoints[4]; | |
2256 | CurrentJoints[5]; | |
2257 | CurrentJoints[6]; | |
2258 | } | |
2259 | end | |
2260 | end | |
2261 | ||
2262 | if timer2 >= 12 and not waiting then | |
2263 | waiting = true | |
2264 | local flashpart = Instance.new("Part", Character) | |
2265 | flashpart.FormFactor = "Custom" | |
2266 | flashpart.FrontSurface = "Smooth" | |
2267 | flashpart.BackSurface = "Smooth" | |
2268 | flashpart.TopSurface = "Smooth" | |
2269 | flashpart.BottomSurface = "Smooth" | |
2270 | flashpart.LeftSurface = "Smooth" | |
2271 | flashpart.RightSurface = "Smooth" | |
2272 | flashpart.BrickColor = BrickColor.new(10/255,10/255,10/255) | |
2273 | flashpart.Size = Vector3.new(0.35,0.7,0.35) | |
2274 | flashpart.CanCollide = false | |
2275 | flashpart.CFrame = Character['Left Arm'].CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.random(),math.random(),math.random()) | |
2276 | flashpart.Velocity = Character.HumanoidRootPart.CFrame.lookVector*20+Vector3.new(0,0.5,0) | |
2277 | wait(0.1) | |
2278 | local bang = coroutine.wrap(function() | |
2279 | local prevframe = flashpart.CFrame | |
2280 | local stunner = coroutine.wrap(function() | |
2281 | for _,v in pairs (workspace:GetChildren()) do | |
2282 | local torso; | |
2283 | if v:FindFirstChild("Torso") then | |
2284 | torso = v:FindFirstChild("Torso") | |
2285 | elseif v:FindFirstChild("UpperTorso") then | |
2286 | torso = v:FindFirstChild("UpperTorso") | |
2287 | end | |
2288 | if v:FindFirstChild("Humanoid") and torso and v ~= Character then | |
2289 | local mag = (torso.Position-prevframe.p).magnitude | |
2290 | if mag <= 10 then | |
2291 | local stunthem = coroutine.wrap(function() | |
2292 | local prev = v:FindFirstChild("Humanoid").WalkSpeed | |
2293 | local prev2 = v:FindFirstChild("Humanoid").JumpPower | |
2294 | v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - 15 | |
2295 | indicate(v:FindFirstChild("Head"),15,0) | |
2296 | v:FindFirstChild("Humanoid").WalkSpeed = 0 | |
2297 | v:FindFirstChild("Humanoid").JumpPower = 0 | |
2298 | wait(1) | |
2299 | v:FindFirstChild("Humanoid").WalkSpeed = prev | |
2300 | v:FindFirstChild("Humanoid").JumpPower = prev2 | |
2301 | end) | |
2302 | stunthem() | |
2303 | end | |
2304 | end | |
2305 | end | |
2306 | end) | |
2307 | stunner() | |
2308 | flashpart:Remove() | |
2309 | local soundpart = Instance.new("Part", Character) | |
2310 | soundpart.Anchored = true | |
2311 | soundpart.FormFactor = "Custom" | |
2312 | soundpart.CanCollide = false | |
2313 | soundpart.Size = Vector3.new(0.2,0.2,0.2) | |
2314 | soundpart.CFrame = prevframe | |
2315 | soundpart.Transparency = 1 | |
2316 | local flash = Instance.new("Sound", soundpart) | |
2317 | flash.Volume = 0.8 | |
2318 | flash.SoundId = "rbxassetid://440145223" | |
2319 | flash:Play() | |
2320 | game.Debris:AddItem(soundpart,5) | |
2321 | for i=1, 5 do | |
2322 | local Flash = Instance.new("Part", Character) | |
2323 | Flash.CanCollide = false | |
2324 | Flash.BrickColor = BrickColor.new(Color3.new(1,1,0)) | |
2325 | Flash.Anchored = true | |
2326 | Flash.CFrame = prevframe*CFrame.Angles(math.random(),math.random(),math.random()) | |
2327 | Flash.Transparency = 0 | |
2328 | Flash.Material = "Neon" | |
2329 | Flash.BackSurface = "SmoothNoOutlines" | |
2330 | Flash.FrontSurface = "SmoothNoOutlines" | |
2331 | Flash.BottomSurface = "SmoothNoOutlines" | |
2332 | Flash.TopSurface = "SmoothNoOutlines" | |
2333 | Flash.LeftSurface = "SmoothNoOutlines" | |
2334 | Flash.RightSurface = "SmoothNoOutlines" | |
2335 | Flash.FormFactor = "Custom" | |
2336 | Flash.Size = Vector3.new(1,1,1) | |
2337 | local mesh = Instance.new("SpecialMesh", Flash) | |
2338 | mesh.MeshType = "Sphere" | |
2339 | mesh.Scale = Vector3.new(2,2,2) | |
2340 | local grow = coroutine.wrap(function() | |
2341 | for i=1, 10 do | |
2342 | Flash.Transparency = Flash.Transparency + 0.1 | |
2343 | mesh.Scale = mesh.Scale + Vector3.new(0,1,0) | |
2344 | wait() | |
2345 | end | |
2346 | Flash:Remove() | |
2347 | end) | |
2348 | grow() | |
2349 | wait() | |
2350 | end | |
2351 | end) | |
2352 | bang() | |
2353 | animstate2 = -1 | |
2354 | keyframe2 = -1 | |
2355 | timer2 = 0 | |
2356 | attacking = false | |
2357 | waiting = false | |
2358 | LastJoints = CurrentJoints | |
2359 | local waiter = coroutine.wrap(function() | |
2360 | wait(6) | |
2361 | cooled3 = true | |
2362 | end) | |
2363 | waiter() | |
2364 | end | |
2365 | end | |
2366 | end | |
2367 | end) | |
2368 | ||
2369 | Mouse.Button1Down:connect(function() | |
2370 | if ammo > 0 and not attacking and cooled1 and not waiting then | |
2371 | animstate2 = 2 | |
2372 | cooled1 = false | |
2373 | timer2 = 0 | |
2374 | keyframe2 = -1 | |
2375 | attacking = true | |
2376 | end | |
2377 | end) | |
2378 | ||
2379 | Mouse.KeyDown:connect(function(key) | |
2380 | if key == "r" and not attacking and ammo < 6 and not waiting and cooled1 then | |
2381 | animstate2 = 1 | |
2382 | timer2 = 0 | |
2383 | keyframe2 = -1 | |
2384 | attacking = true | |
2385 | elseif key == "f" and ammo > 0 and not attacking and cooled1 and not waiting then | |
2386 | animstate2 = 0 | |
2387 | cooled1 = false | |
2388 | timer2 = 0 | |
2389 | keyframe2 = -1 | |
2390 | attacking = true | |
2391 | elseif key == "q" and not attacking and cooled2 and not waiting and Player.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then | |
2392 | animstate = 2 | |
2393 | cooled2 = false | |
2394 | timer = 0 | |
2395 | Character.Humanoid.WalkSpeed = 50 | |
2396 | keyframe = 0 | |
2397 | attacking = true | |
2398 | LastJoints = CurrentJoints | |
2399 | elseif key == "e" and not attacking and not waiting and cooled3 then | |
2400 | animstate2 = 3 | |
2401 | cooled3 = false | |
2402 | timer2 = 0 | |
2403 | keyframe2 = -1 | |
2404 | attacking = true | |
2405 | end | |
2406 | end) |