SHOW:
|
|
- or go back to the newest paste.
1 | sethiddenproperty(game.Players.LocalPlayer, "MaximumSimulationRadius", 999999999999999999999999) --SYNAPSE ONLY DELETE THIS IF YOUR NOT USING SYNAPSE | |
2 | sethiddenproperty(game.Players.LocalPlayer, "SimulationRadius", 999999999999999999999999) --SYNAPSE ONLY DELETE THIS IF YOUR NOT USING SYNAPSE | |
3 | ||
4 | --TOOL YOU NEED: https://www.roblox.com/catalog/5410674378/METAL-x-LIGHTSEER-77 | |
5 | ||
6 | -----------//Elio Blasio\\----------- | |
7 | --[[Movelist | |
8 | E = Equip/Unequip, click to shoot, hold to spray | |
9 | ---------]] | |
10 | Bypass = "death" | |
11 | loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)() | |
12 | ||
13 | local HumanoidIsDead = false | |
14 | ||
15 | local Player=game.Players.LocalPlayer | |
16 | local Character=workspace.non | |
17 | local hum = Character.Humanoid | |
18 | local LeftArm=Character["Left Arm"] | |
19 | local LeftLeg=Character["Left Leg"] | |
20 | local RightArm=Character["Right Arm"] | |
21 | local RightLeg=Character["Right Leg"] | |
22 | local Root=Character["HumanoidRootPart"] | |
23 | local Head=Character["Head"] | |
24 | local Torso=Character["Torso"] | |
25 | local Neck=Torso["Neck"] | |
26 | local ToolName = "METALXLIGHTSEER77Accessory" | |
27 | local Gun = Character[ToolName] | |
28 | local GHandle = Gun.Handle | |
29 | h = Instance.new("Attachment",GHandle) | |
30 | ra = Instance.new("Attachment",RightArm) | |
31 | gap = Instance.new("AlignPosition",GHandle) | |
32 | gap.Attachment0 = h | |
33 | gap.Attachment1 = ra | |
34 | gap.RigidityEnabled = true | |
35 | gao = Instance.new("AlignOrientation",GHandle) | |
36 | gao.Attachment0 = h | |
37 | gao.Attachment1 = ra | |
38 | gao.RigidityEnabled = true | |
39 | GHandle:FindFirstChildOfClass("AlignOrientation").Attachment1 = RightArm.RightGripAttachment | |
40 | GHandle:FindFirstChildOfClass("AlignPosition").Attachment1 = RightArm.RightGripAttachment | |
41 | RightArm.RightGripAttachment.Position = Vector3.new(0,-1.2,-0.7) | |
42 | RightArm.RightGripAttachment.Orientation = Vector3.new(0, -90, 55) | |
43 | local mouse = Player:GetMouse() | |
44 | local walking = false | |
45 | local jumping = false | |
46 | local attacking = false | |
47 | local firsttime = false | |
48 | local position = nil | |
49 | local MseGuide = true | |
50 | local running = false | |
51 | local settime = 0 | |
52 | local sine = 0 | |
53 | local t = 0 | |
54 | local ws = 18 | |
55 | local change = 1 | |
56 | local combo1 = true | |
57 | local equip = false | |
58 | local dgs = 75 | |
59 | local combo2 = false | |
60 | local switch1 = true | |
61 | local switch2 = false | |
62 | local firsttime2 = false | |
63 | local combo3 = false | |
64 | local gunallowance = false | |
65 | local shooting = false | |
66 | local RunSrv = game:GetService("RunService") | |
67 | local RenderStepped = game:GetService("RunService").RenderStepped | |
68 | local removeuseless = game:GetService("Debris") | |
69 | ||
70 | coroutine.wrap(function() | |
71 | while true do | |
72 | wait() | |
73 | if not Character or not Character:FindFirstChild("Humanoid") or Character:FindFirstChild("Humanoid").Health <= 0 then | |
74 | HumanoidIsDead = true | |
75 | break | |
76 | end | |
77 | end | |
78 | end)() | |
79 | ||
80 | local HEADLERP = Instance.new("ManualWeld") | |
81 | HEADLERP.Parent = Head | |
82 | HEADLERP.Part0 = Head | |
83 | HEADLERP.Part1 = Head | |
84 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
85 | ||
86 | local TORSOLERP = Instance.new("ManualWeld") | |
87 | TORSOLERP.Parent = Root | |
88 | TORSOLERP.Part0 = Torso | |
89 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
90 | ||
91 | local ROOTLERP = Instance.new("ManualWeld") | |
92 | ROOTLERP.Parent = Root | |
93 | ROOTLERP.Part0 = Root | |
94 | ROOTLERP.Part1 = Torso | |
95 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
96 | ||
97 | local RIGHTARMLERP = Instance.new("ManualWeld") | |
98 | RIGHTARMLERP.Parent = RightArm | |
99 | RIGHTARMLERP.Part0 = RightArm | |
100 | RIGHTARMLERP.Part1 = Torso | |
101 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
102 | ||
103 | local LEFTARMLERP = Instance.new("ManualWeld") | |
104 | LEFTARMLERP.Parent = LeftArm | |
105 | LEFTARMLERP.Part0 = LeftArm | |
106 | LEFTARMLERP.Part1 = Torso | |
107 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
108 | ||
109 | local RIGHTLEGLERP = Instance.new("ManualWeld") | |
110 | RIGHTLEGLERP.Parent = RightLeg | |
111 | RIGHTLEGLERP.Part0 = RightLeg | |
112 | RIGHTLEGLERP.Part1 = Torso | |
113 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
114 | ||
115 | local LEFTLEGLERP = Instance.new("ManualWeld") | |
116 | LEFTLEGLERP.Parent = LeftLeg | |
117 | LEFTLEGLERP.Part0 = LeftLeg | |
118 | LEFTLEGLERP.Part1 = Torso | |
119 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
120 | ||
121 | local function weldBetween(a, b) | |
122 | local weld = Instance.new("ManualWeld", a) | |
123 | weld.Part0 = a | |
124 | weld.Part1 = b | |
125 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
126 | return weld | |
127 | end | |
128 | ||
129 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
130 | A = Instance.new("Attachment", PARENT) | |
131 | A.Position = POSITION1 | |
132 | A.Name = "A" | |
133 | B = Instance.new("Attachment", PARENT) | |
134 | B.Position = POSITION2 | |
135 | B.Name = "B" | |
136 | tr1 = Instance.new("Trail", PARENT) | |
137 | tr1.Attachment0 = A | |
138 | tr1.Attachment1 = B | |
139 | tr1.Enabled = true | |
140 | tr1.Lifetime = LIFETIME | |
141 | tr1.TextureMode = "Static" | |
142 | tr1.LightInfluence = 0 | |
143 | tr1.Color = COLOR | |
144 | tr1.Transparency = NumberSequence.new(0, 1) | |
145 | end | |
146 | ||
147 | shootbox = Instance.new("Part",Gun) | |
148 | shootbox.Size = Vector3.new(.2,.2,.2) | |
149 | shootbox.CanCollide = false | |
150 | shootbox.Transparency = 1 | |
151 | shootbox.CFrame = Gun.Handle.CFrame | |
152 | shootboxweld = weldBetween(shootbox,Gun.Handle) | |
153 | shootboxweld.C0 = CFrame.new(Vector3.new(4.15,-.8,.6),Vector3.new(90,0,90)) | |
154 | light = Instance.new("PointLight", shootbox) | |
155 | light.Color = BrickColor.new("Bright yellow").Color | |
156 | light.Range = 5 | |
157 | light.Brightness = 11 | |
158 | light.Enabled = false | |
159 | particlemiter1 = Instance.new("ParticleEmitter", shootbox) | |
160 | particlemiter1.Enabled = false | |
161 | particlemiter1.Texture = "rbxassetid://461242617" | |
162 | particlemiter1.Lifetime = NumberRange.new(.1) | |
163 | particlemiter1.Size = NumberSequence.new(1,0) | |
164 | particlemiter1.Rate = 20 | |
165 | particlemiter1.RotSpeed = NumberRange.new(0) | |
166 | particlemiter1.Speed = NumberRange.new(0) | |
167 | ||
168 | ||
169 | coroutine.wrap(function() | |
170 | for i,v in pairs(Character:GetChildren()) do | |
171 | if v.Name == "Animate" then v:Remove() | |
172 | end | |
173 | end | |
174 | end)() | |
175 | ||
176 | function damagealll(Radius,Position) | |
177 | local Returning = {} | |
178 | for _,v in pairs(workspace:GetChildren()) do | |
179 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then | |
180 | if v:FindFirstChild("Torso") then | |
181 | local Mag = (v.Torso.Position - Position).magnitude | |
182 | if Mag < Radius then | |
183 | table.insert(Returning,v) | |
184 | end | |
185 | elseif v:FindFirstChild("UpperTorso") then | |
186 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
187 | if Mag < Radius then | |
188 | table.insert(Returning,v) | |
189 | end | |
190 | end | |
191 | end | |
192 | end | |
193 | return Returning | |
194 | end | |
195 | ||
196 | function swait(num) | |
197 | if num == 0 or num == nil then | |
198 | game:service("RunService").Stepped:wait(0) | |
199 | else | |
200 | for i = 0, num do | |
201 | game:service("RunService").Stepped:wait(0) | |
202 | end | |
203 | end | |
204 | end | |
205 | ||
206 | doomtheme = Instance.new("Sound", Torso) | |
207 | doomtheme.Volume = 1 | |
208 | doomtheme.Name = "doomtheme" | |
209 | doomtheme.Looped = true | |
210 | doomtheme.SoundId = "rbxassetid://180337897" | |
211 | doomtheme:Play() | |
212 | ||
213 | Torso.ChildRemoved:connect(function(removed) | |
214 | if removed.Name == "doomtheme" then | |
215 | ||
216 | doomtheme = Instance.new("Sound", Torso) | |
217 | doomtheme.Volume = 1 | |
218 | doomtheme.Name = "doomtheme" | |
219 | doomtheme.Looped = true | |
220 | doomtheme.SoundId = "rbxassetid://180337897" | |
221 | doomtheme:Play() | |
222 | end | |
223 | end) | |
224 | ||
225 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
226 | so = Instance.new("Sound") | |
227 | so.Parent = PARENT | |
228 | so.SoundId = "rbxassetid://"..ID | |
229 | so.Volume = VOL | |
230 | so.Looped = LOOP | |
231 | so:Play() | |
232 | removeuseless:AddItem(so,REMOVE) | |
233 | end | |
234 | ||
235 | mouse.KeyDown:connect(function(Press) | |
236 | Press=Press:lower() | |
237 | if Press=='t' then | |
238 | ||
239 | end | |
240 | end) | |
241 | ||
242 | mouse.KeyDown:connect(function(Press) | |
243 | Press=Press:lower() | |
244 | if Press=='e' then | |
245 | if debounce then return end | |
246 | if equip then | |
247 | g1:Remove() | |
248 | light.Enabled = false | |
249 | pcall(function() | |
250 | temmy:Remove() | |
251 | end) | |
252 | for i,v in pairs(Gun:GetDescendants()) do | |
253 | if v.Name == "temmy" then v:Remove() | |
254 | end | |
255 | end | |
256 | light.Enabled = false | |
257 | particlemiter1.Enabled = false | |
258 | hum.CameraOffset = Vector3.new(0,0,0) | |
259 | attacking = false | |
260 | equip = false | |
261 | shooting = false | |
262 | gunallowance = false | |
263 | ws = 18 | |
264 | else | |
265 | g1 = Instance.new("BodyGyro", Root) | |
266 | g1.D = 175 | |
267 | g1.P = 20000 | |
268 | g1.MaxTorque = Vector3.new(0,9000,0) | |
269 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
270 | attacking = true | |
271 | debounce = true | |
272 | equip = true | |
273 | coroutine.wrap(function() | |
274 | while equip do | |
275 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1) | |
276 | ws = 10 | |
277 | swait() | |
278 | if Root.Velocity.y > 1 then | |
279 | position = "Jump3" | |
280 | elseif Root.Velocity.y < -1 then | |
281 | position = "Falling3" | |
282 | elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then | |
283 | position = "Walk3" | |
284 | elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then | |
285 | position = "Idle4" | |
286 | end | |
287 | end | |
288 | end)() | |
289 | coroutine.wrap(function() | |
290 | while equip do | |
291 | swait() | |
292 | settime = 0.05 | |
293 | sine = sine + change | |
294 | if position == "Jump3" and attacking and not running then | |
295 | change = .65 | |
296 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
297 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
298 | elseif position == "Falling3" and attacking and not running then | |
299 | change = .65 | |
300 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4) | |
301 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.4) | |
302 | elseif position == "Walk3" and attacking == true and running == false then | |
303 | change = .65 | |
304 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.2) | |
305 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.1) | |
306 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.1) | |
307 | elseif position == "Idle4" and attacking == true and running == false then | |
308 | change = .65 | |
309 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.1) | |
310 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
311 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
312 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
313 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
314 | end | |
315 | end | |
316 | end)() | |
317 | SOUND(RightArm,898163129,6,false,2) | |
318 | for i = 1, 30 do | |
319 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.68,1.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),.25) | |
320 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1, 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25) | |
321 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.25) | |
322 | swait() | |
323 | end | |
324 | gunallowance = true | |
325 | mouse.Button1Down:connect(function() | |
326 | if gunallowance then | |
327 | particlemiter1.Enabled = true | |
328 | shooting = true | |
329 | end | |
330 | end) | |
331 | mouse.Button1Up:connect(function() | |
332 | if gunallowance then | |
333 | hum.CameraOffset = Vector3.new(0,0,0) | |
334 | light.Enabled = false | |
335 | particlemiter1.Enabled = false | |
336 | pcall(function() | |
337 | temmy:Remove() | |
338 | end) | |
339 | for i,v in pairs(Gun:GetDescendants()) do | |
340 | if v.Name == "temmy" then v:Remove() | |
341 | end | |
342 | end | |
343 | shooting = false | |
344 | end | |
345 | end) | |
346 | coroutine.wrap(function() | |
347 | if firsttime2 then return end | |
348 | firsttime2 = true | |
349 | while true do | |
350 | swait(3) | |
351 | if shooting then | |
352 | if switch1 then | |
353 | switch1 = false | |
354 | switch2 = true | |
355 | light.Enabled = true | |
356 | elseif switch2 then | |
357 | switch1 = true | |
358 | switch2 = false | |
359 | light.Enabled = false | |
360 | end | |
361 | end | |
362 | end | |
363 | end)() | |
364 | coroutine.wrap(function() | |
365 | if firsttime then return end | |
366 | firsttime = true | |
367 | while true do | |
368 | if shooting then | |
369 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0 - 10 * math.sin(sine)), math.rad(0)), 0.25) | |
370 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1 + .4 * math.sin(sine), 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25) | |
371 | elseif not shooting then | |
372 | end | |
373 | swait() | |
374 | end | |
375 | end)() | |
376 | debounce = false | |
377 | end | |
378 | end | |
379 | end) | |
380 | ||
381 | ||
382 | checks1 = coroutine.wrap(function() -------Checks | |
383 | while true do | |
384 | if HumanoidIsDead then break end | |
385 | if Root.Velocity.y > 1 then | |
386 | position = "Jump" | |
387 | elseif Root.Velocity.y < -1 then | |
388 | position = "Falling" | |
389 | elseif Root.Velocity.Magnitude < 2 then | |
390 | position = "Idle" | |
391 | elseif Root.Velocity.Magnitude < 20 then | |
392 | position = "Walking" | |
393 | elseif Root.Velocity.Magnitude > 20 then | |
394 | position = "Running" | |
395 | else | |
396 | end | |
397 | wait() | |
398 | end | |
399 | end) | |
400 | checks1() | |
401 | ||
402 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
403 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
404 | end | |
405 | ||
406 | function ray2(StartPos, EndPos, Distance, Ignore) | |
407 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
408 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
409 | end | |
410 | ||
411 | OrgnC0 = Neck.C0 | |
412 | local movelimbs = coroutine.wrap(function() | |
413 | while RunSrv.RenderStepped:wait() do | |
414 | if HumanoidIsDead then break end | |
415 | TrsoLV = Torso.CFrame.lookVector | |
416 | Dist = nil | |
417 | Diff = nil | |
418 | if not MseGuide then | |
419 | print("Failed to recognize") | |
420 | else | |
421 | local _, Point = workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), workspace, false, true) | |
422 | Dist = (Head.CFrame.p-Point).magnitude | |
423 | Diff = Head.CFrame.Y-Point.Y | |
424 | local _, Point2 = workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), workspace, false, true) | |
425 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
426 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
427 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
428 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
429 | end | |
430 | end | |
431 | end) | |
432 | movelimbs() | |
433 | immortal = {} | |
434 | for i,v in pairs(Character:GetDescendants()) do | |
435 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then | |
436 | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then | |
437 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
438 | end | |
439 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency}) | |
440 | elseif v:IsA("JointInstance") then | |
441 | table.insert(immortal,{v,v.Parent,nil,nil,nil}) | |
442 | end | |
443 | end | |
444 | for e = 1, #immortal do | |
445 | if immortal[e] ~= nil then | |
446 | local STUFF = immortal[e] | |
447 | local PART = STUFF[1] | |
448 | local PARENT = STUFF[2] | |
449 | local MATERIAL = STUFF[3] | |
450 | local COLOR = STUFF[4] | |
451 | local TRANSPARENCY = STUFF[5] | |
452 | if levitate then | |
453 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
454 | PART.Material = MATERIAL | |
455 | PART.Color = COLOR | |
456 | PART.Transparency = TRANSPARENCY | |
457 | end | |
458 | PART.AncestryChanged:connect(function() | |
459 | PART.Parent = PARENT | |
460 | end) | |
461 | else | |
462 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
463 | PART.Material = MATERIAL | |
464 | PART.Color = COLOR | |
465 | PART.Transparency = TRANSPARENCY | |
466 | end | |
467 | PART.AncestryChanged:connect(function() | |
468 | PART.Parent = PARENT | |
469 | end) | |
470 | end | |
471 | end | |
472 | end | |
473 | coroutine.wrap(function() | |
474 | while true do | |
475 | if HumanoidIsDead then break end | |
476 | if hum.Health < .1 then | |
477 | deadsound = Instance.new("Sound", Torso) | |
478 | deadsound.Volume = 6 | |
479 | deadsound.SoundId = "rbxassetid://1411352723" | |
480 | deadsound:Play() | |
481 | end | |
482 | wait() | |
483 | end | |
484 | end)() | |
485 | ||
486 | local anims = coroutine.wrap(function() | |
487 | while true do | |
488 | if HumanoidIsDead then break end | |
489 | settime = 0.05 | |
490 | sine = sine + change | |
491 | if position == "Jump" and attacking == false then | |
492 | change = 1 | |
493 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
494 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
495 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
496 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
497 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
498 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4) | |
499 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
500 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
501 | elseif position == "Jump2" and attacking == false then | |
502 | change = 1 | |
503 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
504 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
505 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
506 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
507 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
508 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
509 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
510 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
511 | elseif position == "Falling" and attacking == false then | |
512 | change = 1 | |
513 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
514 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
515 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
516 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
517 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
518 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
519 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
520 | elseif position == "Falling2" and attacking == false then | |
521 | change = 1 | |
522 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
523 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
524 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
525 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
526 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
527 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
528 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
529 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
530 | elseif position == "Walking" and attacking == false and running == false then | |
531 | change = 1.2 | |
532 | walking = true | |
533 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
534 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(10)), 0.1) | |
535 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
536 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
537 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.35,.5*math.sin(sine/8)) * CFrame.Angles(math.rad(-35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3) | |
538 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.1) | |
539 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.3) | |
540 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.3) | |
541 | elseif position == "Idle" and attacking == false and running == false then | |
542 | change = .5 | |
543 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
544 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.1) | |
545 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .1 * math.sin(sine/12),1 + .1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(8 + 5 * math.sin(sine/12))), 0.1) | |
546 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.59 - .05 * math.sin(sine/12), 0.1 -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(-2), math.rad(2), math.rad(8 - 6 * math.sin(sine/12))), .2) | |
547 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
548 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
549 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
550 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
551 | elseif position == "Idle2" and attacking == false and running == false then | |
552 | change = .75 | |
553 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1) | |
554 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
555 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
556 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
557 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4) | |
558 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 - 3 * math.sin(sine/9)), math.rad(-35 + 5 * math.sin(sine/9))), 0.4) | |
559 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
560 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
561 | elseif position == "Walking2" and attacking == false and running == false then | |
562 | ws = 50 | |
563 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
564 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
565 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
566 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
567 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
568 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
569 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
570 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
571 | elseif position == "Running" and attacking == false then | |
572 | change = 1 | |
573 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
574 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3) | |
575 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
576 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3) | |
577 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) | |
578 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3) | |
579 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
580 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3) | |
581 | end | |
582 | swait() | |
583 | end | |
584 | end) | |
585 | anims() | |
586 | game:GetService("StarterGui"):SetCore("SendNotification",{Title = "Elio Blasio",Text = "Doxxmane/EFTPMC#6054 <3",Duration = 12}) |