SHOW:
|
|
- or go back to the newest paste.
1 | - | } |
1 | + | |
2 | local Player = game.Players.localPlayer | |
3 | local Character = Player.Character | |
4 | local Humanoid = Character.Humanoid | |
5 | local mouse = Player:GetMouse() | |
6 | local m = Instance.new('Model', Character) | |
7 | m.Name = "WeaponModel" | |
8 | local Effects = {} | |
9 | local LeftArm = Character["Left Arm"] | |
10 | local RightArm = Character["Right Arm"] | |
11 | local LeftLeg = Character["Left Leg"] | |
12 | local RightLeg = Character["Right Leg"] | |
13 | local Head = Character.Head | |
14 | local Torso = Character.Torso | |
15 | local cam = game.Workspace.CurrentCamera | |
16 | local RootPart = Character.HumanoidRootPart | |
17 | local RootJoint = RootPart.RootJoint | |
18 | --cam.CameraSubject = Head | |
19 | local equipped = false | |
20 | local attack = false | |
21 | local Anim = 'Idle' | |
22 | local idle = 0 | |
23 | local sprint = false | |
24 | local battlestance = false | |
25 | local attacktype = 1 | |
26 | local state = 'none' | |
27 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
28 | local velocity = RootPart.Velocity.y | |
29 | local sine = 0 | |
30 | local change = 1 | |
31 | local on = false | |
32 | local grabbed = false | |
33 | local skill1 = false | |
34 | local skill2 = false | |
35 | local skill3 = false | |
36 | local skill4 = false | |
37 | local cooldown1 = 0 | |
38 | local cooldown2 = 0 | |
39 | local cooldown3 = 0 | |
40 | local cooldown4 = 0 | |
41 | local co1 = 10--how long it will take for skill to cooldown | |
42 | local co2 = 15 | |
43 | local co3 = 15 | |
44 | local co4 = 35 | |
45 | local inputserv = game:GetService('UserInputService') | |
46 | local typing = false | |
47 | local crit = false | |
48 | local critchance = 9999999--critical chance percentage | |
49 | local critdamageaddmin = 9999999--minimum amount of critical damage being added to regular damage | |
50 | local critdamageaddmax = 9999999--maximum amount | |
51 | local maxstamina = 100--max amount of stamina | |
52 | local stamina = 0--stamina you start out with | |
53 | local skill1stam = 0--how much stamina is needed for a skill | |
54 | local skill2stam = 0 | |
55 | local skill3stam = 0 | |
56 | local skill4stam = 0 | |
57 | local recoverEnergy = 9999999--how much Energy per second | |
58 | local defensevalue = 9999999--how much defense this character has | |
59 | local speedvalue = 1--how much speed this character has | |
60 | --speed is 16*speedvalue | |
61 | local mindamage = 9999999--self explanatory | |
62 | local maxdamage = 9999999--self explanatory | |
63 | local damagevalue = 999999--how much damage this character has | |
64 | --damage is math.random(mindamage,maxdamage)*damagevalue | |
65 | --damage(hit, mindamage, maxdamage, 1, 1, RootPart) | |
66 | --asd | |
67 | local cn = CFrame.new-- make things easier :) | |
68 | local mr = math.rad | |
69 | local angles = CFrame.Angles | |
70 | local ud = UDim2.new | |
71 | local c3 = Color3.new | |
72 | local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol | |
73 | --asd | |
74 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
75 | Humanoid.Animator:Destroy() | |
76 | Character.Animate:Destroy() | |
77 | ||
78 | --Angles For RootJoint `~` | |
79 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
80 | --Save Shoulders/Hips | |
81 | RSH, LSH = nil, nil | |
82 | RHS, LHS = nil, nil | |
83 | --Shoulders | |
84 | RW = Instance.new("Weld") | |
85 | LW = Instance.new("Weld") | |
86 | --Hips | |
87 | RH = Instance.new("Weld") | |
88 | LH = Instance.new("Weld") | |
89 | -- | |
90 | Player = Player | |
91 | ch = Character | |
92 | LHS = Torso["Left Hip"] | |
93 | RHS = Torso["Right Hip"] | |
94 | RSH = ch.Torso["Right Shoulder"] | |
95 | LSH = ch.Torso["Left Shoulder"] | |
96 | -- | |
97 | RSH.Parent = nil | |
98 | LSH.Parent = nil | |
99 | -- | |
100 | LHS.Parent = nil | |
101 | RHS.Parent = nil | |
102 | -- | |
103 | RW.Name = "RW" | |
104 | RW.Part0 = ch.Torso | |
105 | RW.C0 = cn(1.5, 0.5, 0) | |
106 | RW.C1 = cn(0, 0.5, 0) | |
107 | RW.Part1 = ch["Right Arm"] | |
108 | RW.Parent = ch.Torso | |
109 | -- | |
110 | LW.Name = "LW" | |
111 | LW.Part0 = ch.Torso | |
112 | LW.C0 = cn(-1.5, 0.5, 0) | |
113 | LW.C1 = cn(0, 0.5, 0) | |
114 | LW.Part1 = ch["Left Arm"] | |
115 | LW.Parent = ch.Torso | |
116 | -- | |
117 | LH.Name = "LH" | |
118 | LH.Part0 = ch.Torso | |
119 | LH.C0 = cn(-0.5, -2, 0) | |
120 | LH.Part1 = ch["Left Leg"] | |
121 | LH.Parent = ch.Torso | |
122 | -- | |
123 | RH.Name = "RH" | |
124 | RH.Part0 = ch.Torso | |
125 | RH.C0 = cn(0.5, -2, 0) | |
126 | RH.Part1 = ch["Right Leg"] | |
127 | RH.Parent = ch.Torso | |
128 | ||
129 | local scrn = Instance.new('ScreenGui', Player.PlayerGui) | |
130 | function makeframe(par, trans, pos, size, color) | |
131 | local frame = Instance.new('Frame', par) | |
132 | frame.BackgroundTransparency = trans | |
133 | frame.BorderSizePixel = 0 | |
134 | frame.Position = pos | |
135 | frame.Size = size | |
136 | frame.BackgroundColor3 = color | |
137 | return frame | |
138 | end | |
139 | function makelabel(par, text) | |
140 | local label = Instance.new('TextLabel', par) | |
141 | label.BackgroundTransparency = 1 | |
142 | label.Size = ud(1, 0, 1, 0) | |
143 | label.Position = ud(0, 0, 0, 0) | |
144 | label.TextColor3 = c3(255, 255, 255) | |
145 | label.TextStrokeTransparency = 0 | |
146 | label.FontSize = Enum.FontSize.Size32 | |
147 | label.Font = Enum.Font.SourceSansBold | |
148 | label.BorderSizePixel = 0 | |
149 | label.TextScaled = true | |
150 | label.Text = text | |
151 | end | |
152 | framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
153 | framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
154 | framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
155 | framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
156 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
157 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
158 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
159 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
160 | text1 = makelabel(framesk1, '[t] Reflex') | |
161 | text2 = makelabel(framesk2, '[f] Luxuriance') | |
162 | text3 = makelabel(framesk3, "[r] Lucent Scatter") | |
163 | text4 = makelabel(framesk4, '[q] Echo Barrage') | |
164 | staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), BrickColor.new("Really black").Color) | |
165 | staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), BrickColor.new("Really red").Color) | |
166 | - | staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), BrickColor.new("Hot pink").Color) |
166 | + | |
167 | healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0)) | |
168 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), BrickColor.new("Lime green").Color) | |
169 | healthtext = makelabel(healthbar, 'Health') | |
170 | ||
171 | local stats = Instance.new('Folder', Character) | |
172 | stats.Name = 'Stats' | |
173 | local block = Instance.new('BoolValue', stats) | |
174 | block.Name = 'Block' | |
175 | block.Value = false | |
176 | local stun = Instance.new('BoolValue', stats) | |
177 | stun.Name = 'Stun' | |
178 | stun.Value = false | |
179 | local defense = Instance.new('NumberValue', stats) | |
180 | defense.Name = 'Defence' | |
181 | defense.Value = defensevalue | |
182 | local speed = Instance.new('NumberValue', stats) | |
183 | speed.Name = 'Speed' | |
184 | speed.Value = speedvalue | |
185 | local damagea = Instance.new('NumberValue', stats) | |
186 | damagea.Name = 'Damage' | |
187 | damagea.Value = damagevalue | |
188 | gyro = Instance.new("BodyGyro") | |
189 | gyro.Parent = nil | |
190 | gyro.P = 1e7 | |
191 | gyro.D = 1e3 | |
192 | gyro.MaxTorque = Vector3.new(0,1e7,0) | |
193 | ||
194 | function atktype(s, e) | |
195 | coroutine.resume(coroutine.create(function() | |
196 | attacktype = e | |
197 | wait() | |
198 | attacktype = s | |
199 | end)) | |
200 | end | |
201 | ||
202 | function turncrit() | |
203 | coroutine.resume(coroutine.create(function() | |
204 | print'CRITICAL!' | |
205 | crit = true | |
206 | wait() | |
207 | crit = false | |
208 | end)) | |
209 | end | |
210 | ||
211 | function subtractstamina(k) | |
212 | if stamina >= k then | |
213 | stamina = stamina - k | |
214 | end | |
215 | end | |
216 | ||
217 | function clerp(a, b, t) | |
218 | return a:lerp(b, t) | |
219 | end | |
220 | ||
221 | function randomizer(percent) | |
222 | local randomized = math.random(0, 100) | |
223 | if randomized <= percent then | |
224 | return true | |
225 | elseif randomized >= percent then | |
226 | return false | |
227 | end | |
228 | end | |
229 | ||
230 | local RbxUtility = LoadLibrary("RbxUtility") | |
231 | local Create = RbxUtility.Create | |
232 | ||
233 | function RemoveOutlines(part) | |
234 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
235 | end | |
236 | ||
237 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
238 | local Part = Create("Part"){ | |
239 | formFactor = FormFactor, | |
240 | Parent = Parent, | |
241 | Reflectance = Reflectance, | |
242 | Transparency = Transparency, | |
243 | CanCollide = false, | |
244 | Locked = true, | |
245 | BrickColor = BrickColor.new(tostring(BColor)), | |
246 | Name = Name, | |
247 | Size = Size, | |
248 | Material = Material, | |
249 | } | |
250 | RemoveOutlines(Part) | |
251 | return Part | |
252 | end | |
253 | ||
254 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
255 | local Msh = Create(Mesh){ | |
256 | Parent = Part, | |
257 | Offset = OffSet, | |
258 | Scale = Scale, | |
259 | } | |
260 | if Mesh == "SpecialMesh" then | |
261 | Msh.MeshType = MeshType | |
262 | Msh.MeshId = MeshId | |
263 | end | |
264 | return Msh | |
265 | end | |
266 | ||
267 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
268 | local Weld = Create("Weld"){ | |
269 | Parent = Parent, | |
270 | Part0 = Part0, | |
271 | Part1 = Part1, | |
272 | C0 = C0, | |
273 | C1 = C1, | |
274 | } | |
275 | return Weld | |
276 | end | |
277 | ||
278 | function rayCast(pos, dir, maxl, ignore) | |
279 | return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore) | |
280 | end | |
281 | --Effects | |
282 | function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type) | |
283 | local p = Instance.new('Part', par or workspace) | |
284 | p.CFrame = pos1 | |
285 | p.Anchored = true | |
286 | p.Material = 'SmoothPlastic' | |
287 | p.CanCollide = false | |
288 | p.TopSurface = 0 | |
289 | p.Size = Vector3.new(1, 1, 1) | |
290 | p.BottomSurface = 0 | |
291 | p.Transparency = trans | |
292 | p.FormFactor = 'Custom' | |
293 | RemoveOutlines(p) | |
294 | local mesh = Instance.new('SpecialMesh', p) | |
295 | mesh.Scale = size | |
296 | if id ~= nil and type == nil then | |
297 | mesh.MeshId = 'rbxassetid://'..id | |
298 | elseif id == nil and type ~= nil then | |
299 | mesh.MeshType = type | |
300 | elseif id == nil and type == nil then | |
301 | mesh.MeshType = 'Brick' | |
302 | end | |
303 | coroutine.wrap(function() | |
304 | for i = 0, delay1, .1 do | |
305 | wait() | |
306 | p.CFrame = p.CFrame | |
307 | mesh.Scale = mesh.Scale + howmuch | |
308 | p.Transparency = p.Transparency + trans1 | |
309 | end | |
310 | p:Destroy() | |
311 | end)() | |
312 | return p | |
313 | end | |
314 | function clangy(cframe) | |
315 | wait() | |
316 | local clang = {} | |
317 | local dis = 0 | |
318 | local part = Instance.new('Part', nil) | |
319 | part.CFrame = cframe | |
320 | part.Anchored = true | |
321 | part.CanCollide = false | |
322 | part.BrickColor = BrickColor.new('New Yeller') | |
323 | part.FormFactor = 'Custom' | |
324 | part.Name = 'clanger' | |
325 | part.Size = Vector3.new(.2, .2, .2) | |
326 | part.TopSurface = 10 | |
327 | part.BottomSurface = 10 | |
328 | part.RightSurface = 10 | |
329 | part.LeftSurface = 10 | |
330 | part.BackSurface = 10 | |
331 | part.FrontSurface = 10 | |
332 | --part.Material='Neon' | |
333 | part:BreakJoints() | |
334 | local mesh = Instance.new('BlockMesh', part) | |
335 | coroutine.wrap(function() | |
336 | for i = 1, 7 do | |
337 | wait() | |
338 | dis = dis + .2 | |
339 | local partc = part:clone() | |
340 | partc.Parent = workspace | |
341 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
342 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
343 | table.insert(clang, partc) | |
344 | end | |
345 | for i, v in pairs(clang) do | |
346 | coroutine.wrap(function() | |
347 | for i = 1, 10 do | |
348 | wait() | |
349 | v.Transparency = v.Transparency + .1 | |
350 | end | |
351 | v:destroy() | |
352 | end)() | |
353 | end | |
354 | end)() | |
355 | end | |
356 | --damage effects | |
357 | function circle(color, pos1) | |
358 | local p = Instance.new('Part', m) | |
359 | p.BrickColor = BrickColor.new(color) | |
360 | p.CFrame = pos1 | |
361 | p.Anchored = true | |
362 | p.Material = 'Plastic' | |
363 | p.CanCollide = false | |
364 | p.TopSurface = 0 | |
365 | p.Size = Vector3.new(1, 1, 1) | |
366 | p.BottomSurface = 0 | |
367 | p.Transparency = 0.35 | |
368 | p.FormFactor = 'Custom' | |
369 | local mesh = Instance.new('CylinderMesh', p) | |
370 | mesh.Scale = Vector3.new(0, 0, 0) | |
371 | coroutine.wrap(function() | |
372 | for i = 0, 5, .1 do | |
373 | wait() | |
374 | p.CFrame = p.CFrame | |
375 | mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5) | |
376 | p.Transparency = p.Transparency + .025 | |
377 | end | |
378 | p:Destroy() | |
379 | end)() | |
380 | end | |
381 | function firespaz1(color, pos1) | |
382 | local p = Instance.new('Part', m) | |
383 | p.BrickColor = BrickColor.new(color) | |
384 | p.CFrame = pos1 | |
385 | p.Anchored = true | |
386 | p.Material = 'Plastic' | |
387 | p.CanCollide = false | |
388 | p.TopSurface = 0 | |
389 | p.Size = Vector3.new(1, 1, 1) | |
390 | p.BottomSurface = 0 | |
391 | p.Transparency = 0.5 | |
392 | p.FormFactor = 'Custom' | |
393 | local mesh = Instance.new('BlockMesh', p) | |
394 | mesh.Scale = Vector3.new(1, 1, 1) | |
395 | coroutine.wrap(function() | |
396 | for i = 0, 15, .1 do | |
397 | wait() | |
398 | p.CFrame = p.CFrame * CFrame.new(0, .1, 0) | |
399 | mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1) | |
400 | p.Transparency = p.Transparency + .025 | |
401 | end | |
402 | p:Destroy() | |
403 | end)() | |
404 | end | |
405 | ||
406 | function pickrandom(tablesa) | |
407 | local randomized = tablesa[math.random(1, #tablesa)] | |
408 | return randomized | |
409 | end | |
410 | function sound(id, pitch, volume, par, last) | |
411 | local s = Instance.new('Sound', par or Torso) | |
412 | s.SoundId = 'rbxassetid://'..id | |
413 | s.Pitch = pitch or 1 | |
414 | s.Volume = volume or 1 | |
415 | wait() | |
416 | s:play() | |
417 | game.Debris:AddItem(s, last or 120) | |
418 | end | |
419 | function clangy(cframe) | |
420 | wait() | |
421 | local clang = {} | |
422 | local dis = 0 | |
423 | local part = Instance.new('Part', nil) | |
424 | part.CFrame = cframe | |
425 | part.Anchored = true | |
426 | part.CanCollide = false | |
427 | part.BrickColor = BrickColor.new('New Yeller') | |
428 | part.FormFactor = 'Custom' | |
429 | part.Name = 'clanger' | |
430 | part.Size = Vector3.new(.2, .2, .2) | |
431 | part.TopSurface = 10 | |
432 | part.BottomSurface = 10 | |
433 | part.RightSurface = 10 | |
434 | part.LeftSurface = 10 | |
435 | part.BackSurface = 10 | |
436 | part.FrontSurface = 10 | |
437 | --part.Material='Neon' | |
438 | part:BreakJoints() | |
439 | local mesh = Instance.new('BlockMesh', part) | |
440 | coroutine.wrap(function() | |
441 | for i = 1, 7 do | |
442 | wait() | |
443 | dis = dis + .2 | |
444 | local partc = part:clone() | |
445 | partc.Parent = workspace | |
446 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
447 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
448 | table.insert(clang, partc) | |
449 | end | |
450 | for i, v in pairs(clang) do | |
451 | coroutine.wrap(function() | |
452 | for i = 1, 10 do | |
453 | wait() | |
454 | v.Transparency = v.Transparency + .1 | |
455 | end | |
456 | v:destroy() | |
457 | end)() | |
458 | end | |
459 | end)() | |
460 | end | |
461 | --damage effects | |
462 | --Effects | |
463 | so = function(id, par, vol, pit) | |
464 | coroutine.resume(coroutine.create(function() | |
465 | local sou = Instance.new("Sound", par or workspace) | |
466 | sou.Volume = vol | |
467 | sou.Pitch = pit or 1 | |
468 | sou.SoundId = id | |
469 | wait() | |
470 | sou:play() | |
471 | game:GetService("Debris"):AddItem(sou, 6) | |
472 | end)) | |
473 | end | |
474 | ||
475 | local function getclosest(obj, distance) | |
476 | local last, lastx = distance + 1 | |
477 | for i, v in pairs(workspace:GetChildren()) do | |
478 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then | |
479 | local t = v.Torso | |
480 | local dist = (t.Position - obj.Position).magnitude | |
481 | if dist <= distance then | |
482 | if dist < last then | |
483 | last = dist | |
484 | lastx = v | |
485 | end | |
486 | end | |
487 | end | |
488 | end | |
489 | return lastx | |
490 | end | |
491 | ||
492 | function makegui(cframe, text) | |
493 | local a = math.random(-10, 10) / 100 | |
494 | local c = Instance.new("Part") | |
495 | c.Transparency = 1 | |
496 | Instance.new("BodyGyro").Parent = c | |
497 | c.Parent = m | |
498 | c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0)) | |
499 | local f = Instance.new("BodyPosition") | |
500 | f.P = 2000 | |
501 | f.D = 100 | |
502 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
503 | f.position = c.Position + Vector3.new(0, 3, 0) | |
504 | f.Parent = c | |
505 | game:GetService("Debris"):AddItem(c, .5 + 6) | |
506 | c.CanCollide = false | |
507 | c.CanCollide = false | |
508 | local bg = Instance.new('BillboardGui', m) | |
509 | bg.Adornee = c | |
510 | bg.Size = UDim2.new(1, 0, 1, 0) | |
511 | bg.StudsOffset = Vector3.new(0, 0, 0) | |
512 | bg.AlwaysOnTop = false | |
513 | local tl = Instance.new('TextLabel', bg) | |
514 | tl.BackgroundTransparency = 1 | |
515 | tl.Size = UDim2.new(1, 0, 1, 0) | |
516 | tl.Text = text | |
517 | tl.Font = 'SourceSansBold' | |
518 | tl.FontSize = 'Size42' | |
519 | if crit == true then | |
520 | tl.TextColor3 = Color3.new(180 / 255, 0, 0) | |
521 | else | |
522 | tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255) | |
523 | end | |
524 | tl.TextStrokeTransparency = 0 | |
525 | tl.TextScaled = true | |
526 | tl.TextWrapped = true | |
527 | coroutine.wrap(function() | |
528 | wait() | |
529 | for i = 1, 10 do | |
530 | wait() | |
531 | tl.TextTransparency = tl.TextTransparency + .1 | |
532 | end | |
533 | end)() | |
534 | end | |
535 | ||
536 | function tag(hum, Player) | |
537 | local creator = Instance.new('ObjectValue', hum) | |
538 | creator.Value = Player | |
539 | creator.Name = 'creator' | |
540 | end | |
541 | function untag(hum) | |
542 | if hum ~= nil then | |
543 | local tag = hum:findFirstChild("creator") | |
544 | if tag ~= nil then | |
545 | tag.Parent = nil | |
546 | end | |
547 | end | |
548 | end | |
549 | ||
550 | function tagPlayer(h) | |
551 | coroutine.wrap(function() | |
552 | tag(h, Player) | |
553 | wait() | |
554 | untag(h) | |
555 | end)() | |
556 | end | |
557 | ||
558 | function CheckClose(Obj,Dist) | |
559 | for _,v in pairs(workspace:GetChildren()) do | |
560 | if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= Character then | |
561 | local DistFromTorso = (v.Torso.Position - Obj.Position).magnitude | |
562 | if DistFromTorso < Dist then | |
563 | return v | |
564 | end | |
565 | end | |
566 | end | |
567 | end | |
568 | ||
569 | function damage(hit, mind, maxd, knock, type, prop) | |
570 | --[[ | |
571 | to apply it to a Player directly, make the first arg go to the Players Torso | |
572 | 1 - normal type(damage and knockback) | |
573 | 2 - drain type(damage no knockback) | |
574 | 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed | |
575 | 4 - heal(heals target) | |
576 | 5 - subtracts enemies defense | |
577 | 6 - subtracts enemies speed | |
578 | 7 - | |
579 | ]] | |
580 | if hit.Name:lower() == 'Hitbox' then | |
581 | local pos = CFrame.new(0, 1, -1) | |
582 | sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6) | |
583 | coroutine.wrap(function() | |
584 | for i = 1, 4 do | |
585 | clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)) | |
586 | end | |
587 | end)() | |
588 | end | |
589 | if hit.Parent == nil then | |
590 | return | |
591 | end | |
592 | local h = hit.Parent:FindFirstChild("Humanoid") | |
593 | for i, v in pairs(hit.Parent:children()) do | |
594 | if v:IsA("Humanoid") then | |
595 | h = v | |
596 | end | |
597 | end | |
598 | if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then | |
599 | h = hit.Parent.Parent:FindFirstChild('Humanoid') | |
600 | end | |
601 | if hit.Parent:IsA('Hat') then | |
602 | hit = hit.Parent.Parent:findFirstChild('Head') | |
603 | end | |
604 | local D = math.random(mind, maxd) * damagea.Value | |
605 | if h then | |
606 | if h.Parent:FindFirstChild('Stats') then | |
607 | D=D/h.Parent:FindFirstChild('Stats').Defence.Value | |
608 | elseif not h.Parent:FindFirstChild('Stats') then | |
609 | D=D | |
610 | end | |
611 | end | |
612 | if h then | |
613 | makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5))) | |
614 | end | |
615 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
616 | if type == 1 then | |
617 | tagPlayer(h) | |
618 | local asd = randomizer(critchance) | |
619 | if asd == true then | |
620 | turncrit() | |
621 | end | |
622 | if crit == false then | |
623 | h.Health = h.Health - D | |
624 | else | |
625 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
626 | end | |
627 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100) | |
628 | local vp = Instance.new('BodyVelocity') | |
629 | vp.P = 500 | |
630 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
631 | vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05 | |
632 | if knock > 0 then | |
633 | vp.Parent = hit.Parent.Torso | |
634 | end | |
635 | game:GetService("Debris"):AddItem(vp, .5) | |
636 | elseif type == 2 then | |
637 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100) | |
638 | local asd = randomizer(critchance) | |
639 | if asd == true then | |
640 | turncrit() | |
641 | end | |
642 | if crit == false then | |
643 | h.Health = h.Health - D | |
644 | else | |
645 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
646 | end | |
647 | tagPlayer(h) | |
648 | elseif type == 3 then | |
649 | tagPlayer(h) | |
650 | local asd = randomizer(critchance) | |
651 | if asd == true then | |
652 | turncrit() | |
653 | end | |
654 | if crit == false then | |
655 | h.Health = h.Health - D | |
656 | else | |
657 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
658 | end | |
659 | Character.Humanoid.Health = Character.Humanoid.Health + D / 2 | |
660 | so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5) | |
661 | for i = 1, 10 do | |
662 | firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))) | |
663 | end | |
664 | elseif type == 4 then | |
665 | h.Health = h.Health + D | |
666 | so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1) | |
667 | circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0)) | |
668 | end | |
669 | end | |
670 | end | |
671 | ||
672 | function subtrackstamina(k) | |
673 | if stamina >= k then | |
674 | stamina = stamina - k | |
675 | end | |
676 | end | |
677 | ||
678 | HandleA=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HandleA",Vector3.new(0.200000003, 0.256000012, 0.896000028)) | |
679 | HandleAweld=CreateWeld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.969136477, -0.00157141685, 0.385794818, 1.8189894e-012, -0.999995947, 5.21540642e-007, 0.999999762, 1.81898897e-012, 9.74654385e-013, -7.32133104e-013, 5.21538425e-007, 1)) | |
680 | CreateMesh("BlockMesh",HandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
681 | HandleB=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HandleB",Vector3.new(0.200000003, 0.256000012, 0.896000028)) | |
682 | HandleBweld=CreateWeld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.969139576, -0.00157129765, 0.385794759, 1.81901087e-012, -0.999999881, 5.21546838e-007, 1, 1.8190113e-012, 1.20202969e-012, -1.20203066e-012, 5.21546781e-007, 1)) | |
683 | CreateMesh("BlockMesh",HandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
684 | FakeHandleA=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","FakeHandleA",Vector3.new(0.200000003, 0.256000012, 0.496000051)) | |
685 | FakeHandleAweld=CreateWeld(m,HandleA,FakeHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.66893005e-006, -1.1920929e-007, 0, 0.999992013, 7.55563563e-018, 4.206413e-012, 7.01353372e-018, 0.999999404, 2.42520739e-013, 4.32009983e-012, 2.42522365e-013, 1)) | |
686 | CreateMesh("BlockMesh",FakeHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
687 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
688 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
688 | + | |
689 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
690 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
691 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000952482224, -0.446709782, -0.193131208, 2.83093277e-006, 0.999999642, -3.04522609e-006, -7.05200193e-007, -3.04522314e-006, -1, -0.999995947, 2.83094528e-006, 7.05190132e-007)) | |
692 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
693 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.262439996, 0.200000003, 0.255879134)) | |
694 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0690844059, -0.0718523264, 0.394913316, -0.707372546, 1.49017545e-008, -0.706838131, -7.89236623e-008, -0.999999642, 5.79014454e-008, -0.70683527, 9.67446709e-008, 0.707375348)) | |
695 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
696 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
697 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
697 | + | |
698 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.118097998, 0.118097998, 0.459269375)) | |
699 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
700 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.22985673, 0.330393285, 0.128970504, -0.999995947, 2.91118395e-005, 0.000388933928, 0.000388931512, -2.88635401e-005, 1, 2.91229535e-005, 0.999999642, 2.88522242e-005)) | |
701 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0787319914, 0.0918539986, 0.459269375)) | |
702 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
703 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
703 | + | |
704 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
705 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
706 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000952601433, -0.46309948, -0.577939391, -5.96009748e-008, 0.999999642, 1.78326225e-008, 0.999995947, 5.96012093e-008, -7.89759383e-007, -7.8976052e-007, 1.78323258e-008, -1)) | |
707 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
708 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
709 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
709 | + | |
710 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
711 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
712 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
712 | + | |
713 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
714 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.262439996, 0.200000003, 0.255879134)) | |
715 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.394863844, -0.0697959661, -0.0693871975, -0.707371831, 1.49031312e-008, 0.706838787, -5.17638155e-009, 0.999999642, -2.62642939e-008, -0.706835926, -2.22377423e-008, -0.707374692)) | |
716 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
717 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
718 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.22960186, -0.325974345, 0.126894236, -0.999995947, -2.91118213e-005, -0.000387890788, 0.000387888373, 2.88337342e-005, -1, 2.91228953e-005, -0.999999642, -2.88224492e-005)) | |
719 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0787319914, 0.0918539986, 0.459269375)) | |
720 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
721 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000954151154, 0.462881565, 0.0781461895, -4.01817232e-007, -0.999999642, 1.08038626e-006, -0.999990225, 4.0182158e-007, 5.21535412e-007, -5.21538084e-007, -1.08039217e-006, -0.999994278)) | |
722 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
723 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.393659979, 0.524879932)) | |
724 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.659671783, -0.315543771, -0.000952482224, -0.999995947, -7.10575912e-013, 5.21538198e-007, -5.21540414e-007, -6.60076464e-012, -1, 7.10569624e-013, -0.999999642, 6.35824596e-012)) | |
725 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.524879932)) | |
726 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.64371943, -0.184356153, -0.000952720642, -0.999995947, -2.84785216e-014, 5.21538198e-007, -5.21540414e-007, -1.32740338e-011, -1, 2.84781049e-014, -0.999999642, 1.30315177e-011)) | |
727 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656100452, 0.656099916, 1)) | |
728 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.787320077, 0.262439996, 0.524879932)) | |
729 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.18442535, -0.118758678, -0.000952601433, -0.999995947, 2.01786829e-012, 5.21538198e-007, -5.21540414e-007, -1.28376595e-012, -1, -2.01786721e-012, -0.999999642, 1.04124662e-012)) | |
730 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
731 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
731 | + | |
732 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
733 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
734 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
734 | + | |
735 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
736 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
737 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
737 | + | |
738 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
739 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
740 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
740 | + | |
741 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.118097998, 0.118097998, 0.459269375)) | |
742 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.249317944, 0.262439966)) | |
743 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0810444355, -0.13091433, -0.000957727432, 0.707103014, 1.57924467e-006, 0.707106233, -0.707106531, -3.81509017e-006, 0.707109034, 3.81435189e-006, -0.999999642, -1.58096839e-006)) | |
744 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.951344788, 1, 1)) | |
745 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.524879932, 0.200000003, 0.262439966)) | |
746 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000948548317, 0.0531208515, -0.65964818, 5.96030603e-008, 0.999999642, 1.09855229e-007, 5.97940073e-007, -1.0985498e-007, 1, 0.999995947, -5.96032166e-008, -5.97938197e-007)) | |
747 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
748 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
749 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000953316689, 0.0694112778, -0.577948451, 5.12384233e-008, -0.999999642, 1.78378254e-008, -0.999995947, -5.12386045e-008, 2.53317438e-007, -2.53320735e-007, -1.78380741e-008, -1)) | |
750 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
751 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.262439966, 0.524879932, 0.262439966)) | |
752 | - | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.524879932, 0.262439966)) |
752 | + | |
753 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
754 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
755 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
755 | + | |
756 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
757 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
758 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
758 | + | |
759 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
760 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.262439966, 0.262439966)) | |
761 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.64357042, -0.381081522, -0.000952005386, -0.999995947, -2.84963025e-014, 5.21538198e-007, -5.21540414e-007, -1.368856e-010, -1, 2.85603552e-014, -0.999999642, 1.36643141e-010)) | |
762 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 1, 1)) | |
763 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.262439996, 0.262439966)) | |
764 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.77479982, -0.381083727, -0.000951886177, -0.999995947, -2.85570179e-014, 5.21538198e-007, -5.21540414e-007, -1.45497003e-010, -1, 2.86255632e-014, -0.999999642, 1.45254545e-010)) | |
765 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 1, 1)) | |
766 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439996, 0.200000003, 0.200000003)) | |
767 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00095307827, 0.184345901, 1.77491713, -2.13323012e-013, -0.999999642, -4.63661678e-007, 5.03123488e-007, -4.6366128e-007, 1, -0.999995947, -1.99632164e-014, 5.03121157e-007)) | |
768 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
769 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.262439966)) | |
770 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.381089836, -0.856295109, -0.000952124596, -4.61936025e-007, -5.05883807e-011, -1, 0.999995947, 8.32963819e-012, -4.61933553e-007, 8.32962432e-012, -0.999999642, 5.03458698e-011)) | |
771 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
772 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
773 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
773 | + | |
774 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
775 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.524879932, 0.200000003, 0.200000003)) | |
776 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000952839851, 0.0531313121, 1.64369941, -2.13395951e-013, -0.999999642, -4.63665572e-007, 5.03123488e-007, -4.63665174e-007, 1, -0.999995947, -1.98925264e-014, 5.03121157e-007)) | |
777 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
778 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
779 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
779 | + | |
780 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
781 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439996, 0.200000003, 0.262439966)) | |
782 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.266271591, -0.577865899, -0.000952601433, -0.999995947, 4.89863532e-011, 5.21538198e-007, -5.21540414e-007, -1.56372887e-010, -1, -4.89860999e-011, -0.999999642, 1.56130456e-010)) | |
783 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
784 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.465830922, 0.200000003, 0.262439966)) | |
785 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0548343658, -0.318395138, -0.000958204269, 0.707103014, 1.5792516e-006, 0.707106233, -0.707106531, -3.81508926e-006, 0.707109034, 3.81435621e-006, -0.999999642, -1.58096282e-006)) | |
786 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
787 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.656099856, 0.393659979, 0.262439966)) | |
788 | - | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.656099856, 0.393659979, 0.262439966)) |
788 | + | |
789 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
790 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
790 | + | |
791 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
792 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.656099916, 0.262439966)) | |
793 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.382884979, -0.0559492111, -0.000958323479, 0.707103789, 1.57925547e-006, 0.707107008, -0.707104146, -3.81507652e-006, 0.70710665, 3.81435484e-006, -0.999999642, -1.58096418e-006)) | |
794 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.951344788, 1, 1)) | |
795 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.918540061, 0.200000003, 0.200000003)) | |
796 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.918540061, 0.200000003, 0.200000003)) |
796 | + | |
797 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
798 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
799 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
799 | + | |
800 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
801 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
802 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00095307827, -0.0692355633, -0.0530753136, 4.17208184e-007, 0.999999642, -1.24864869e-006, 0.999995947, -4.17210487e-007, -6.0446132e-007, -6.04463764e-007, -1.24864835e-006, -1)) | |
803 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
804 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
805 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
805 | + | |
806 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
807 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
808 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000952959061, -0.061965704, -0.0530880094, -4.01771786e-007, -0.999999642, 1.08025915e-006, -0.999995947, 4.01773832e-007, 5.21538254e-007, -5.21540869e-007, -1.08025893e-006, -1)) | |
809 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
810 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.262439996)) | |
811 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.324400663, -0.446751714, -0.000952601433, -0.999995947, -1.51789562e-012, 5.21538198e-007, -5.21540414e-007, 1.45567641e-010, -1, 1.51780715e-012, -0.999999642, -1.45810183e-010)) | |
812 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
813 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.262439966)) | |
814 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.381086797, -1.51240134, -0.000951886177, -4.61936025e-007, -5.05883252e-011, -1, 0.999995947, 8.3296087e-012, -4.61933553e-007, 8.32959483e-012, -0.999999642, 5.03458178e-011)) | |
815 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
816 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262440026, 0.200000003, 0.200000003)) | |
817 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262440026, 0.200000003, 0.200000003)) |
817 | + | |
818 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
819 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
820 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
820 | + | |
821 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
822 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.918540061, 0.200000003, 0.200000003)) | |
823 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.918540061, 0.200000003, 0.200000003)) |
823 | + | |
824 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
825 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
826 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
826 | + | |
827 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
828 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
829 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
829 | + | |
830 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
831 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.262439996)) | |
832 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.193187475, -0.315557897, -0.000952601433, -0.999995947, -1.39693855e-012, 5.21538198e-007, -5.21540414e-007, 1.66943959e-011, -1, 1.39691752e-012, -0.999999642, -1.69369241e-011)) | |
833 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
834 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
835 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
835 | + | |
836 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
837 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262440026, 0.200000003, 0.200000003)) | |
838 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262440026, 0.200000003, 0.200000003)) |
838 | + | |
839 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
840 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
841 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.381075412, -1.78140426, -0.00095307827, -4.61936025e-007, -4.94634819e-011, -1, 0.999995947, 8.18711939e-012, -4.61933581e-007, 8.18710464e-012, -0.999999642, 4.92209745e-011)) | |
842 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
843 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.262439996)) | |
844 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.258820057, -0.184331298, -0.000952601433, -0.999995947, -9.58359694e-013, 5.21538198e-007, -5.21540414e-007, 1.63497792e-011, -1, 9.58340612e-013, -0.999999642, -1.65923074e-011)) | |
845 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
846 | BarrelA=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Really red","BarrelA",Vector3.new(0.200000003, 0.200000003, 0.512000024)) | |
847 | - | BarrelA=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Hot pink","BarrelA",Vector3.new(0.200000003, 0.200000003, 0.512000024)) |
847 | + | |
848 | CreateMesh("SpecialMesh",BarrelA,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.153600022, 0.140799999, 0.447999448)) | |
849 | FakeHandleB=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","FakeHandleB",Vector3.new(0.200000003, 0.256000012, 0.496000051)) | |
850 | FakeHandleBweld=CreateWeld(m,HandleB,FakeHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, -2.36065456e-020, 0, -2.36065456e-020, 1, 0, 0, 0, 1)) | |
851 | CreateMesh("BlockMesh",FakeHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
852 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
853 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
853 | + | |
854 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
855 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
856 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000952363014, -0.446709752, -0.193128824, 2.83092186e-006, 0.999999523, -3.04522632e-006, -7.05205821e-007, -3.04522337e-006, -1, -0.999992132, 2.83094482e-006, 7.05194395e-007)) | |
857 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
858 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.262439996, 0.200000003, 0.255879134)) | |
859 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0690851212, -0.0718523264, 0.394912601, -0.707375407, 1.49016e-008, -0.706838131, -7.8923982e-008, -1, 5.79019144e-008, -0.706838131, 9.67448699e-008, 0.707375348)) | |
860 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
861 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
862 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
862 | + | |
863 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.118097998, 0.118097998, 0.459269375)) | |
864 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
865 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.229856014, 0.330393344, 0.128970504, -1, 2.91118504e-005, 0.000388933928, 0.000388933084, -2.88635511e-005, 1, 2.91230717e-005, 1, 2.88522242e-005)) | |
866 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0787319914, 0.0918539986, 0.459269375)) | |
867 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
868 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
868 | + | |
869 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
870 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
871 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000952482224, -0.463091373, -0.577939391, -5.96006622e-008, 0.999999523, 1.78325248e-008, 0.999992132, 5.96011169e-008, -7.89763646e-007, -7.8976575e-007, 1.78318817e-008, -1)) | |
872 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
873 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
874 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
874 | + | |
875 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
876 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
877 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
877 | + | |
878 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
879 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.262439996, 0.200000003, 0.255879134)) | |
880 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.394863367, -0.0697958469, -0.0693879128, -0.707374692, 1.49032964e-008, 0.706838787, -5.17640242e-009, 1, -2.62647628e-008, -0.706838787, -2.22379111e-008, -0.707374692)) | |
881 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
882 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
883 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.229600906, -0.325974405, 0.126894355, -1, -2.91118322e-005, -0.000387890788, 0.000387889944, 2.88337451e-005, -1, 2.91230135e-005, -1, -2.88224492e-005)) | |
884 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0787319914, 0.0918539986, 0.459269375)) | |
885 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
886 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000953912735, 0.46284461, 0.0781242549, -4.01818824e-007, -0.999999523, 1.08039103e-006, -0.999992132, 4.01822348e-007, 5.21542688e-007, -5.21547349e-007, -1.08039092e-006, -1)) | |
887 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
888 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.393659979, 0.524879932)) | |
889 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.659660816, -0.315543771, -0.000952363014, -0.999992132, -6.25112375e-013, 5.21542461e-007, -5.21546724e-007, -7.04180898e-012, -1, 6.25099527e-013, -0.999999523, 6.45673966e-012)) | |
890 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.524879932)) | |
891 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.64369273, -0.184356153, -0.000952601433, -0.999992132, 5.69847988e-014, 5.21542461e-007, -5.21546724e-007, -1.37150759e-011, -1, -5.69892034e-014, -0.999999523, 1.31300101e-011)) | |
892 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656100452, 0.656099916, 1)) | |
893 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.787320077, 0.262439996, 0.524879932)) | |
894 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.18440604, -0.118758678, -0.000952482224, -0.999992132, 2.1033314e-012, 5.21542518e-007, -5.21546724e-007, -1.72481072e-012, -1, -2.10332684e-012, -0.999999523, 1.13974021e-012)) | |
895 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
896 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
896 | + | |
897 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
898 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
899 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
899 | + | |
900 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
901 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
902 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
902 | + | |
903 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
904 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
905 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
905 | + | |
906 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.118097998, 0.118097998, 0.459269375)) | |
907 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.249317944, 0.262439966)) | |
908 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0810451508, -0.130914927, -0.000957846642, 0.707105875, 1.57924535e-006, 0.707106233, -0.707109392, -3.81509153e-006, 0.707109034, 3.81436735e-006, -1, -1.58096793e-006)) | |
909 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.951344788, 1, 1)) | |
910 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.524879932, 0.200000003, 0.262439966)) | |
911 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000948429108, 0.0531208515, -0.659636974, 5.96029182e-008, 0.999999523, 1.09855129e-007, 5.97946098e-007, -1.09854533e-007, 1, 0.999992132, -5.96032947e-008, -5.9794246e-007)) | |
912 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
913 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
914 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000953197479, 0.0694093704, -0.577948451, 5.12381426e-008, -0.999999523, 1.78379249e-008, -0.999992132, -5.12385121e-008, 2.5332173e-007, -2.53328068e-007, -1.78385147e-008, -1)) | |
915 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
916 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.262439966, 0.524879932, 0.262439966)) | |
917 | - | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.524879932, 0.262439966)) |
917 | + | |
918 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
919 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
920 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
920 | + | |
921 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
922 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
923 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
923 | + | |
924 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
925 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.262439966, 0.262439966)) | |
926 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.64354384, -0.381081581, -0.000951766968, -0.999992132, 5.69671263e-014, 5.21542518e-007, -5.21546724e-007, -1.37326636e-010, -1, -5.69069531e-014, -0.999999523, 1.36741632e-010)) | |
927 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 1, 1)) | |
928 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.262439996, 0.262439966)) | |
929 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.77477098, -0.381083727, -0.000951647758, -0.999992132, 5.6906411e-014, 5.21542518e-007, -5.21546724e-007, -1.45938026e-010, -1, -5.68417451e-014, -0.999999523, 1.45353021e-010)) | |
930 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 1, 1)) | |
931 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439996, 0.200000003, 0.200000003)) | |
932 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000952959061, 0.184345931, 1.77488852, -2.98793217e-013, -0.999999523, -4.63661593e-007, 5.03129854e-007, -4.63660797e-007, 1, -0.999992132, 6.55001024e-014, 5.03125477e-007)) | |
933 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
934 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.262439966)) | |
935 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.381089836, -0.856280804, -0.000952005386, -4.61942562e-007, -5.10294133e-011, -1, 0.999992132, 8.24417357e-012, -4.61937844e-007, 8.244125e-012, -0.999999523, 5.0444364e-011)) | |
936 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
937 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
938 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
938 | + | |
939 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
940 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.524879932, 0.200000003, 0.200000003)) | |
941 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000952720642, 0.0531313121, 1.6436727, -2.98866156e-013, -0.999999523, -4.63665486e-007, 5.03129854e-007, -4.63664691e-007, 1, -0.999992132, 6.55707923e-014, 5.03125477e-007)) | |
942 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
943 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
944 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
944 | + | |
945 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
946 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439996, 0.200000003, 0.262439966)) | |
947 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.266266823, -0.577865839, -0.000952482224, -0.999992132, 4.90718091e-011, 5.21542461e-007, -5.21546724e-007, -1.56813909e-010, -1, -4.90713789e-011, -0.999999523, 1.56228946e-010)) | |
948 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
949 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.465830922, 0.200000003, 0.262439966)) | |
950 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0548336506, -0.318395734, -0.000958323479, 0.707105875, 1.57925228e-006, 0.707106233, -0.707109392, -3.81509062e-006, 0.707109034, 3.81437167e-006, -1, -1.58096236e-006)) | |
951 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
952 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.656099856, 0.393659979, 0.262439966)) | |
953 | - | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.656099856, 0.393659979, 0.262439966)) |
953 | + | |
954 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
955 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
955 | + | |
956 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
957 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.656099916, 0.262439966)) | |
958 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.382884026, -0.0559498072, -0.000958442688, 0.70710665, 1.57925615e-006, 0.707107008, -0.707107008, -3.81507789e-006, 0.70710665, 3.8143703e-006, -1, -1.58096373e-006)) | |
959 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.951344788, 1, 1)) | |
960 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.918540061, 0.200000003, 0.200000003)) | |
961 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.918540061, 0.200000003, 0.200000003)) |
961 | + | |
962 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
963 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
964 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
964 | + | |
965 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
966 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
967 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000952959061, -0.0692336559, -0.0530753434, 4.17206678e-007, 0.999999523, -1.24864869e-006, 0.999992132, -4.17210515e-007, -6.0446564e-007, -6.04469733e-007, -1.24864869e-006, -1)) | |
968 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
969 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
970 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
970 | + | |
971 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
972 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
973 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000952839851, -0.061965704, -0.0530880094, -4.01770336e-007, -0.999999523, 1.08025915e-006, -0.999992132, 4.0177386e-007, 5.21542518e-007, -5.21547179e-007, -1.08025915e-006, -1)) | |
974 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
975 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.262439996)) | |
976 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.324369669, -0.446746528, -0.000952601433, -0.999992132, -2.28737904e-010, 5.21542461e-007, -5.21546724e-007, 3.90042887e-010, -1, 2.28737695e-010, -0.999999523, -3.90628141e-010)) | |
977 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
978 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.262439966)) | |
979 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.381086797, -1.51237679, -0.000951766968, -4.61942562e-007, -5.10293613e-011, -1, 0.999992132, 8.24414408e-012, -4.61937844e-007, 8.24409551e-012, -0.999999523, 5.04443119e-011)) | |
980 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
981 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262440026, 0.200000003, 0.200000003)) | |
982 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262440026, 0.200000003, 0.200000003)) |
982 | + | |
983 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
984 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
985 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
985 | + | |
986 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
987 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.918540061, 0.200000003, 0.200000003)) | |
988 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.918540061, 0.200000003, 0.200000003)) |
988 | + | |
989 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
990 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
991 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
991 | + | |
992 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
993 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) | |
994 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262439966, 0.200000003, 0.200000003)) |
994 | + | |
995 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
996 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.262439996)) | |
997 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.193185091, -0.315557897, -0.000952482224, -0.999992132, -1.3114748e-012, 5.21542461e-007, -5.21546724e-007, 1.62533511e-011, -1, 1.31144477e-012, -0.999999523, -1.683843e-011)) | |
998 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
999 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) | |
1000 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.200000003, 0.200000003, 0.262439966)) |
1000 | + | |
1001 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 1)) | |
1002 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.262440026, 0.200000003, 0.200000003)) | |
1003 | - | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.262440026, 0.200000003, 0.200000003)) |
1003 | + | |
1004 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 0.656099916)) | |
1005 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
1006 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.381075472, -1.78137565, -0.000952839851, -4.61942591e-007, -4.99045215e-011, -1, 0.999992132, 8.10165563e-012, -4.61937873e-007, 8.10160619e-012, -0.999999523, 4.93194721e-011)) | |
1007 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.656099916, 0.656099916, 0.656099916)) | |
1008 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.262439966, 0.200000003, 0.262439996)) | |
1009 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.258816719, -0.184331298, -0.000952482224, -0.999992132, -8.72896373e-013, 5.21542461e-007, -5.21546724e-007, 1.59087344e-011, -1, 8.72869593e-013, -0.999999523, -1.64938133e-011)) | |
1010 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.656099916, 1)) | |
1011 | BarrelB=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Really red","BarrelB",Vector3.new(0.200000003, 0.200000003, 0.512000024)) | |
1012 | - | BarrelB=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Hot pink","BarrelB",Vector3.new(0.200000003, 0.200000003, 0.512000024)) |
1012 | + | |
1013 | CreateMesh("SpecialMesh",BarrelB,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.153600022, 0.140799999, 0.447999448)) | |
1014 | ||
1015 | local lasrs = {} | |
1016 | local lasrspd = 5 | |
1017 | local maxTravelDistance = 300 | |
1018 | local maxRebounds = 2 | |
1019 | ||
1020 | function RAY(pos, dir, collidedlist, startpos, endpos, distleft) | |
1021 | collidedlist = collidedlist or {Character} | |
1022 | startpos = startpos or pos | |
1023 | distleft = distleft or dir.unit * dir.magnitude | |
1024 | endpos = endpos or pos + distleft | |
1025 | local ray = Ray.new(pos, distleft) | |
1026 | local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist) | |
1027 | if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then | |
1028 | if hitz.CanCollide == false then | |
1029 | table.insert(collidedlist, hitz) | |
1030 | local newpos = enz | |
1031 | local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude) | |
1032 | if newdistleft then | |
1033 | return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01)) | |
1034 | end | |
1035 | end | |
1036 | end | |
1037 | return hitz, enz, ray | |
1038 | end | |
1039 | ||
1040 | function FindSurface(part, position) | |
1041 | local obj = part.CFrame:pointToObjectSpace(position) | |
1042 | local siz = part.Size/2 | |
1043 | for i,v in pairs(Enum.NormalId:GetEnumItems()) do | |
1044 | local vec = Vector3.FromNormalId(v) | |
1045 | local wvec = part.CFrame:vectorToWorldSpace(vec) | |
1046 | local vz = (obj)/(siz*vec) | |
1047 | if (math.abs(vz.X-1) < 0.001 or math.abs(vz.Y-1) < 0.001 or math.abs(vz.Z-1) < 0.001) then | |
1048 | return wvec,vec | |
1049 | end | |
1050 | end | |
1051 | if part.className == "WedgePart" then | |
1052 | local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p | |
1053 | local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p | |
1054 | local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos) | |
1055 | return wvec,vec | |
1056 | elseif part.className == "Part" and (part.Shape.Name == "Ball" or part.Shape.Name == "Cylinder") then | |
1057 | return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit) | |
1058 | end | |
1059 | end | |
1060 | ||
1061 | function Reflect(direction, normal) | |
1062 | return direction - 2 * normal:Dot(direction) * normal | |
1063 | end | |
1064 | ||
1065 | function ReflectShot(mouse,asd) | |
1066 | local dir = (mouse.Hit.p - Torso.Position).unit | |
1067 | local tabl | |
1068 | local tablnum = 0 | |
1069 | for i, v in pairs(lasrs) do | |
1070 | if not v[1] then | |
1071 | tabl = v | |
1072 | tablnum = i | |
1073 | break | |
1074 | end | |
1075 | end | |
1076 | if not tabl then | |
1077 | tablnum = #lasrs + 1 | |
1078 | tabl = {false,nil,nil,0,0,1,{},{},{},{}} | |
1079 | for i = 1, 2 do | |
1080 | for j = 1, 6 do | |
1081 | local p = Instance.new("Part") | |
1082 | p.FormFactor = "Custom" | |
1083 | p.CanCollide = false | |
1084 | p.Anchored = true | |
1085 | p.Locked = true | |
1086 | p.BrickColor = BarrelA.BrickColor | |
1087 | p.TopSurface = 10 | |
1088 | p.BottomSurface = 10 | |
1089 | p.RightSurface = 10 | |
1090 | p.LeftSurface = 10 | |
1091 | p.FrontSurface = 10 | |
1092 | p.BackSurface = 10 | |
1093 | p.Size = Vector3.new(.5,.5,.5) | |
1094 | p.Material = "Neon" | |
1095 | p.Transparency = i == 1 and 0 or 0.6 | |
1096 | local mesh = Instance.new("CylinderMesh",p) | |
1097 | table.insert(tabl[6+i],p) | |
1098 | table.insert(tabl[8+i],mesh) | |
1099 | end | |
1100 | end | |
1101 | table.insert(lasrs,tabl) | |
1102 | end | |
1103 | -- isMoving,direction,lastPosition,rebounds,distance,recycleCount,middleLayer,outerLayer | |
1104 | tabl[4],tabl[5] = 0,0 | |
1105 | tabl[3] = asd.Position | |
1106 | tabl[2] = dir | |
1107 | tabl[1] = true | |
1108 | ||
1109 | end | |
1110 | ||
1111 | gun = false | |
1112 | ||
1113 | shoot = false | |
1114 | ||
1115 | gunidle = false | |
1116 | ||
1117 | local GunA = true | |
1118 | local GunB = false | |
1119 | ||
1120 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1121 | local prt = CreatePart(3, Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.1, 0.1, 0.1)) | |
1122 | prt.Anchored = true | |
1123 | prt.CFrame = cframe | |
1124 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1125 | game:GetService("Debris"):AddItem(prt, 5) | |
1126 | Effects[#Effects + 1] = { | |
1127 | prt, | |
1128 | "Cylinder", | |
1129 | delay, | |
1130 | x3, | |
1131 | y3, | |
1132 | z3 | |
1133 | } --part, type, delay | |
1134 | end | |
1135 | ||
1136 | function Shoot(asd, spread1, spread2) | |
1137 | local MainPos = asd.Position | |
1138 | local MainPos2 = mouse.Hit.p | |
1139 | local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100 | |
1140 | local MouseLook = cn((MainPos + MainPos2) / 2, MainPos2 + spread) | |
1141 | num = 30 | |
1142 | coroutine.resume(coroutine.create(function(Spreaded) | |
1143 | repeat | |
1144 | wait() | |
1145 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RootPart.Parent) | |
1146 | local TheHit = mouse.Hit.p | |
1147 | local mag = (MainPos - pos).magnitude | |
1148 | CylinderEffect(BrickColor.new(asd.BrickColor.Color), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, .5, 0, 1.5, 0.1) | |
1149 | MainPos = MainPos + (MouseLook.lookVector * 10) | |
1150 | num = num - 1 | |
1151 | if hit ~= nil then | |
1152 | num = 0 | |
1153 | damage(hit.Parent:WaitForChild("Torso"), math.random(5,8), math.random(8,10), 5, 1, RootPart) | |
1154 | end | |
1155 | until num <= 0 | |
1156 | end)) | |
1157 | end | |
1158 | ||
1159 | function Attackone() | |
1160 | attack = true | |
1161 | Con1 = LeftLeg.Touched:connect(function(hit) damage(hit, math.random(5,6), math.random(6,10), 1, 1, RootPart) Con1:disconnect() end) | |
1162 | for i = 0,1,0.2 do | |
1163 | wait() | |
1164 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
1165 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-30)), .3) | |
1166 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(20)), .3) | |
1167 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), .3) | |
1168 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(-30), math.rad(5)), .3) | |
1169 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(-30), math.rad(-5)), .3) | |
1170 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .4) | |
1171 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .4) | |
1172 | end | |
1173 | so("http://roblox.com/asset/?id=320557413",LeftLeg,1,1) | |
1174 | for i = 0,1,0.15 do | |
1175 | wait() | |
1176 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), .5) | |
1177 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(10), math.rad(30)), .5) | |
1178 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(20)), .5) | |
1179 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-20)), .5) | |
1180 | RH.C0 = clerp(RH.C0, cn(0.55, -2, .5) * angles(math.rad(-30), math.rad(30), math.rad(10)), .5) | |
1181 | LH.C0 = clerp(LH.C0, cn(-1.3, -1, -1.3) * angles(math.rad(80), math.rad(-10), math.rad(-30)), .5) | |
1182 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .4) | |
1183 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .4) | |
1184 | end | |
1185 | attack = false | |
1186 | Con1:disconnect() | |
1187 | end | |
1188 | ||
1189 | function Attacktwo() | |
1190 | attack = true | |
1191 | Con1 = LeftArm.Touched:connect(function(hit) damage(hit, math.random(5,6), math.random(6,10), 1, 1, RootPart) Con1:disconnect() end) | |
1192 | for i = 0,1,0.2 do | |
1193 | wait() | |
1194 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1195 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(10), math.rad(50)), .3) | |
1196 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(20)), .3) | |
1197 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), .3) | |
1198 | RH.C0 = clerp(RH.C0, cn(0.8, -2, 0) * angles(math.rad(-10), math.rad(30), math.rad(10)), .3) | |
1199 | LH.C0 = clerp(LH.C0, cn(-0.8, -2, 0) * angles(math.rad(0), math.rad(30), math.rad(-10)), .3) | |
1200 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .4) | |
1201 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(70), math.rad(0)), .4) | |
1202 | end | |
1203 | so("http://roblox.com/asset/?id=320557413",LeftArm,1,1.2) | |
1204 | for i = 0,1,0.15 do | |
1205 | wait() | |
1206 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .35) | |
1207 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(-5), math.rad(-80)), .35) | |
1208 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(50), math.rad(20), math.rad(30)), .35) | |
1209 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), .35) | |
1210 | RH.C0 = clerp(RH.C0, cn(0.8, -2, 0) * angles(math.rad(-10), math.rad(-40), math.rad(10)), .35) | |
1211 | LH.C0 = clerp(LH.C0, cn(-0.8, -2, 0) * angles(math.rad(-10), math.rad(-40), math.rad(-10)), .35) | |
1212 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .4) | |
1213 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-90), math.rad(0)), .3) | |
1214 | end | |
1215 | attack = false | |
1216 | Con1:disconnect() | |
1217 | end | |
1218 | ||
1219 | function Attackthree() | |
1220 | attack = true | |
1221 | Con1 = RightArm.Touched:connect(function(hit) damage(hit, math.random(5,6), math.random(6,10), 1, 1, RootPart) Con1:disconnect() end) | |
1222 | for i = 0,1,0.2 do | |
1223 | wait() | |
1224 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)), .3) | |
1225 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(70)), .3) | |
1226 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(20)), .3) | |
1227 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), .3) | |
1228 | RH.C0 = clerp(RH.C0, cn(0.57, -2, 0) * angles(math.rad(0), math.rad(40), math.rad(7)), .3) | |
1229 | LH.C0 = clerp(LH.C0, cn(-0.57, -2, 0) * angles(math.rad(0), math.rad(40), math.rad(-7)), .3) | |
1230 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, -.1) * angles(math.rad(0), math.rad(150), math.rad(0)), .4) | |
1231 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .4) | |
1232 | end | |
1233 | so("http://roblox.com/asset/?id=320557413",RightArm,1,1.3) | |
1234 | for i = 0,1,0.13 do | |
1235 | wait() | |
1236 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), .35) | |
1237 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-5), math.rad(-70)), .35) | |
1238 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, -.3) * angles(math.rad(30), math.rad(-50), math.rad(-20)), .35) | |
1239 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), .35) | |
1240 | RH.C0 = clerp(RH.C0, cn(0.57, -2, 0) * angles(math.rad(0), math.rad(-40), math.rad(7)), .35) | |
1241 | LH.C0 = clerp(LH.C0, cn(-0.57, -2, 0) * angles(math.rad(0), math.rad(-40), math.rad(-7)), .35) | |
1242 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
1243 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .4) | |
1244 | end | |
1245 | attack = false | |
1246 | Con1:disconnect() | |
1247 | end | |
1248 | ||
1249 | function Attackfour() | |
1250 | attack = true | |
1251 | for i = 0,1,0.2 do | |
1252 | wait() | |
1253 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(-70)), .3) | |
1254 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(3), math.rad(70)), .3) | |
1255 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), .3) | |
1256 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.3) * angles(math.rad(120), math.rad(0), math.rad(40)), .3) | |
1257 | RH.C0 = clerp(RH.C0, cn(0.7, -2, .3) * angles(math.rad(3), math.rad(70), math.rad(5)), .3) | |
1258 | LH.C0 = clerp(LH.C0, cn(-0.7, -2, -.3) * angles(math.rad(3), math.rad(70), math.rad(-5)), .3) | |
1259 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .7) | |
1260 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)), .7) | |
1261 | end | |
1262 | so("http://roblox.com/asset/?id=320557413",LeftArm,1,0.9) | |
1263 | for i = 0,1,0.15 do | |
1264 | wait() | |
1265 | so("http://roblox.com/asset/?id=199145534",BarrelA,.5,math.random(150,200)/100) | |
1266 | OrbEffect(BarrelA.BrickColor,cn(BarrelA.Position),.3,.3,.3,.3,.3,.3,0.1) | |
1267 | Shockwave(BarrelA.BrickColor,cn(BarrelA.Position),.3,.3,.3,.3,.3,.3,0.1) | |
1268 | local target=CheckClose(BarrelA,5) | |
1269 | if target then | |
1270 | damage(target.Torso, math.random(1,2), math.random(2,3), 1, 1, RootPart) | |
1271 | end | |
1272 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(100)), .35) | |
1273 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(-3), math.rad(-100)), .35) | |
1274 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(60), math.rad(70)), .35) | |
1275 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.3) * angles(math.rad(-20), math.rad(0), math.rad(-40)), .35) | |
1276 | RH.C0 = clerp(RH.C0, cn(0.58, -2, 0) * angles(math.rad(3), math.rad(0), math.rad(8)), .35) | |
1277 | LH.C0 = clerp(LH.C0, cn(-0.58, -2, 0) * angles(math.rad(3), math.rad(0), math.rad(-8)), .35) | |
1278 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1279 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)), .7) | |
1280 | end | |
1281 | attack = false | |
1282 | end | |
1283 | ||
1284 | function GunStance() | |
1285 | attack=true | |
1286 | gun=true | |
1287 | speedvalue = 1 | |
1288 | gyro.Parent = RootPart | |
1289 | if GunA == true then | |
1290 | for i=0,1,0.2 do | |
1291 | wait() | |
1292 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .25) | |
1293 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(5), math.rad(-90)), .25) | |
1294 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(30), math.rad(90)), .25) | |
1295 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), .25) | |
1296 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1297 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1298 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), 5*i, math.rad(0)), .75) | |
1299 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1300 | end | |
1301 | for i=0,1,0.1 do | |
1302 | wait() | |
1303 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .25) | |
1304 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .25) | |
1305 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), .25) | |
1306 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-10)), .25) | |
1307 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1308 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1309 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1310 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1311 | end | |
1312 | elseif GunB == true then | |
1313 | for i=0,1,0.2 do | |
1314 | wait() | |
1315 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), .25) | |
1316 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-5), math.rad(90)), .25) | |
1317 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(10)), .25) | |
1318 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-30), math.rad(-90)), .25) | |
1319 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1320 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1321 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1322 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), 5*i, math.rad(0)), .75) | |
1323 | end | |
1324 | for i=0,1,0.1 do | |
1325 | wait() | |
1326 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), .25) | |
1327 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .25) | |
1328 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), .25) | |
1329 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), .25) | |
1330 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1331 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1332 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1333 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1334 | end | |
1335 | end | |
1336 | local offset = nil | |
1337 | gunidle=true | |
1338 | while gun==true do | |
1339 | wait() | |
1340 | local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z) | |
1341 | offset = (Torso.Position.y - mouse.Hit.p.y) / 60 | |
1342 | local mag = (Torso.Position - mouse.Hit.p).magnitude / 80 | |
1343 | offset = offset / mag | |
1344 | if GunA == true and GunB == false then | |
1345 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), .5) | |
1346 | elseif GunB == true and GunA == false then | |
1347 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), .5) | |
1348 | end | |
1349 | end | |
1350 | if shoot==true then | |
1351 | gunidle=false | |
1352 | if GunA == true then | |
1353 | so("http://www.roblox.com/asset/?id=199144089", BarrelA, 1, .9) | |
1354 | so("http://www.roblox.com/asset/?id=200633327", BarrelA, 1, 1.2) | |
1355 | so("http://www.roblox.com/asset/?id=200633780", BarrelA, 1, 1.5) | |
1356 | GunA = false | |
1357 | Shoot(BarrelA, 0, 0) | |
1358 | for i=0,1,0.15 do | |
1359 | wait() | |
1360 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1361 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(5), math.rad(-80)), .3) | |
1362 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(90), math.rad(60), math.rad(80)), .55) | |
1363 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-15)), .3) | |
1364 | RH.C0 = clerp(RH.C0, cn(0.6, -2, -.1) * angles(math.rad(5), math.rad(0), math.rad(3)), .25) | |
1365 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, .1) * angles(math.rad(-5), math.rad(0), math.rad(-3)), .25) | |
1366 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), .75) | |
1367 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), .3) | |
1368 | end | |
1369 | GunB = true | |
1370 | elseif GunB == true then | |
1371 | so("http://www.roblox.com/asset/?id=199144089", BarrelB, 1, .9) | |
1372 | so("http://www.roblox.com/asset/?id=200633327", BarrelB, 1, 1.2) | |
1373 | so("http://www.roblox.com/asset/?id=200633780", BarrelB, 1, 1.5) | |
1374 | GunB = false | |
1375 | Shoot(BarrelB, 0, 0) | |
1376 | for i=0,1,0.15 do | |
1377 | wait() | |
1378 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1379 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-5), math.rad(80)), .3) | |
1380 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(15)), .3) | |
1381 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(90), math.rad(-60), math.rad(-80)), .55) | |
1382 | RH.C0 = clerp(RH.C0, cn(0.6, -2, .1) * angles(math.rad(-5), math.rad(0), math.rad(3)), .25) | |
1383 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, -.1) * angles(math.rad(5), math.rad(0), math.rad(-3)), .25) | |
1384 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), .3) | |
1385 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), .75) | |
1386 | end | |
1387 | GunA = true | |
1388 | end | |
1389 | end | |
1390 | gyro.Parent = nil | |
1391 | speedvalue = 2.5 | |
1392 | gun=false | |
1393 | gunidle=false | |
1394 | shoot=false | |
1395 | attack=false | |
1396 | end | |
1397 | ||
1398 | function EchoBarrage() | |
1399 | attack = true | |
1400 | gyro.Parent = RootPart | |
1401 | speedvalue = 1 | |
1402 | for i = 0,1,0.1 do | |
1403 | wait() | |
1404 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(0)), .3) | |
1405 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1406 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(10)), .3) | |
1407 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-10)), .3) | |
1408 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(3), math.rad(0), math.rad(3)), .3) | |
1409 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(3), math.rad(0), math.rad(-3)), .3) | |
1410 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 10*i, math.rad(0)), .7) | |
1411 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), -10*i, math.rad(0)), .7) | |
1412 | end | |
1413 | for i = 1,2 do | |
1414 | for i = 0,1,0.3 do | |
1415 | wait() | |
1416 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1417 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1418 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.2) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1419 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.2) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1420 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .3) | |
1421 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .3) | |
1422 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1423 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1424 | end | |
1425 | ReflectShot(mouse,BarrelA) | |
1426 | so("http://www.roblox.com/asset/?id=199144089", BarrelA, 1, .9) | |
1427 | so("http://www.roblox.com/asset/?id=200633327", BarrelA, 1, 1.2) | |
1428 | so("http://www.roblox.com/asset/?id=200633780", BarrelA, 1, 1.5) | |
1429 | --so("http://www.roblox.com/asset/?id=360087120", Torso, .5, 1) | |
1430 | for i = 0,1,0.35 do | |
1431 | wait() | |
1432 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .4) | |
1433 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(20)), .4) | |
1434 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.4) * angles(math.rad(150), math.rad(0), math.rad(-20)), .4) | |
1435 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.4) * angles(math.rad(90), math.rad(0), math.rad(0)), .4) | |
1436 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(20), math.rad(3)), .4) | |
1437 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(20), math.rad(-3)), .4) | |
1438 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1439 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1440 | end | |
1441 | for i = 0,1,0.3 do | |
1442 | wait() | |
1443 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1444 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1445 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.2) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1446 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.2) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1447 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .3) | |
1448 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .3) | |
1449 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1450 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1451 | end | |
1452 | ReflectShot(mouse,BarrelB) | |
1453 | so("http://www.roblox.com/asset/?id=199144089", BarrelB, 1, .9) | |
1454 | so("http://www.roblox.com/asset/?id=200633327", BarrelB, 1, 1.2) | |
1455 | so("http://www.roblox.com/asset/?id=200633780", BarrelB, 1, 1.5) | |
1456 | --so("http://www.roblox.com/asset/?id=360087120", Torso, .5, 1) | |
1457 | for i = 0,1,0.35 do | |
1458 | wait() | |
1459 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .4) | |
1460 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(-20)), .4) | |
1461 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.4) * angles(math.rad(90), math.rad(0), math.rad(0)), .4) | |
1462 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.4) * angles(math.rad(150), math.rad(0), math.rad(20)), .4) | |
1463 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(-20), math.rad(3)), .4) | |
1464 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(-20), math.rad(-3)), .4) | |
1465 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1466 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1467 | end | |
1468 | end | |
1469 | gyro.Parent = nil | |
1470 | attack = false | |
1471 | speedvalue = 2.5 | |
1472 | end | |
1473 | ||
1474 | function LucentScatter() | |
1475 | attack = true | |
1476 | gyro.Parent = RootPart | |
1477 | speedvalue = 1 | |
1478 | for i = 0,1,0.1 do | |
1479 | wait() | |
1480 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(-70)), .3) | |
1481 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(70)), .3) | |
1482 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), .3) | |
1483 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.3) * angles(math.rad(120), math.rad(0), math.rad(40)), .3) | |
1484 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(3), math.rad(70), math.rad(3)), .3) | |
1485 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(3), math.rad(70), math.rad(-3)), .3) | |
1486 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), -10*i, math.rad(0)), .7) | |
1487 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)), .7) | |
1488 | end | |
1489 | for i = 0,1,0.2 do | |
1490 | wait() | |
1491 | Shoot(BarrelA, 0, 0) | |
1492 | so("http://www.roblox.com/asset/?id=199144089", BarrelA, 1, .9) | |
1493 | so("http://www.roblox.com/asset/?id=200633327", BarrelA, 1, 1.2) | |
1494 | so("http://www.roblox.com/asset/?id=200633780", BarrelA, 1, 1.5) | |
1495 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(100)), .3) | |
1496 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-100)), .3) | |
1497 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(130), math.rad(50), math.rad(30)), .2) | |
1498 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.3) * angles(math.rad(-20), math.rad(0), math.rad(-40)), .3) | |
1499 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(3), math.rad(-70), math.rad(3)), .3) | |
1500 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(3), math.rad(-70), math.rad(-3)), .3) | |
1501 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1502 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)), .7) | |
1503 | end | |
1504 | for i=0,1,0.3 do | |
1505 | wait() | |
1506 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), .25) | |
1507 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .25) | |
1508 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), .25) | |
1509 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), .25) | |
1510 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1511 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1512 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1513 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1514 | end | |
1515 | for i = 1,5 do | |
1516 | Shoot(BarrelB, 0, 0) | |
1517 | so("http://www.roblox.com/asset/?id=199144089", BarrelB, 1, .9) | |
1518 | so("http://www.roblox.com/asset/?id=200633327", BarrelB, 1, 1.2) | |
1519 | so("http://www.roblox.com/asset/?id=200633780", BarrelB, 1, 1.5) | |
1520 | for i=0,1,0.3 do | |
1521 | wait() | |
1522 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .5) | |
1523 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-5), math.rad(80)), .5) | |
1524 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(15)), .5) | |
1525 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(90), math.rad(-60), math.rad(-80)), .55) | |
1526 | RH.C0 = clerp(RH.C0, cn(0.6, -2, .1) * angles(math.rad(-5), math.rad(0), math.rad(3)), .5) | |
1527 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, -.1) * angles(math.rad(5), math.rad(0), math.rad(-3)), .5) | |
1528 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), .3) | |
1529 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), .75) | |
1530 | end | |
1531 | for i=0,1,0.3 do | |
1532 | wait() | |
1533 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), .8) | |
1534 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .5) | |
1535 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), .8) | |
1536 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), .8) | |
1537 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .5) | |
1538 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .5) | |
1539 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5) | |
1540 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5) | |
1541 | end | |
1542 | end | |
1543 | gyro.Parent = nil | |
1544 | attack = false | |
1545 | speedvalue = 2.5 | |
1546 | end | |
1547 | ||
1548 | function OrbEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay) | |
1549 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1550 | prt.Anchored = true | |
1551 | prt.CanCollide=false | |
1552 | prt.CFrame = cframe*cn(0,-1,0)*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))) | |
1553 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1554 | game:GetService("Debris"):AddItem(prt, 10) | |
1555 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1556 | for i = 0, 1, delay do | |
1557 | wait(0) | |
1558 | Part.CFrame = Part.CFrame | |
1559 | Part.Transparency = i | |
1560 | Mesh.Scale = Mesh.Scale + Vector3.new(x2, y2, z2) | |
1561 | end | |
1562 | Part.Parent = nil | |
1563 | end), prt, msh) | |
1564 | end | |
1565 | ||
1566 | function Shockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1567 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1568 | prt.Anchored = true | |
1569 | prt.CFrame = cframe*cn(0,-1,0) | |
1570 | --prt.Material = "Neon" | |
1571 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1572 | game:GetService("Debris"):AddItem(prt, 10) | |
1573 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1574 | for i = 0, 1, delay do | |
1575 | wait(0) | |
1576 | Part.CFrame = Part.CFrame | |
1577 | Part.Transparency = i | |
1578 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1579 | end | |
1580 | Part.Parent = nil | |
1581 | end), prt, msh) | |
1582 | end | |
1583 | ||
1584 | function Reflex() | |
1585 | attack = true | |
1586 | gyro.Parent = RootPart | |
1587 | speedvalue = 1 | |
1588 | for i = 0,1,0.1 do | |
1589 | wait() | |
1590 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.55) * angles(math.rad(5), math.rad(0), math.rad(0)), .3) | |
1591 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .3) | |
1592 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.2) * angles(math.rad(0), math.rad(100), math.rad(50)), .3) | |
1593 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.2) * angles(math.rad(0), math.rad(-100), math.rad(-50)), .3) | |
1594 | RH.C0 = clerp(RH.C0, cn(0.55, -1.5, .5) * angles(math.rad(-60), math.rad(0), math.rad(3)), .3) | |
1595 | LH.C0 = clerp(LH.C0, cn(-0.55, -1.45, -.5) * angles(math.rad(-5), math.rad(0), math.rad(-3)), .3) | |
1596 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1597 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1598 | end | |
1599 | so("http://roblox.com/asset/?id=199145534",BarrelA,1,math.random(150,200)/100) | |
1600 | for i=1,math.random(3,6) do | |
1601 | OrbEffect(BarrelA.BrickColor,cn(BarrelA.Position),1,1,1,1,1,1,0.025) | |
1602 | Shockwave(BarrelA.BrickColor,cn(BarrelA.Position),1,1,1,1,1,1,0.025) | |
1603 | end | |
1604 | local target=CheckClose(BarrelA,30) | |
1605 | if target then | |
1606 | damage(target.Torso, 5, math.random(15,20), math.random(15,16), 1, RootPart) | |
1607 | end | |
1608 | Humanoid.Jump=true | |
1609 | Torso.Velocity=Vector3.new(0,7.5,0) | |
1610 | Torso.Velocity=RootPart.CFrame.lookVector*-100 | |
1611 | Humanoid.WalkSpeed = 16*speed.Value | |
1612 | for i = 0,1,0.1 do | |
1613 | wait() | |
1614 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(-6*i, math.rad(0), math.rad(0)), .4) | |
1615 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .4) | |
1616 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(-30), math.rad(0), math.rad(130)), .4) | |
1617 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(-30), math.rad(0), math.rad(-130)), .4) | |
1618 | RH.C0 = clerp(RH.C0, cn(0.6, -1.5, -.3) * angles(math.rad(0), math.rad(0), math.rad(5)), .4) | |
1619 | LH.C0 = clerp(LH.C0, cn(-0.6, -1.8, -.2) * angles(math.rad(0), math.rad(0), math.rad(-5)), .4) | |
1620 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-150), math.rad(0)), .25) | |
1621 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-150), math.rad(0)), .25) | |
1622 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1623 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1624 | end | |
1625 | gyro.Parent = nil | |
1626 | attack = false | |
1627 | speedvalue = 2.5 | |
1628 | end | |
1629 | ||
1630 | function Luxuriance() | |
1631 | attack = true | |
1632 | gyro.Parent = RootPart | |
1633 | for i = 0,1,0.1 do | |
1634 | wait() | |
1635 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.5) * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
1636 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .3) | |
1637 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(70)), .3) | |
1638 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-70)), .3) | |
1639 | RH.C0 = clerp(RH.C0, cn(0.55, -1.7, .4) * angles(math.rad(-20), math.rad(0), math.rad(3)), .3) | |
1640 | LH.C0 = clerp(LH.C0, cn(-0.55, -1.45, -.5) * angles(math.rad(5), math.rad(0), math.rad(-3)), .3) | |
1641 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 10*i, math.rad(0)), .7) | |
1642 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), -10*i, math.rad(0)), .7) | |
1643 | end | |
1644 | for i = 0,1,0.3 do | |
1645 | wait() | |
1646 | ReflectShot(mouse,BarrelA) | |
1647 | so("http://www.roblox.com/asset/?id=199144089", BarrelA, 1, .9) | |
1648 | so("http://www.roblox.com/asset/?id=200633327", BarrelA, 1, 1.2) | |
1649 | so("http://www.roblox.com/asset/?id=200633780", BarrelA, 1, 1.5) | |
1650 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(100)), .3) | |
1651 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-100)), .3) | |
1652 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(130), math.rad(50), math.rad(30)), .2) | |
1653 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.3) * angles(math.rad(-20), math.rad(0), math.rad(-40)), .3) | |
1654 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(3), math.rad(-70), math.rad(3)), .3) | |
1655 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(3), math.rad(-70), math.rad(-3)), .3) | |
1656 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1657 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)), .7) | |
1658 | end | |
1659 | for i = 0,1,0.2 do | |
1660 | wait() | |
1661 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1662 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .3) | |
1663 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(70)), .3) | |
1664 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-70)), .3) | |
1665 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .3) | |
1666 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .3) | |
1667 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 10*i, math.rad(0)), .7) | |
1668 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), -10*i, math.rad(0)), .7) | |
1669 | end | |
1670 | for i = 0,1,0.3 do | |
1671 | wait() | |
1672 | ReflectShot(mouse,BarrelB) | |
1673 | so("http://www.roblox.com/asset/?id=199144089", BarrelB, 1, .9) | |
1674 | so("http://www.roblox.com/asset/?id=200633327", BarrelB, 1, 1.2) | |
1675 | so("http://www.roblox.com/asset/?id=200633780", BarrelB, 1, 1.5) | |
1676 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(-100)), .3) | |
1677 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(100)), .3) | |
1678 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.3) * angles(math.rad(-20), math.rad(0), math.rad(-40)), .2) | |
1679 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(130), math.rad(-50), math.rad(-30)), .3) | |
1680 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(3), math.rad(70), math.rad(3)), .3) | |
1681 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(3), math.rad(70), math.rad(-3)), .3) | |
1682 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)), .7) | |
1683 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .7) | |
1684 | end | |
1685 | for i = 0,1,0.1 do | |
1686 | wait() | |
1687 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(0)), .3) | |
1688 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1689 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(10)), .3) | |
1690 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-10)), .3) | |
1691 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(3), math.rad(0), math.rad(3)), .3) | |
1692 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(3), math.rad(0), math.rad(-3)), .3) | |
1693 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 10*i, math.rad(0)), .7) | |
1694 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), -10*i, math.rad(0)), .7) | |
1695 | end | |
1696 | for i = 1,5 do | |
1697 | Shoot(BarrelA, 0, 0) | |
1698 | so("http://www.roblox.com/asset/?id=199144089", BarrelA, 1, .9) | |
1699 | so("http://www.roblox.com/asset/?id=200633327", BarrelA, 1, 1.2) | |
1700 | so("http://www.roblox.com/asset/?id=200633780", BarrelA, 1, 1.5) | |
1701 | for i = 0,1,0.35 do | |
1702 | wait() | |
1703 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .4) | |
1704 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(20)), .4) | |
1705 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.4) * angles(math.rad(150), math.rad(0), math.rad(-20)), .4) | |
1706 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.4) * angles(math.rad(90), math.rad(0), math.rad(0)), .4) | |
1707 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(20), math.rad(3)), .4) | |
1708 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(20), math.rad(-3)), .4) | |
1709 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1710 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1711 | end | |
1712 | Shoot(BarrelB, 0, 0) | |
1713 | so("http://www.roblox.com/asset/?id=199144089", BarrelB, 1, .9) | |
1714 | so("http://www.roblox.com/asset/?id=200633327", BarrelB, 1, 1.2) | |
1715 | so("http://www.roblox.com/asset/?id=200633780", BarrelB, 1, 1.5) | |
1716 | for i = 0,1,0.35 do | |
1717 | wait() | |
1718 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .4) | |
1719 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(-20)), .4) | |
1720 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.4) * angles(math.rad(90), math.rad(0), math.rad(0)), .4) | |
1721 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.4) * angles(math.rad(150), math.rad(0), math.rad(20)), .4) | |
1722 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(-20), math.rad(3)), .4) | |
1723 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(-20), math.rad(-3)), .4) | |
1724 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1725 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1726 | end | |
1727 | end | |
1728 | gyro.Parent = nil | |
1729 | attack = false | |
1730 | end | |
1731 | ||
1732 | mouse.Button1Down:connect(function() | |
1733 | if gun==true and shoot==false then | |
1734 | shoot=true | |
1735 | gun=false | |
1736 | end | |
1737 | if attack == false and attacktype == 1 then | |
1738 | Attackone() | |
1739 | attacktype = 2 | |
1740 | elseif attack == false and attacktype == 2 then | |
1741 | Attacktwo() | |
1742 | attacktype = 3 | |
1743 | elseif attack == false and attacktype == 3 then | |
1744 | Attackthree() | |
1745 | attacktype = 4 | |
1746 | elseif attack == false and attacktype == 4 then | |
1747 | Attackfour() | |
1748 | attacktype = 1 | |
1749 | end | |
1750 | end) | |
1751 | ||
1752 | mouse.KeyDown:connect(function(k) | |
1753 | k = k:lower() | |
1754 | if k=='e' and gun==false and shoot==false and attack==false then | |
1755 | GunStance() | |
1756 | end | |
1757 | if k=='e'and shoot==false then | |
1758 | if gun==true then | |
1759 | gun=false | |
1760 | end | |
1761 | end | |
1762 | if k=='q' and gun==false and shoot==false and attack==false and cooldown1 >= co1 and stamina>=skill1stam then | |
1763 | cooldown1=0 | |
1764 | subtractstamina(skill1stam) | |
1765 | EchoBarrage() | |
1766 | end | |
1767 | if k=='r' and gun==false and shoot==false and attack==false and cooldown2 >= co2 and stamina>=skill2stam then | |
1768 | cooldown2=0 | |
1769 | subtractstamina(skill2stam) | |
1770 | LucentScatter() | |
1771 | end | |
1772 | if k=='t' and gun==false and shoot==false and attack==false and cooldown3 >= co3 and stamina>=skill3stam then | |
1773 | cooldown3=0 | |
1774 | subtractstamina(skill3stam) | |
1775 | Reflex() | |
1776 | end | |
1777 | if k=='f' and gun==false and shoot==false and attack==false and cooldown4 >= co4 and stamina>=skill4stam then | |
1778 | cooldown4=0 | |
1779 | subtractstamina(skill4stam) | |
1780 | Luxuriance() | |
1781 | end | |
1782 | end) | |
1783 | ||
1784 | ||
1785 | inputserv.InputBegan:connect(function(k) | |
1786 | if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then | |
1787 | elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then | |
1788 | elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then | |
1789 | elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then | |
1790 | end | |
1791 | end) | |
1792 | ||
1793 | inputserv.InputBegan:connect(function(k) | |
1794 | if k.KeyCode == Enum.KeyCode.Slash then | |
1795 | local fin = nil | |
1796 | typing = true | |
1797 | fin = inputserv.InputBegan:connect(function(k) | |
1798 | if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then | |
1799 | typing = false | |
1800 | fin:disconnect() | |
1801 | end | |
1802 | end) | |
1803 | end | |
1804 | end) | |
1805 | ||
1806 | local ReboundCount = 0 | |
1807 | ||
1808 | function updateskills() | |
1809 | if cooldown1 <= co1 then | |
1810 | cooldown1 = cooldown1 + 1 | |
1811 | end | |
1812 | if cooldown2 <= co2 then | |
1813 | cooldown2 = cooldown2 + 1 | |
1814 | end | |
1815 | if cooldown3 <= co3 then | |
1816 | cooldown3 = cooldown3 + 1 | |
1817 | end | |
1818 | if cooldown4 <= co4 then | |
1819 | cooldown4 = cooldown4 + 1 | |
1820 | end | |
1821 | if stamina <= maxstamina then | |
1822 | stamina = stamina + recoverEnergy | |
1823 | end | |
1824 | end | |
1825 | ||
1826 | game:GetService'RunService'.Heartbeat:connect(function() | |
1827 | updateskills() | |
1828 | gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RootPart.CFrame.p).unit * 100) | |
1829 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5) | |
1830 | staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), 'Out', 'Quad', .5) | |
1831 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5) | |
1832 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5) | |
1833 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5) | |
1834 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5) | |
1835 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1836 | velocity = RootPart.Velocity.y | |
1837 | sine = sine + change | |
1838 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1839 | Character.Humanoid.WalkSpeed = 16 * speed.Value | |
1840 | if equipped == true or equipped == false then | |
1841 | if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then | |
1842 | Anim = "Jump" | |
1843 | if attack == false then | |
1844 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .25) | |
1845 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .25) | |
1846 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(50)), .25) | |
1847 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), .25) | |
1848 | RH.C0 = clerp(RH.C0, cn(0.4, -1.5, -.5) * angles(math.rad(-20), math.rad(0), math.rad(-5)), .25) | |
1849 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(-10), math.rad(0), math.rad(5)), .25) | |
1850 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1851 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1852 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1853 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1854 | end | |
1855 | elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then | |
1856 | Anim = "Fall" | |
1857 | if attack == false then | |
1858 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), .25) | |
1859 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .25) | |
1860 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(70)), .25) | |
1861 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-70)), .25) | |
1862 | RH.C0 = clerp(RH.C0, cn(0.6, -1.5, -.3) * angles(math.rad(0), math.rad(0), math.rad(5)), .25) | |
1863 | LH.C0 = clerp(LH.C0, cn(-0.6, -1.8, -.2) * angles(math.rad(0), math.rad(0), math.rad(-5)), .25) | |
1864 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1865 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1866 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1867 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1868 | end | |
1869 | elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then | |
1870 | Anim = "Idle" | |
1871 | if attack == false then | |
1872 | change = 1 | |
1873 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -0.1+0.1*math.cos(sine/25), -0.1+0.05*math.cos(sine/25)) * angles(math.rad(0), math.rad(0), math.rad(-30)), .25) | |
1874 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10+5*math.cos(sine/25)), math.rad(0), math.rad(30)), .25) | |
1875 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, -.2) * angles(math.rad(50-5*math.cos(sine/25)), math.rad(0), math.rad(10)), .25) | |
1876 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.4, -.2) * angles(math.rad(50-5*math.cos(sine/25)), math.rad(0), math.rad(-10)), .25) | |
1877 | RH.C0 = clerp(RH.C0, cn(0.7, -1.9-.05*math.cos(sine/25), 0) * angles(math.rad(0), math.rad(30), math.rad(5))* angles(math.rad(-5+1*math.cos(sine/25)), math.rad(0), math.rad(0)), .25) | |
1878 | LH.C0 = clerp(LH.C0, cn(-0.6, -1.9-.05*math.cos(sine/25), 0) * angles(math.rad(0), math.rad(30), math.rad(-3))* angles(math.rad(-3+1*math.cos(sine/25)), math.rad(0), math.rad(0)), .25) | |
1879 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1880 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1881 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1882 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1883 | end | |
1884 | elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then | |
1885 | Anim = "Walk" | |
1886 | if attack == false then | |
1887 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(20+1*math.cos(sine/5)), math.rad(0), math.rad(5*math.cos(sine/4.5))), .25) | |
1888 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(-5*math.cos(sine/4.5))), .25) | |
1889 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.45, 0) * angles(math.rad(-40), math.rad(0), math.rad(20+1*math.cos(sine/5))), .25) | |
1890 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.45, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20+1*math.cos(sine/5))), .25) | |
1891 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 1*math.cos(sine/4.5)) * angles(math.rad(-50*math.cos(sine/4.5)), math.rad(0), math.rad(3)), .25) | |
1892 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, -1*math.cos(sine/4.5)) * angles(math.rad(50*math.cos(sine/4.5)), math.rad(0), math.rad(-3)), .25) | |
1893 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1894 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1895 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1896 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1897 | end | |
1898 | elseif stun.Value == true then | |
1899 | if attack == false then | |
1900 | Character.Humanoid.WalkSpeed = 0 | |
1901 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1902 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1903 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1904 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1905 | RH.C0 = clerp(RH.C0, cn(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1906 | LH.C0 = clerp(LH.C0, cn(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1907 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1908 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1909 | end | |
1910 | end | |
1911 | end | |
1912 | if #Effects > 0 then | |
1913 | for e = 1, #Effects do | |
1914 | if Effects[e] ~= nil then | |
1915 | local Thing = Effects[e] | |
1916 | if Thing ~= nil then | |
1917 | local Part = Thing[1] | |
1918 | local Mode = Thing[2] | |
1919 | local Delay = Thing[3] | |
1920 | local IncX = Thing[4] | |
1921 | local IncY = Thing[5] | |
1922 | local IncZ = Thing[6] | |
1923 | if Thing[1].Transparency <= 1 then | |
1924 | if Thing[2] == "Block1" then | |
1925 | Thing[1].CFrame = Thing[1].CFrame * CFrame.FromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1926 | local Mesh = Thing[1].Mesh | |
1927 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1928 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1929 | elseif Thing[2] == "Cylinder" then | |
1930 | local Mesh = Thing[1].Mesh | |
1931 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1932 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1933 | elseif Thing[2] == "Blood" then | |
1934 | local Mesh = Thing[7] | |
1935 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .5, 0) | |
1936 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1937 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1938 | elseif Thing[2] == "Elec" then | |
1939 | local Mesh = Thing[1].Mesh | |
1940 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1941 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1942 | elseif Thing[2] == "Disappear" then | |
1943 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1944 | end | |
1945 | else | |
1946 | Part.Parent = nil | |
1947 | table.remove(Effects, e) | |
1948 | end | |
1949 | end | |
1950 | end | |
1951 | end | |
1952 | end | |
1953 | for _, lasr in pairs(lasrs) do | |
1954 | for i, v in pairs(lasr[9]) do | |
1955 | if lasr[7][i].Parent then | |
1956 | v.Scale = v.Scale + Vector3.new(-0.1,0,-0.1) | |
1957 | lasr[10][i].Scale = lasr[10][i].Scale + Vector3.new(-0.1,0,-0.1) | |
1958 | if v.Scale.x < 0.1 then | |
1959 | lasr[7][i].Parent = nil | |
1960 | lasr[8][i].Parent = nil | |
1961 | end | |
1962 | end | |
1963 | end | |
1964 | ||
1965 | if lasr[1] then | |
1966 | local hitz, enz = RAY(lasr[3],lasr[2]*lasrspd) | |
1967 | lasr[5] = lasr[5] + (lasr[3] - enz).magnitude | |
1968 | ||
1969 | lasr[7][lasr[6]].Parent = m | |
1970 | lasr[7][lasr[6]].CFrame = CFrame.new((lasr[3] + enz)/2,enz) * CFrame.Angles(math.pi/2,0,0) | |
1971 | lasr[9][lasr[6]].Scale = Vector3.new(0.7,(lasr[3] - enz).magnitude*5,0.7) | |
1972 | ||
1973 | lasr[8][lasr[6]].Parent = m | |
1974 | lasr[8][lasr[6]].CFrame = lasr[7][lasr[6]].CFrame | |
1975 | lasr[10][lasr[6]].Scale = Vector3.new(1.3,(lasr[3] - enz).magnitude*5 + 0.02,1.3) | |
1976 | ||
1977 | lasr[3] = enz | |
1978 | lasr[6] = lasr[6]%#lasr[7] + 1 | |
1979 | ||
1980 | if hitz then | |
1981 | lasr[4] = lasr[4] + 1 | |
1982 | if lasr[4] == maxRebounds then | |
1983 | lasr[1] = false | |
1984 | so("http://www.roblox.com/asset/?id=200633327", hitz, 1, 2) | |
1985 | damage(hitz.Parent:WaitForChild("Torso"), math.random(5,10), math.random(10,20), 5, 1, RootPart) | |
1986 | print(ReboundCount) | |
1987 | else | |
1988 | local norm = FindSurface(hitz,enz) | |
1989 | lasr[2] = Reflect(lasr[2],norm) | |
1990 | so("http://www.roblox.com/asset/?id=200633327", hitz, 1, 2) | |
1991 | damage(hitz.Parent:WaitForChild("Torso"), math.random(5,10), math.random(10,20), 5, 1, RootPart) | |
1992 | print(ReboundCount) | |
1993 | end | |
1994 | end | |
1995 | if lasr[5] > maxTravelDistance then | |
1996 | lasr[1] = false | |
1997 | end | |
1998 | end | |
1999 | end | |
2000 | end) |