SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end | |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | if Index == "PlrObj" then | |
88 | return RealPlayer | |
89 | end | |
90 | return RealPlayer[Index] | |
91 | end | |
92 | end; | |
93 | __tostring = function(self) | |
94 | return RealPlayer.Name | |
95 | end | |
96 | }) | |
97 | end | |
98 | end | |
99 | if RealGame[Index] then | |
100 | local Type = type(RealGame[Index]) | |
101 | if Type == "function" then | |
102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
103 | return function (self,Service) | |
104 | if Service:lower() == "players" then | |
105 | return setmetatable({},{ | |
106 | __index = function (self2,Index2) | |
107 | local RealService = RealGame:GetService(Service) | |
108 | local Type2 = type(Index2) | |
109 | if Type2 == "function" then | |
110 | return function (self,...) | |
111 | return RealService[Index2](RealService,...) | |
112 | end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then | |
115 | return Sandbox(owner) | |
116 | end | |
117 | return RealService[Index2] | |
118 | end | |
119 | end; | |
120 | __tostring = function(self) | |
121 | return RealGame:GetService(Service).Name | |
122 | end | |
123 | }) | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["ContextActionService"] | |
126 | elseif Service:lower() == "contextactionservice" then | |
127 | return InternalData["UserInputService"] | |
128 | elseif Service:lower() == "runservice" then | |
129 | return setmetatable({},{ | |
130 | __index = function(self2,Index2) | |
131 | local RealService = RealGame:GetService(Service) | |
132 | local Type2 = type(Index2) | |
133 | if Type2 == "function" then | |
134 | return function (self,...) | |
135 | return RealService[Index2](RealService,...) | |
136 | end | |
137 | else | |
138 | if Index2:lower() == "bindtorenderstep" then | |
139 | return function (self,Name,Priority,Function) | |
140 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
141 | end | |
142 | end | |
143 | if Index2:lower() == "renderstepped" then | |
144 | return RealService["Stepped"] | |
145 | end | |
146 | return RealService[Index2] | |
147 | end | |
148 | end | |
149 | }) | |
150 | else | |
151 | return RealGame:GetService(Service) | |
152 | end | |
153 | end | |
154 | end | |
155 | return function (self,...) | |
156 | return RealGame[Index](RealGame,...) | |
157 | end | |
158 | else | |
159 | if game:GetService(Index) then | |
160 | return game:GetService(Index) | |
161 | end | |
162 | return RealGame[Index] | |
163 | end | |
164 | else | |
165 | return nil | |
166 | end | |
167 | end | |
168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
169 | print("Complete! Running...") | |
170 | ||
171 | ||
172 | --//Paste script below this line. | |
173 | ||
174 | print([[ | |
175 | ___________________________________ | |
176 | ||
177 | Kyutatsuki13's Chara script | |
178 | Build 0002 | |
179 | Don't even mind why I did this, it was a challenge ! | |
180 | ||
181 | ___________________________________ | |
182 | ]]) | |
183 | ||
184 | ||
185 | warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)") | |
186 | ||
187 | local p = game:GetService("Players").LocalPlayer | |
188 | local char = p.Character | |
189 | local mouse = p:GetMouse() | |
190 | local larm = char:WaitForChild("Left Arm") | |
191 | local rarm = char:WaitForChild("Right Arm") | |
192 | local lleg = char:WaitForChild("Left Leg") | |
193 | local rleg = char:WaitForChild("Right Leg") | |
194 | local hed = char:WaitForChild("Head") | |
195 | local torso = char:WaitForChild("Torso") | |
196 | local root = char:WaitForChild("HumanoidRootPart") | |
197 | local hum = char:FindFirstChildOfClass("Humanoid") | |
198 | local debris = game:GetService("Debris") | |
199 | local input = game:GetService("UserInputService") | |
200 | local run = game:GetService("RunService") | |
201 | local rs = run.RenderStepped | |
202 | local wingpose = "Idle" | |
203 | local DebrisModel = Instance.new("Model",char) | |
204 | DebrisModel.Name = "Debris" | |
205 | repeat rs:wait() until p.CharacterAppearanceLoaded | |
206 | ||
207 | noidle = false | |
208 | shift = false | |
209 | control = false | |
210 | no_nosound_able = false | |
211 | kills = 0 | |
212 | ||
213 | ---------------------------------------------------------------------------- | |
214 | ||
215 | function rswait(value) | |
216 | if value ~= nil and value ~= 0 then | |
217 | for i=1,value do | |
218 | rs:wait() | |
219 | end | |
220 | else | |
221 | rs:wait() | |
222 | end | |
223 | end | |
224 | ||
225 | ---------------------------------------------------------------------------- | |
226 | ||
227 | local timeposition = 0 | |
228 | ||
229 | function music(id) | |
230 | if not torso:FindFirstChild("MusicRuin") then | |
231 | soundz = Instance.new("Sound",torso) | |
232 | end | |
233 | soundz.Volume = 10 | |
234 | soundz.Name = "MusicRuin" | |
235 | soundz.Looped = true | |
236 | soundz.PlaybackSpeed = 1 | |
237 | soundz.SoundId = "rbxassetid://"..id | |
238 | soundz:Stop() | |
239 | soundz:Play() | |
240 | if no_nosound_able == true then | |
241 | soundz.TimePosition = timeposition | |
242 | end | |
243 | end | |
244 | ||
245 | ---------------------------------------------------------------------------- | |
246 | ||
247 | function lerp(a, b, t) | |
248 | return a + (b - a)*t | |
249 | end | |
250 | ||
251 | ---------------------------------------------------------------------------- | |
252 | ||
253 | function Lerp(c1,c2,al) | |
254 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
255 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
256 | for i,v in pairs(com1) do | |
257 | com1[i] = v+(com2[i]-v)*al | |
258 | end | |
259 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
260 | end | |
261 | ||
262 | ---------------------------------------------------------------------------- | |
263 | ||
264 | function slerp(a, b, t) | |
265 | dot = a:Dot(b) | |
266 | if dot > 0.99999 or dot < -0.99999 then | |
267 | return t <= 0.5 and a or b | |
268 | else | |
269 | r = math.acos(dot) | |
270 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
271 | end | |
272 | end | |
273 | ||
274 | ---------------------------------------------------------------------------- | |
275 | ||
276 | function clerp(c1,c2,al) | |
277 | ||
278 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
279 | ||
280 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
281 | ||
282 | for i,v in pairs(com1) do | |
283 | ||
284 | com1[i] = lerp(v,com2[i],al) | |
285 | ||
286 | end | |
287 | ||
288 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
289 | ||
290 | end | |
291 | ||
292 | ---------------------------------------------------------------------------- | |
293 | ||
294 | function findAllNearestTorso(pos,dist) | |
295 | local list = workspace:children() | |
296 | local torso = {} | |
297 | local temp = nil | |
298 | local human = nil | |
299 | local temp2 = nil | |
300 | for x = 1, #list do | |
301 | temp2 = list[x] | |
302 | if (temp2.className == "Model") and (temp2 ~= char) then | |
303 | temp = temp2:findFirstChild("Torso") | |
304 | human = temp2:findFirstChildOfClass("Humanoid") | |
305 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
306 | if (temp.Position - pos).magnitude < dist then | |
307 | table.insert(torso,temp) | |
308 | dist = (temp.Position - pos).magnitude | |
309 | end | |
310 | end | |
311 | end | |
312 | end | |
313 | return torso | |
314 | end | |
315 | ||
316 | ---------------------------------------------------------------------------- | |
317 | ||
318 | function checkIfNotPlayer(model) | |
319 | if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then | |
320 | return true | |
321 | else | |
322 | return false | |
323 | end | |
324 | end | |
325 | ||
326 | ---------------------------------------------------------------------------- | |
327 | ||
328 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
329 | ||
330 | local wld = Instance.new("Weld", wp1) | |
331 | ||
332 | wld.Part0 = wp0 | |
333 | ||
334 | wld.Part1 = wp1 | |
335 | ||
336 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
337 | ||
338 | return wld | |
339 | ||
340 | end | |
341 | ||
342 | function weld(model) | |
343 | local parts,last = {} | |
344 | local function scan(parent) | |
345 | for _,v in pairs(parent:GetChildren()) do | |
346 | if (v:IsA("BasePart")) then | |
347 | if (last) then | |
348 | local w = Instance.new("Weld") | |
349 | w.Name = ("%s_Weld"):format(v.Name) | |
350 | w.Part0,w.Part1 = last,v | |
351 | w.C0 = last.CFrame:inverse() | |
352 | w.C1 = v.CFrame:inverse() | |
353 | w.Parent = last | |
354 | end | |
355 | last = v | |
356 | table.insert(parts,v) | |
357 | end | |
358 | scan(v) | |
359 | end | |
360 | end | |
361 | scan(model) | |
362 | for _,v in pairs(parts) do | |
363 | v.Anchored = false | |
364 | v.Locked = true | |
365 | v.Anchored = false | |
366 | v.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
367 | v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
368 | v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
369 | v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
370 | v.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
371 | v.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
372 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0) | |
373 | end | |
374 | end | |
375 | ||
376 | ---------------------------------------------------------------------------- | |
377 | ||
378 | function calculate(part,asd) | |
379 | local Head = hed | |
380 | local RightShoulder = asd | |
381 | local RightArm = part | |
382 | local MousePosition = mouse.Hit.p | |
383 | local ToMouse = (MousePosition - Head.Position).unit | |
384 | local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0))) | |
385 | local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0))) | |
386 | local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit | |
387 | local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit | |
388 | local LateralAngle = math.acos(ToMouseRightArm:Dot(Look)) | |
389 | if tostring(LateralAngle) == "-1.#IND" then | |
390 | LateralAngle = 0 | |
391 | end | |
392 | local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm) | |
393 | if LateralAngle > (math.pi / 2) then | |
394 | LateralAngle = (math.pi / 2) | |
395 | local Torso = root | |
396 | local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p) | |
397 | if Point.Z > 0 then | |
398 | if Point.X > -0 and RightArm == rarm then | |
399 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0) | |
400 | elseif Point.X < 0 and RightArm == rarm then | |
401 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0) | |
402 | end | |
403 | end | |
404 | end | |
405 | if Cross.Y < 0 then | |
406 | LateralAngle = -LateralAngle | |
407 | end | |
408 | return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)) | |
409 | end | |
410 | ||
411 | ---------------------------------------------------------------------------- | |
412 | ||
413 | function sound(id,position,vol,pitch,start,finish) | |
414 | coroutine.resume(coroutine.create(function() | |
415 | ||
416 | local part = Instance.new("Part",workspace) | |
417 | part.Position = position | |
418 | part.Size = Vector3.new(0,0,0) | |
419 | part.CanCollide = false | |
420 | part.Transparency = 1 | |
421 | ||
422 | local sound = Instance.new("Sound",part) | |
423 | ||
424 | sound.SoundId = "rbxassetid://"..id | |
425 | ||
426 | repeat rs:wait() until sound.IsLoaded | |
427 | ||
428 | if vol ~= nil then | |
429 | sound.Volume = vol | |
430 | end | |
431 | ||
432 | if pitch ~= nil then | |
433 | sound.PlaybackSpeed = pitch | |
434 | end | |
435 | ||
436 | if start ~= nil then | |
437 | sound.TimePosition = start | |
438 | end | |
439 | ||
440 | if finish ~= nil then | |
441 | debris:AddItem(part,finish-start) | |
442 | else | |
443 | debris:AddItem(part,sound.TimeLength) | |
444 | end | |
445 | ||
446 | sound:Play() | |
447 | ||
448 | return sound | |
449 | ||
450 | end)) | |
451 | end | |
452 | ||
453 | ---------------------------------------------------------------------------- | |
454 | ||
455 | function computeDirection(vec) | |
456 | local lenSquared = vec.magnitude * vec.magnitude | |
457 | local invSqrt = 1 / math.sqrt(lenSquared) | |
458 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
459 | end | |
460 | ||
461 | ---------------------------------------------------------------------------- | |
462 | ||
463 | local shaking = 0 | |
464 | function shake(num) if num > shaking then shaking = num end end | |
465 | game:GetService("RunService").RenderStepped:connect(function() | |
466 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100) | |
467 | if shaking > 0 then shaking = shaking - 1 else shaking = 0 end | |
468 | end) | |
469 | ||
470 | plr = game:GetService("Players").LocalPlayer | |
471 | DebrisModel = Instance.new("Model",plr.Character) | |
472 | DebrisModel.Name = "DebrisModel" | |
473 | ||
474 | function Effect(mesh,size,transparency,material,color,position,rotation,sizechange,rotationchange,transparencychange,acceleration) | |
475 | ||
476 | local part = Instance.new("Part",DebrisModel) | |
477 | part.Anchored = true | |
478 | part.CanCollide = false | |
479 | part.Size = Vector3.new(1,1,1) | |
480 | part.Transparency = transparency | |
481 | part.Material = material | |
482 | part.Color = color | |
483 | part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z)) | |
484 | ||
485 | local partmesh = Instance.new("SpecialMesh",part) | |
486 | if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end | |
487 | partmesh.Scale = size | |
488 | ||
489 | local pvalue = Instance.new("Vector3Value",part) | |
490 | pvalue.Name = "Position" | |
491 | pvalue.Value = part.Position | |
492 | ||
493 | local svalue = Instance.new("Vector3Value",part) | |
494 | svalue.Name = "Size" | |
495 | svalue.Value = sizechange | |
496 | ||
497 | local rvalue = Instance.new("Vector3Value",part) | |
498 | rvalue.Name = "Rotation" | |
499 | rvalue.Value = rotationchange | |
500 | ||
501 | local tvalue = Instance.new("NumberValue",part) | |
502 | tvalue.Name = "Transparency" | |
503 | tvalue.Value = transparencychange | |
504 | ||
505 | local avalue = Instance.new("NumberValue",part) | |
506 | avalue.Name = "Acceleration" | |
507 | avalue.Value = acceleration | |
508 | ||
509 | part.Name = "EFFECT" | |
510 | ||
511 | return part | |
512 | ||
513 | end | |
514 | ||
515 | game:GetService("RunService").RenderStepped:connect(function() | |
516 | ||
517 | ||
518 | if not plr.Character:FindFirstChild("DebrisModel") then | |
519 | DebrisModel = Instance.new("Model",plr.Character) | |
520 | DebrisModel.Name = "DebrisModel" | |
521 | end | |
522 | ||
523 | for i,v in pairs(DebrisModel:GetChildren()) do | |
524 | if v:IsA("BasePart") and v.Name == "EFFECT" then | |
525 | local pvalue = v:FindFirstChild("Position").Value | |
526 | local svalue = v:FindFirstChild("Size").Value | |
527 | local rvalue = v:FindFirstChild("Rotation").Value | |
528 | local tvalue = v:FindFirstChild("Transparency").Value | |
529 | local avalue = v:FindFirstChild("Acceleration").Value | |
530 | local mesh = v:FindFirstChild("Mesh") | |
531 | mesh.Scale = mesh.Scale + svalue | |
532 | v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue) | |
533 | v.Transparency = v.Transparency + tvalue | |
534 | v.CFrame = v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z)) | |
535 | if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then | |
536 | v:Destroy() | |
537 | end | |
538 | end | |
539 | end | |
540 | ||
541 | ||
542 | end) | |
543 | ||
544 | ---------------------------------------------------------------------------- | |
545 | skin_color = BrickColor.new("Light orange") | |
546 | p:ClearCharacterAppearance() | |
547 | --hed:WaitForChild("face"):Destroy() | |
548 | ||
549 | ---------------------------------------------------------------------------- | |
550 | music(540857600) | |
551 | equalizer = Instance.new("EqualizerSoundEffect",torso:FindFirstChild("MusicRuin")) | |
552 | ||
553 | local size = 1 | |
554 | ||
555 | newWeld(torso, larm, -1.5*size, 0.5*size, 0) | |
556 | larm.Weld.C1 = CFrame.new(0, 0.5*size, 0) | |
557 | newWeld(torso, rarm, 1.5*size, 0.5*size, 0) | |
558 | rarm.Weld.C1 = CFrame.new(0, 0.5*size, 0) | |
559 | newWeld(torso, hed, 0, 1.5*size, 0) | |
560 | newWeld(torso, lleg, -0.5*size, -1, 0) | |
561 | lleg.Weld.C1 = CFrame.new(0, 1*size, 0) | |
562 | newWeld(torso, rleg, 0.5*size, -1*size, 0) | |
563 | rleg.Weld.C1 = CFrame.new(0, 1*size, 0) | |
564 | newWeld(root, torso, 0, -1*size, 0) | |
565 | torso.Weld.C1 = CFrame.new(0, -1*size, 0) | |
566 | ||
567 | emitters={} | |
568 | for i,v in pairs(char:GetChildren()) do | |
569 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then | |
570 | local emitter = Instance.new("ParticleEmitter",v) | |
571 | emitter.LightEmission = 1 | |
572 | emitter.Transparency = NumberSequence.new(0.95,1) | |
573 | emitter.Size = NumberSequence.new(2,5) | |
574 | emitter.SpreadAngle = Vector2.new(360,360) | |
575 | emitter.Speed = NumberRange.new(1) | |
576 | emitter.Lifetime = NumberRange.new(0.75) | |
577 | emitter.Texture = "rbxassetid://133619974" | |
578 | emitter.Rate = 20 | |
579 | emitter.Color = ColorSequence.new(Color3.new(1,0,0)) | |
580 | emitter.LockedToPart = true | |
581 | table.insert(emitters,emitter) | |
582 | end | |
583 | end | |
584 | ---------------------------------------------------------------------------------------- | |
585 | hair = Instance.new("Part",char) | |
586 | hair.Color = Color3.fromRGB(30,10,0) | |
587 | hair.CanCollide = false | |
588 | meshhair = Instance.new("SpecialMesh",hair) | |
589 | meshhair.MeshId = "rbxassetid://431809364" | |
590 | meshhair.Scale = Vector3.new(1,1,1)*1.1 | |
591 | newWeld(hed,hair,0,0.22,0) | |
592 | ||
593 | Model0 = Instance.new("Model") | |
594 | Part1 = Instance.new("Part") | |
595 | Part2 = Instance.new("Part") | |
596 | Part3 = Instance.new("Part") | |
597 | Part4 = Instance.new("Part") | |
598 | Part5 = Instance.new("Part") | |
599 | Part6 = Instance.new("Part") | |
600 | Part7 = Instance.new("Part") | |
601 | Model0.Parent = char | |
602 | Part1.Parent = Model0 | |
603 | Part1.Anchored = true | |
604 | Part1.CanCollide = false | |
605 | Part1.Size = Vector3.new(2.02000022, 0.370000094, 1.01999998) | |
606 | Part1.CFrame = CFrame.new(87.5, 17.1749992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
607 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
608 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
609 | Part1.Position = Vector3.new(87.5, 17.1749992, 83.5) | |
610 | Part1.Color = Color3.new(0, 1, 0) | |
611 | Part2.Parent = Model0 | |
612 | Part2.Anchored = true | |
613 | Part2.CanCollide = false | |
614 | Part2.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983) | |
615 | Part2.CFrame = CFrame.new(88.0500031, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
616 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
617 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
618 | Part2.Position = Vector3.new(88.0500031, 18.9549999, 83.2799988) | |
619 | Part2.Color = Color3.new(0, 1, 0) | |
620 | Part3.Parent = Model0 | |
621 | Part3.Anchored = true | |
622 | Part3.CanCollide = false | |
623 | Part3.Size = Vector3.new(2.02000022, 0.590000093, 1.01999998) | |
624 | Part3.CFrame = CFrame.new(87.5, 17.6550007, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
625 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
626 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
627 | Part3.Position = Vector3.new(87.5, 17.6550007, 83.5) | |
628 | Part3.Color = Color3.new(0.992157, 0.917647, 0.552941) | |
629 | Part4.Parent = Model0 | |
630 | Part4.Anchored = true | |
631 | Part4.CanCollide = false | |
632 | Part4.Size = Vector3.new(2.02000022, 0.110000037, 0.439999968) | |
633 | Part4.CFrame = CFrame.new(87.5, 18.9549999, 83.7900009, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
634 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
635 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
636 | Part4.Position = Vector3.new(87.5, 18.9549999, 83.7900009) | |
637 | Part4.Color = Color3.new(0, 1, 0) | |
638 | Part5.Parent = Model0 | |
639 | Part5.Anchored = true | |
640 | Part5.CanCollide = false | |
641 | Part5.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983) | |
642 | Part5.CFrame = CFrame.new(86.9499969, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
643 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
644 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
645 | Part5.Position = Vector3.new(86.9499969, 18.9549999, 83.2799988) | |
646 | Part5.Color = Color3.new(0, 1, 0) | |
647 | Part6.Name = "asd" | |
648 | Part6.Parent = Model0 | |
649 | Part6.Transparency = 1 | |
650 | Part6.Anchored = true | |
651 | Part6.CanCollide = false | |
652 | Part6.Size = Vector3.new(2, 2, 1) | |
653 | Part6.CFrame = CFrame.new(87.5, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
654 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
655 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
656 | Part6.Position = Vector3.new(87.5, 18, 83.5) | |
657 | Part7.Parent = Model0 | |
658 | Part7.Anchored = true | |
659 | Part7.CanCollide = false | |
660 | Part7.Size = Vector3.new(2.02000022, 0.949999988, 1.01999998) | |
661 | Part7.CFrame = CFrame.new(87.5, 18.4249992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
662 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
663 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
664 | Part7.Position = Vector3.new(87.5, 18.4249992, 83.5) | |
665 | Part7.Color = Color3.new(0, 1, 0) | |
666 | weld(Model0) | |
667 | newWeld(torso,Model0.asd) | |
668 | ||
669 | Model0 = Instance.new("Model") | |
670 | Part1 = Instance.new("Part") | |
671 | Part2 = Instance.new("Part") | |
672 | Model0.Parent = char | |
673 | Part1.Parent = Model0 | |
674 | Part1.Anchored = true | |
675 | Part1.CanCollide = false | |
676 | Part1.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998) | |
677 | Part1.CFrame = CFrame.new(49.5, 18.0999985, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
678 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
679 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
680 | Part1.Position = Vector3.new(49.5, 18.0999985, 83.5) | |
681 | Part1.Color = Color3.new(0, 1, 0) | |
682 | Part2.Name = "asd" | |
683 | Part2.Parent = Model0 | |
684 | Part2.Transparency = 1 | |
685 | Part2.Anchored = true | |
686 | Part2.CanCollide = false | |
687 | Part2.Size = Vector3.new(1, 2, 1) | |
688 | Part2.CFrame = CFrame.new(49.5, 18.0450001, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
689 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
690 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
691 | Part2.Position = Vector3.new(49.5, 18.0450001, 83.5) | |
692 | weld(Model0) | |
693 | Model1=Model0:Clone() | |
694 | Model1.Parent=char | |
695 | newWeld(larm,Model0.asd,0,0,0) | |
696 | newWeld(rarm,Model1.asd,0,0,0) | |
697 | ||
698 | Model0 = Instance.new("Model") | |
699 | Part1 = Instance.new("Part") | |
700 | Part2 = Instance.new("Part") | |
701 | Part3 = Instance.new("Part") | |
702 | Model0.Parent = char | |
703 | Part1.Parent = Model0 | |
704 | Part1.Anchored = true | |
705 | Part1.CanCollide = false | |
706 | Part1.Size = Vector3.new(1.03999996, 0.27000007, 1.03999996) | |
707 | Part1.CFrame = CFrame.new(28, 17.125, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
708 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
709 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
710 | Part1.Position = Vector3.new(28, 17.125, 83.5) | |
711 | Part1.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
712 | Part2.Parent = Model0 | |
713 | Part2.Anchored = true | |
714 | Part2.CanCollide = false | |
715 | Part2.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998) | |
716 | Part2.CFrame = CFrame.new(28, 18.0550003, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
717 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
718 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
719 | Part2.Position = Vector3.new(28, 18.0550003, 83.5) | |
720 | Part2.Color = Color3.new(0.411765, 0.25098, 0.156863) | |
721 | Part3.Name = "asd" | |
722 | Part3.Parent = Model0 | |
723 | Part3.Transparency = 1 | |
724 | Part3.Anchored = true | |
725 | Part3.CanCollide = false | |
726 | Part3.Size = Vector3.new(1, 2, 1) | |
727 | Part3.CFrame = CFrame.new(28, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
728 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
729 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
730 | Part3.Position = Vector3.new(28, 18, 83.5) | |
731 | weld(Model0) | |
732 | Model1=Model0:Clone() | |
733 | Model1.Parent=char | |
734 | newWeld(lleg,Model0.asd,0,0,0) | |
735 | newWeld(rleg,Model1.asd,0,0,0) | |
736 | ||
737 | ---------------------------------------------------------------------------- | |
738 | HitBox = Instance.new("Part",DebrisModel) | |
739 | HitBox.Size = Vector3.new(0.5,0.5,2.45) | |
740 | HitBox.CanCollide = false | |
741 | HitBox:BreakJoints() | |
742 | HitBox.Transparency = 1 | |
743 | newWeld(rarm,HitBox,0,-0.95,-1.9) | |
744 | atch0 = Instance.new("Attachment",HitBox) | |
745 | atch0.Position = Vector3.new(0,0,HitBox.Size.Z/2) | |
746 | atch1 = Instance.new("Attachment",HitBox) | |
747 | atch1.Position = Vector3.new(0,0,-HitBox.Size.Z/2) | |
748 | trail = Instance.new("Trail",HitBox) | |
749 | trail.Attachment0 = atch0 | |
750 | trail.Attachment1 = atch1 | |
751 | trail.Lifetime = 0.2 | |
752 | trail.Enabled = true | |
753 | trail.LightEmission = 1 | |
754 | trail.LightInfluence = 0 | |
755 | trail.Color = ColorSequence.new(Color3.new(1,0,0)) | |
756 | trail.Transparency = NumberSequence.new(0,1) | |
757 | ||
758 | function ded(model) | |
759 | kills = kills + 1 | |
760 | model.Archivable = true | |
761 | model.Head:ClearAllChildren() | |
762 | local clone = model:Clone() | |
763 | clone.Parent = workspace | |
764 | clone.Name = "DED" | |
765 | model:Destroy() | |
766 | clone:FindFirstChildOfClass("Humanoid"):Destroy() | |
767 | local emitters={} | |
768 | for i,v in pairs(clone:GetChildren()) do | |
769 | if v:IsA("Accoutrement") then | |
770 | v:Destroy() | |
771 | end | |
772 | if v:IsA("Part") then | |
773 | v.Anchored = true | |
774 | v.CanCollide = false | |
775 | v.Transparency = 1 | |
776 | local emitter = Instance.new("ParticleEmitter",v) | |
777 | emitter.LightEmission = 1 | |
778 | emitter.Transparency = NumberSequence.new(0,1) | |
779 | emitter.Size = NumberSequence.new(0,0.8) | |
780 | emitter.SpreadAngle = Vector2.new(360,360) | |
781 | emitter.Speed = NumberRange.new(0.5) | |
782 | emitter.Lifetime = NumberRange.new(0.75) | |
783 | emitter.Texture = "rbxassetid://744949545" | |
784 | emitter.Rate = 20 | |
785 | emitter.Color = ColorSequence.new(Color3.new(1,1,1)) | |
786 | emitter.LockedToPart = false | |
787 | table.insert(emitters,emitter) | |
788 | end | |
789 | end | |
790 | delay(1, function() | |
791 | sound(427025525,clone.Head.Position,10,1) | |
792 | for i,v in pairs(emitters) do | |
793 | v.Speed = NumberRange.new(4) | |
794 | v.Acceleration = Vector3.new(0,10,0) | |
795 | delay(0.5, function() | |
796 | v.Enabled = false | |
797 | debris:AddItem(clone,0.75) | |
798 | end) | |
799 | end | |
800 | end) | |
801 | end | |
802 | ||
803 | local alreadytouched = {} | |
804 | HitBox.Touched:connect(function(ht) | |
805 | coroutine.resume(coroutine.create(function() | |
806 | local hit = ht.Parent | |
807 | if mode == "determination" and hit.Name ~= "DED" and attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then | |
808 | local hurt = true | |
809 | for i,v in pairs(alreadytouched) do if v == hit then hurt = false end end | |
810 | if hurt == true then | |
811 | table.insert(alreadytouched,hit) | |
812 | sound(388826051,ht.Position,10,1) | |
813 | ded(hit) | |
814 | end | |
815 | end | |
816 | end)) | |
817 | end) | |
818 | ||
819 | function createknife() | |
820 | Model0 = Instance.new("Model") | |
821 | Part1 = Instance.new("Part") | |
822 | BlockMesh2 = Instance.new("BlockMesh") | |
823 | Part3 = Instance.new("Part") | |
824 | BlockMesh4 = Instance.new("BlockMesh") | |
825 | Part5 = Instance.new("Part") | |
826 | Part6 = Instance.new("Part") | |
827 | BlockMesh7 = Instance.new("BlockMesh") | |
828 | Part8 = Instance.new("Part") | |
829 | Part9 = Instance.new("Part") | |
830 | Part10 = Instance.new("Part") | |
831 | SpecialMesh11 = Instance.new("SpecialMesh") | |
832 | Part12 = Instance.new("Part") | |
833 | Model0.Parent = char | |
834 | Part1.Parent = Model0 | |
835 | Part1.Anchored = true | |
836 | Part1.CanCollide = false | |
837 | Part1.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007) | |
838 | Part1.CFrame = CFrame.new(49.5, 20.7350044, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
839 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
840 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
841 | Part1.Position = Vector3.new(49.5, 20.7350044, 52.3199997) | |
842 | Part1.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
843 | BlockMesh2.Parent = Part1 | |
844 | BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
845 | BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
846 | Part3.Parent = Model0 | |
847 | Part3.Anchored = true | |
848 | Part3.CanCollide = false | |
849 | Part3.Size = Vector3.new(0.220000014, 0.0500000007, 0.0500000007) | |
850 | Part3.CFrame = CFrame.new(49.5, 20.6250038, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
851 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
852 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
853 | Part3.Position = Vector3.new(49.5, 20.6250038, 53.6199989) | |
854 | Part3.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
855 | BlockMesh4.Parent = Part3 | |
856 | BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
857 | BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
858 | Part5.Parent = Model0 | |
859 | Part5.Anchored = true | |
860 | Part5.CanCollide = false | |
861 | Part5.Size = Vector3.new(0.159999996, 0.400000006, 1.70000005) | |
862 | Part5.CFrame = CFrame.new(49.5, 20.5750046, 51.4300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
863 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
864 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
865 | Part5.Position = Vector3.new(49.5, 20.5750046, 51.4300003) | |
866 | Part5.Color = Color3.new(1, 0, 0) | |
867 | Part6.Parent = Model0 | |
868 | Part6.Anchored = true | |
869 | Part6.CanCollide = false | |
870 | Part6.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007) | |
871 | Part6.CFrame = CFrame.new(49.5, 20.4150047, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
872 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
873 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
874 | Part6.Position = Vector3.new(49.5, 20.4150047, 52.3199997) | |
875 | Part6.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
876 | BlockMesh7.Parent = Part6 | |
877 | BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
878 | BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781) | |
879 | Part8.Name = "asd" | |
880 | Part8.Parent = Model0 | |
881 | Part8.Anchored = true | |
882 | Part8.CanCollide = false | |
883 | Part8.Size = Vector3.new(0.200000003, 0.200000003, 1.30000007) | |
884 | Part8.CFrame = CFrame.new(49.5, 20.6250038, 52.9300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
885 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
886 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
887 | Part8.Position = Vector3.new(49.5, 20.6250038, 52.9300003) | |
888 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
889 | Part9.Parent = Model0 | |
890 | Part9.Anchored = true | |
891 | Part9.CanCollide = false | |
892 | Part9.Size = Vector3.new(0.200000003, 0.25999999, 0.100000039) | |
893 | Part9.CFrame = CFrame.new(49.5, 20.595005, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
894 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
895 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
896 | Part9.Position = Vector3.new(49.5, 20.595005, 53.6199989) | |
897 | Part9.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
898 | Part10.Parent = Model0 | |
899 | Part10.Rotation = Vector3.new(0, 0, 180) | |
900 | Part10.Anchored = true | |
901 | Part10.CanCollide = false | |
902 | Part10.Size = Vector3.new(0.159999996, 0.400000006, 0.800000012) | |
903 | Part10.CFrame = CFrame.new(49.5, 20.5750046, 50.1800003, -0.99999994, -8.74227766e-08, 3.82137093e-15, 8.74227695e-08, -1, 3.17865059e-08, 1.04250613e-15, 3.17865059e-08, 1) | |
904 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
905 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
906 | Part10.Position = Vector3.new(49.5, 20.5750046, 50.1800003) | |
907 | Part10.Color = Color3.new(1, 0, 0) | |
908 | SpecialMesh11.Parent = Part10 | |
909 | SpecialMesh11.MeshType = Enum.MeshType.Wedge | |
910 | Part12.Parent = Model0 | |
911 | Part12.Anchored = true | |
912 | Part12.CanCollide = false | |
913 | Part12.Size = Vector3.new(0.25999999, 0.460000008, 0.100000039) | |
914 | Part12.CFrame = CFrame.new(49.5, 20.5750046, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1) | |
915 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
916 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
917 | Part12.Position = Vector3.new(49.5, 20.5750046, 52.3199997) | |
918 | Part12.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
919 | weld(Model0) | |
920 | for i,v in pairs(Model0:GetChildren()) do | |
921 | if v:IsA("Part") and v.Color == Color3.new(1,0,0) then | |
922 | v.Material = Enum.Material.Neon | |
923 | end | |
924 | end | |
925 | return Model0 | |
926 | end | |
927 | ||
928 | knife = createknife() | |
929 | newWeld(rarm,knife.asd,0,-1,0) | |
930 | ||
931 | ---------------------------------------------------------------------------------------- | |
932 | ||
933 | function createpistol() | |
934 | Model0 = Instance.new("Model") | |
935 | Part1 = Instance.new("Part") | |
936 | BlockMesh2 = Instance.new("BlockMesh") | |
937 | Part3 = Instance.new("Part") | |
938 | Part4 = Instance.new("Part") | |
939 | Part5 = Instance.new("Part") | |
940 | Part6 = Instance.new("Part") | |
941 | Part7 = Instance.new("Part") | |
942 | Part8 = Instance.new("Part") | |
943 | Part9 = Instance.new("Part") | |
944 | Part10 = Instance.new("Part") | |
945 | Part11 = Instance.new("Part") | |
946 | Part12 = Instance.new("Part") | |
947 | Part13 = Instance.new("Part") | |
948 | Part14 = Instance.new("Part") | |
949 | Part15 = Instance.new("Part") | |
950 | Part16 = Instance.new("Part") | |
951 | Part17 = Instance.new("Part") | |
952 | Part18 = Instance.new("Part") | |
953 | Part19 = Instance.new("Part") | |
954 | Model0.Name = "Pistol" | |
955 | Model0.Parent = char | |
956 | Part1.Name = "ShootPos" | |
957 | Part1.Parent = Model0 | |
958 | Part1.BrickColor = BrickColor.new("Really black") | |
959 | Part1.Anchored = true | |
960 | Part1.CanCollide = false | |
961 | Part1.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007) | |
962 | Part1.CFrame = CFrame.new(-90, 10.5000019, 13.8957434, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
963 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
964 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
965 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
966 | Part1.Position = Vector3.new(-90, 10.5000019, 13.8957434) | |
967 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
968 | BlockMesh2.Parent = Part1 | |
969 | BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988) | |
970 | BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988) | |
971 | Part3.Parent = Model0 | |
972 | Part3.BrickColor = BrickColor.new("Pearl") | |
973 | Part3.Anchored = true | |
974 | Part3.CanCollide = false | |
975 | Part3.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007) | |
976 | Part3.CFrame = CFrame.new(-90.0999985, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
977 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
978 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
979 | Part3.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
980 | Part3.Position = Vector3.new(-90.0999985, 10.3750019, 13.8757429) | |
981 | Part3.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
982 | Part4.Parent = Model0 | |
983 | Part4.BrickColor = BrickColor.new("Pearl") | |
984 | Part4.Anchored = true | |
985 | Part4.CanCollide = false | |
986 | Part4.Size = Vector3.new(0.300000012, 0.349999994, 0.0500000007) | |
987 | Part4.CFrame = CFrame.new(-90, 10.2750025, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
988 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
989 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
990 | Part4.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
991 | Part4.Position = Vector3.new(-90, 10.2750025, 13.8757429) | |
992 | Part4.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
993 | Part5.Parent = Model0 | |
994 | Part5.BrickColor = BrickColor.new("Pearl") | |
995 | Part5.Rotation = Vector3.new(15, 0, 0) | |
996 | Part5.Anchored = true | |
997 | Part5.CanCollide = false | |
998 | Part5.Size = Vector3.new(0.200000003, 0.25, 0.150000006) | |
999 | Part5.CFrame = CFrame.new(-90, 10.4379425, 15.8274469, 1, 0, 0, 0, 0.965925753, -0.258819252, 0, 0.258819252, 0.965925753) | |
1000 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
1001 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
1002 | Part5.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1003 | Part5.Position = Vector3.new(-90, 10.4379425, 15.8274469) | |
1004 | Part5.Orientation = Vector3.new(15, 0, 0) | |
1005 | Part5.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1006 | Part6.Parent = Model0 | |
1007 | Part6.BrickColor = BrickColor.new("Pearl") | |
1008 | Part6.Anchored = true | |
1009 | Part6.CanCollide = false | |
1010 | Part6.Size = Vector3.new(0.300000012, 0.550000012, 1.89999998) | |
1011 | Part6.CFrame = CFrame.new(-90, 10.3750019, 14.8507433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1012 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
1013 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
1014 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1015 | Part6.Position = Vector3.new(-90, 10.3750019, 14.8507433) | |
1016 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1017 | Part7.Parent = Model0 | |
1018 | Part7.BrickColor = BrickColor.new("Pearl") | |
1019 | Part7.Anchored = true | |
1020 | Part7.CanCollide = false | |
1021 | Part7.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
1022 | Part7.CFrame = CFrame.new(-90.0999985, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1023 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
1024 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
1025 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1026 | Part7.Position = Vector3.new(-90.0999985, 10.6750021, 15.6257429) | |
1027 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1028 | Part8.Parent = Model0 | |
1029 | Part8.BrickColor = BrickColor.new("Black") | |
1030 | Part8.Rotation = Vector3.new(-15, 0, 0) | |
1031 | Part8.Anchored = true | |
1032 | Part8.CanCollide = false | |
1033 | Part8.Size = Vector3.new(0.220000014, 0.5, 0.209999993) | |
1034 | Part8.CFrame = CFrame.new(-90, 9.71499538, 15.4898481, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872) | |
1035 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
1036 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
1037 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1038 | Part8.Position = Vector3.new(-90, 9.71499538, 15.4898481) | |
1039 | Part8.Orientation = Vector3.new(-15, 0, 0) | |
1040 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1041 | Part9.Parent = Model0 | |
1042 | Part9.BrickColor = BrickColor.new("Pearl") | |
1043 | Part9.Anchored = true | |
1044 | Part9.CanCollide = false | |
1045 | Part9.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007) | |
1046 | Part9.CFrame = CFrame.new(-89.9000015, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1047 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
1048 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
1049 | Part9.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1050 | Part9.Position = Vector3.new(-89.9000015, 10.3750019, 13.8757429) | |
1051 | Part9.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1052 | Part10.Parent = Model0 | |
1053 | Part10.BrickColor = BrickColor.new("Pearl") | |
1054 | Part10.Anchored = true | |
1055 | Part10.CanCollide = false | |
1056 | Part10.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
1057 | Part10.CFrame = CFrame.new(-89.9000015, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1058 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
1059 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
1060 | Part10.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1061 | Part10.Position = Vector3.new(-89.9000015, 10.6750021, 15.6257429) | |
1062 | Part10.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1063 | Part11.Parent = Model0 | |
1064 | Part11.BrickColor = BrickColor.new("Pearl") | |
1065 | Part11.Anchored = true | |
1066 | Part11.CanCollide = false | |
1067 | Part11.Size = Vector3.new(0.200000003, 0.150000006, 0.600000024) | |
1068 | Part11.CFrame = CFrame.new(-90, 9.37500191, 15.6007433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1069 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
1070 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
1071 | Part11.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1072 | Part11.Position = Vector3.new(-90, 9.37500191, 15.6007433) | |
1073 | Part11.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1074 | Part12.Parent = Model0 | |
1075 | Part12.BrickColor = BrickColor.new("Pearl") | |
1076 | Part12.Rotation = Vector3.new(-30, 0, 0) | |
1077 | Part12.Anchored = true | |
1078 | Part12.CanCollide = false | |
1079 | Part12.Size = Vector3.new(0.100000001, 0.150000006, 0.0500000007) | |
1080 | Part12.CFrame = CFrame.new(-90, 9.97165203, 15.1132431, 1, 0, 0, 0, 0.866025448, 0.5, 0, -0.5, 0.866025448) | |
1081 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
1082 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
1083 | Part12.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1084 | Part12.Position = Vector3.new(-90, 9.97165203, 15.1132431) | |
1085 | Part12.Orientation = Vector3.new(-30, 0, 0) | |
1086 | Part12.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1087 | Part13.Parent = Model0 | |
1088 | Part13.BrickColor = BrickColor.new("Pearl") | |
1089 | Part13.Anchored = true | |
1090 | Part13.CanCollide = false | |
1091 | Part13.Size = Vector3.new(0.300000012, 0.100000001, 0.0500000007) | |
1092 | Part13.CFrame = CFrame.new(-90, 10.6000023, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1093 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
1094 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
1095 | Part13.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1096 | Part13.Position = Vector3.new(-90, 10.6000023, 13.8757429) | |
1097 | Part13.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1098 | Part14.Parent = Model0 | |
1099 | Part14.BrickColor = BrickColor.new("Pearl") | |
1100 | Part14.Rotation = Vector3.new(-30, 0, 0) | |
1101 | Part14.Anchored = true | |
1102 | Part14.CanCollide = false | |
1103 | Part14.Size = Vector3.new(0.200000003, 0.100000001, 0.25) | |
1104 | Part14.CFrame = CFrame.new(-90, 10.5216522, 15.9065447, 1, 0, 0, 0, 0.866025329, 0.49999997, 0, -0.49999997, 0.866025329) | |
1105 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
1106 | Part14.TopSurface = Enum.SurfaceType.Smooth | |
1107 | Part14.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1108 | Part14.Position = Vector3.new(-90, 10.5216522, 15.9065447) | |
1109 | Part14.Orientation = Vector3.new(-30, 0, 0) | |
1110 | Part14.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1111 | Part15.Parent = Model0 | |
1112 | Part15.BrickColor = BrickColor.new("White") | |
1113 | Part15.Rotation = Vector3.new(-105, 0, 0) | |
1114 | Part15.Anchored = true | |
1115 | Part15.CanCollide = false | |
1116 | Part15.Size = Vector3.new(0.100000001, 0.200000003, 0.0500000007) | |
1117 | Part15.CFrame = CFrame.new(-90, 9.92812252, 15.2373915, 1, 0, 0, 0, -0.258819371, 0.965925813, 0, -0.965925813, -0.258819371) | |
1118 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
1119 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
1120 | Part15.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
1121 | Part15.Position = Vector3.new(-90, 9.92812252, 15.2373915) | |
1122 | Part15.Orientation = Vector3.new(-75, 180, 180) | |
1123 | Part15.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
1124 | Part16.Name = "asd" | |
1125 | Part16.Parent = Model0 | |
1126 | Part16.BrickColor = BrickColor.new("Pearl") | |
1127 | Part16.Rotation = Vector3.new(-15, 0, 0) | |
1128 | Part16.Anchored = true | |
1129 | Part16.CanCollide = false | |
1130 | Part16.Size = Vector3.new(0.200000003, 1.14999998, 0.400000006) | |
1131 | Part16.CFrame = CFrame.new(-90, 9.93709087, 15.5425692, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872) | |
1132 | Part16.BottomSurface = Enum.SurfaceType.Smooth | |
1133 | Part16.TopSurface = Enum.SurfaceType.Smooth | |
1134 | Part16.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1135 | Part16.Position = Vector3.new(-90, 9.93709087, 15.5425692) | |
1136 | Part16.Orientation = Vector3.new(-15, 0, 0) | |
1137 | Part16.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1138 | Part17.Parent = Model0 | |
1139 | Part17.BrickColor = BrickColor.new("Pearl") | |
1140 | Part17.Anchored = true | |
1141 | Part17.CanCollide = false | |
1142 | Part17.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007) | |
1143 | Part17.CFrame = CFrame.new(-90, 10.0500021, 15.0757437, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1144 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
1145 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
1146 | Part17.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1147 | Part17.Position = Vector3.new(-90, 10.0500021, 15.0757437) | |
1148 | Part17.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1149 | Part18.Parent = Model0 | |
1150 | Part18.BrickColor = BrickColor.new("Pearl") | |
1151 | Part18.Anchored = true | |
1152 | Part18.CanCollide = false | |
1153 | Part18.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007) | |
1154 | Part18.CFrame = CFrame.new(-90, 10.6750021, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1155 | Part18.BottomSurface = Enum.SurfaceType.Smooth | |
1156 | Part18.TopSurface = Enum.SurfaceType.Smooth | |
1157 | Part18.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1158 | Part18.Position = Vector3.new(-90, 10.6750021, 13.8757429) | |
1159 | Part18.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1160 | Part19.Parent = Model0 | |
1161 | Part19.BrickColor = BrickColor.new("Pearl") | |
1162 | Part19.Anchored = true | |
1163 | Part19.CanCollide = false | |
1164 | Part19.Size = Vector3.new(0.400000006, 0.200000003, 1.05000007) | |
1165 | Part19.CFrame = CFrame.new(-90, 10.1500015, 14.4757433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1) | |
1166 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
1167 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
1168 | Part19.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1169 | Part19.Position = Vector3.new(-90, 10.1500015, 14.4757433) | |
1170 | Part19.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
1171 | for i,v in pairs(Model0:GetChildren()) do | |
1172 | if v:IsA("Part") then | |
1173 | v.Color = Color3.new(1,1,0) | |
1174 | v.Material = Enum.Material.Neon | |
1175 | v.Transparency = 0 | |
1176 | v.CanCollide = false | |
1177 | end | |
1178 | end | |
1179 | weld(Model0) | |
1180 | return Model0 | |
1181 | end | |
1182 | ||
1183 | mode = "determination" | |
1184 | function justice() | |
1185 | mode = "justice" | |
1186 | for i=1,5 do rs:wait() | |
1187 | local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000) | |
1188 | Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(1,1,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005) | |
1189 | end | |
1190 | knife:Destroy() | |
1191 | pistol = createpistol() | |
1192 | newWeld(rarm,pistol.asd,0,-1,0) | |
1193 | pistol.asd.Weld.C1 = CFrame.Angles(math.rad(110),0,0) | |
1194 | end | |
1195 | ||
1196 | function determination() | |
1197 | mode = "determination" | |
1198 | for i=1,5 do rs:wait() | |
1199 | local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000) | |
1200 | Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(1,0,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005) | |
1201 | end | |
1202 | pistol:Destroy() | |
1203 | knife = createknife() | |
1204 | newWeld(rarm,knife.asd,0,-1,0) | |
1205 | end | |
1206 | ||
1207 | debounce = false | |
1208 | mouse.KeyDown:connect(function(key) | |
1209 | if debounce == false then | |
1210 | debounce = true | |
1211 | if key == "e" then | |
1212 | sound(462606062,root.Position,10,1) | |
1213 | if mode == "determination" then | |
1214 | justice() | |
1215 | elseif mode == "justice" then | |
1216 | determination() | |
1217 | end | |
1218 | end | |
1219 | delay(0.3,function() debounce = false end) | |
1220 | end | |
1221 | end) | |
1222 | ||
1223 | ---------------------------------------------------------------------------------------- | |
1224 | ||
1225 | function slash() | |
1226 | local spd = 0.2 | |
1227 | for i=1,15 do rs:wait() | |
1228 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1229 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), spd) | |
1230 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), spd) | |
1231 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), spd) | |
1232 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(-50),math.rad(10)), spd) | |
1233 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(-10)), spd) | |
1234 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1235 | end | |
1236 | sound(357417055,root.Position,10,1) | |
1237 | attacking = true | |
1238 | local spd = 0.4 | |
1239 | for i=1,5 do rs:wait() | |
1240 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1241 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(0)), spd) | |
1242 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), spd) | |
1243 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), spd) | |
1244 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(-20)), spd) | |
1245 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1246 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-80),math.rad(20)), spd) | |
1247 | end | |
1248 | end | |
1249 | ||
1250 | mouse.Button1Down:connect(function() | |
1251 | if debounce == false and mode == "determination" then | |
1252 | alreadytouched = {} | |
1253 | noidle = true | |
1254 | debounce = true | |
1255 | slash() | |
1256 | attacking = false | |
1257 | noidle = false | |
1258 | delay(0.05,function() debounce = false end) | |
1259 | end | |
1260 | end) | |
1261 | ||
1262 | ----------------------------- | |
1263 | local jumped = false | |
1264 | function boom() | |
1265 | freeze = true | |
1266 | sound(446961725,root.Position,10,1) | |
1267 | local bg = Instance.new("BodyGyro",root) | |
1268 | bg.Name = "lolnochara" | |
1269 | bg.P = 10000 | |
1270 | bg.D = 100 | |
1271 | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) | |
1272 | if jumped == false then | |
1273 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1274 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1275 | else | |
1276 | root.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1277 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1278 | end | |
1279 | ||
1280 | local spd = 0.2 | |
1281 | for i=1,20 do rs:wait() | |
1282 | if jumped == false then | |
1283 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1284 | else | |
1285 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1286 | end | |
1287 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1288 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
1289 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1290 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(0),math.rad(90)), spd) | |
1291 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
1292 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd) | |
1293 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd) | |
1294 | end | |
1295 | ||
1296 | bg:Destroy() | |
1297 | ||
1298 | sound(470245800,root.Position,10,1) | |
1299 | ||
1300 | local Part0 = Instance.new("Part",DebrisModel) | |
1301 | Part0.Name = "Bullet" | |
1302 | Part0.Material = Enum.Material.Neon | |
1303 | Part0.Color = Color3.new(1,1,0) | |
1304 | Part0.Anchored = true | |
1305 | local mesh = Instance.new("SpecialMesh",Part0) | |
1306 | mesh.MeshType = Enum.MeshType.Brick | |
1307 | Part0.CanCollide = false | |
1308 | local Position = rarm.Position | |
1309 | local Target = mouse.Hit.p | |
1310 | local direction = Target - Position | |
1311 | local direction = computeDirection(direction) | |
1312 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
1313 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
1314 | Part0.Size = Vector3.new(5,1,5) | |
1315 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude+5,1) | |
1316 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
1317 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
1318 | local loop = nil | |
1319 | local i = 0 | |
1320 | rs:connect(function() | |
1321 | local lole = (i/10) | |
1322 | mesh.Scale = Vector3.new(lole,mesh.Scale.Y,lole) | |
1323 | Part0.Transparency = Part0.Transparency + 0.1 | |
1324 | i = i + 1 | |
1325 | if Part0.Transparency >= 1 then | |
1326 | Part0:Destroy() | |
1327 | end | |
1328 | end) | |
1329 | ||
1330 | if part and part.Parent:FindFirstChildOfClass("Humanoid") and checkIfNotPlayer(part) == true then | |
1331 | coroutine.resume(coroutine.create(function() | |
1332 | sound(388826051,part.Position,10,1) | |
1333 | ded(part.Parent) | |
1334 | end)) | |
1335 | end | |
1336 | ||
1337 | local spd = 0.5 | |
1338 | for i=1,10 do rs:wait() | |
1339 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1340 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
1341 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1342 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(40),math.rad(90)), spd) | |
1343 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd) | |
1344 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd) | |
1345 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd) | |
1346 | end | |
1347 | ||
1348 | freeze = false | |
1349 | ||
1350 | end | |
1351 | ||
1352 | mouse.Button1Down:connect(function() | |
1353 | if debounce == false and mode == "justice" then | |
1354 | alreadytouched = {} | |
1355 | noidle = true | |
1356 | debounce = true | |
1357 | boom() | |
1358 | attacking = false | |
1359 | noidle = false | |
1360 | delay(0.05,function() debounce = false end) | |
1361 | end | |
1362 | end) | |
1363 | ||
1364 | ---------------------------------------------------------------------------------------- | |
1365 | velocityYFall=0 | |
1366 | velocityYFall2=0 | |
1367 | velocityYFall3=0 | |
1368 | velocityYFall4=0 | |
1369 | neckrotY=0 | |
1370 | neckrotY2=0 | |
1371 | torsorotY=0 | |
1372 | torsorotY2=0 | |
1373 | torsoY=0 | |
1374 | torsoY2=0 | |
1375 | colored = 0 | |
1376 | sine = 0 | |
1377 | change=0.4 | |
1378 | movement=5 | |
1379 | timeranim=0 | |
1380 | running = false | |
1381 | glitched = false | |
1382 | backup = hed.Weld.C1 | |
1383 | glitchedC1 = hed.Weld.C1 | |
1384 | ||
1385 | mouse.KeyDown:connect(function(key) | |
1386 | key = string.lower(key) | |
1387 | if string.byte(key) == 48 then | |
1388 | running = true | |
1389 | local keyup = mouse.KeyUp:connect(function(key) | |
1390 | if string.byte(key) == 48 then | |
1391 | running = false | |
1392 | end | |
1393 | end) | |
1394 | repeat rs:wait() until running == false | |
1395 | keyup:disconnect() | |
1396 | end | |
1397 | end) | |
1398 | ||
1399 | icolor=1 | |
1400 | imode=false | |
1401 | ||
1402 | didjump = false | |
1403 | jumppower = 0 | |
1404 | freeze = false | |
1405 | debounceimpact = false | |
1406 | ||
1407 | function jumpimpact() | |
1408 | if debounceimpact == false then | |
1409 | debounceimpact = true | |
1410 | if jumppower < -150 then jumppower = -150 end | |
1411 | shake(-jumppower/5) | |
1412 | for i=1,-jumppower/20 do rs:wait() | |
1413 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05) | |
1414 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (jumppower/20)*size-hum.HipHeight, 0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.05) | |
1415 | end | |
1416 | debounceimpact = false | |
1417 | end | |
1418 | end | |
1419 | ||
1420 | local sond = nil | |
1421 | rs:connect(function() | |
1422 | ||
1423 | if not torso:FindFirstChild("STATICSOUND") then | |
1424 | sond=Instance.new("Sound",torso) | |
1425 | sond.Name = "STATICSOUND" | |
1426 | sond.SoundId = "rbxassetid://223103466" | |
1427 | sond.Looped = true | |
1428 | sond:Play() | |
1429 | end | |
1430 | ||
1431 | if icolor > 1 then | |
1432 | imode = false | |
1433 | elseif icolor < 0 then | |
1434 | imode = true | |
1435 | end | |
1436 | ||
1437 | if imode == true then | |
1438 | icolor = icolor + 0.01 | |
1439 | else | |
1440 | icolor = icolor - 0.01 | |
1441 | end | |
1442 | ||
1443 | for i,v in pairs(emitters) do | |
1444 | v.Acceleration = root.CFrame.upVector*(666/100) | |
1445 | end | |
1446 | ||
1447 | if p.Character.Parent == nil then | |
1448 | local model = Instance.new("Model") | |
1449 | model.Name = p.Name | |
1450 | p.Character = model | |
1451 | for i,v in pairs(char:GetChildren()) do | |
1452 | v.Parent = p.Character | |
1453 | end | |
1454 | end | |
1455 | ||
1456 | char = p.Character | |
1457 | if p.Character.Parent ~= workspace then | |
1458 | p.Character.Parent = workspace | |
1459 | end | |
1460 | for i,v in pairs(char:GetChildren()) do | |
1461 | if v:IsA("Accoutrement") then | |
1462 | if v.Handle:FindFirstChild("Mesh") then | |
1463 | v.Handle:FindFirstChild("Mesh").Offset = Vector3.new() | |
1464 | v.Handle.Transparency = 0 | |
1465 | end | |
1466 | elseif v:IsA("BasePart") then | |
1467 | v.Anchored = false | |
1468 | if v:FindFirstChildOfClass("BodyPosition") then | |
1469 | v:FindFirstChildOfClass("BodyPosition"):Destroy() | |
1470 | end | |
1471 | if v:FindFirstChildOfClass("BodyVelocity") then | |
1472 | v:FindFirstChildOfClass("BodyVelocity"):Destroy() | |
1473 | end | |
1474 | if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then | |
1475 | v:FindFirstChildOfClass("BodyGyro"):Destroy() | |
1476 | end | |
1477 | if v:FindFirstChild("Mesh") then | |
1478 | v:FindFirstChild("Mesh").Offset = Vector3.new() | |
1479 | end | |
1480 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then | |
1481 | local force = Instance.new("Part",DebrisModel) | |
1482 | force.Name = v.Name.."FORCEFIELD" | |
1483 | force.Size = v.Size+(Vector3.new(1,1,1)*0.2) | |
1484 | force.CanCollide = false | |
1485 | force.Transparency = 1 | |
1486 | newWeld(v,force,0,0,0) | |
1487 | else | |
1488 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then | |
1489 | newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0) | |
1490 | end | |
1491 | end | |
1492 | if v.Name ~= "HumanoidRootPart" then | |
1493 | v.Transparency = 0 | |
1494 | else | |
1495 | v.Transparency = 1 | |
1496 | end | |
1497 | end | |
1498 | end | |
1499 | ||
1500 | if mode == "determination" then | |
1501 | trail.Enabled = true | |
1502 | else | |
1503 | trail.Enabled = false | |
1504 | end | |
1505 | ||
1506 | if freeze == false then | |
1507 | if running == false then | |
1508 | hum.WalkSpeed = 12*size | |
1509 | change=0.4 | |
1510 | movement=5 | |
1511 | else | |
1512 | hum.WalkSpeed = (666/10)*size | |
1513 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5*size then | |
1514 | change=1 | |
1515 | else | |
1516 | change=0.4 | |
1517 | end | |
1518 | movement=15 | |
1519 | end | |
1520 | else | |
1521 | hum.WalkSpeed = 1 | |
1522 | change=0.4 | |
1523 | movement=5 | |
1524 | end | |
1525 | ||
1526 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then | |
1527 | velocityYFall = root.Velocity.Y/1.5 | |
1528 | else | |
1529 | if -root.Velocity.Y/1.5 < -5 then | |
1530 | velocityYFall = 5 | |
1531 | elseif -root.Velocity.Y/1.5 > 150 then | |
1532 | velocityYFall = -150 | |
1533 | end | |
1534 | end | |
1535 | ||
1536 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
1537 | velocityYFall2 = root.Velocity.Y/180 | |
1538 | else | |
1539 | if -root.Velocity.Y/180 < 0 then | |
1540 | velocityYFall2 = 0 | |
1541 | elseif -root.Velocity.Y/180 > 1.2 then | |
1542 | velocityYFall2 = -1.2 | |
1543 | end | |
1544 | end | |
1545 | ||
1546 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
1547 | velocityYFall3 = root.Velocity.Y/1.5 | |
1548 | else | |
1549 | if -root.Velocity.Y/1.5 < -5 then | |
1550 | velocityYFall3 = 5 | |
1551 | elseif -root.Velocity.Y/1.5 > 50 then | |
1552 | velocityYFall3 = -50 | |
1553 | end | |
1554 | end | |
1555 | ||
1556 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
1557 | velocityYFall4 = root.Velocity.Y/1.5 | |
1558 | else | |
1559 | if -root.Velocity.Y/180 < -5 then | |
1560 | velocityYFall4 = 5 | |
1561 | elseif -root.Velocity.Y/180 > 50 then | |
1562 | velocityYFall4 = -50 | |
1563 | end | |
1564 | end | |
1565 | ||
1566 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
1567 | neckrotY = root.RotVelocity.Y/6 | |
1568 | else | |
1569 | if root.RotVelocity.Y/6 < -1 then | |
1570 | neckrotY = -1 | |
1571 | elseif root.RotVelocity.Y/6 > 1 then | |
1572 | neckrotY = 1 | |
1573 | end | |
1574 | end | |
1575 | ||
1576 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
1577 | neckrotY2 = root.RotVelocity.Y/8 | |
1578 | else | |
1579 | if root.RotVelocity.Y/8 < -0.6 then | |
1580 | neckrotY2 = -0.6 | |
1581 | elseif root.RotVelocity.Y/8 > 0.6 then | |
1582 | neckrotY2 = 0.6 | |
1583 | end | |
1584 | end | |
1585 | ||
1586 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
1587 | torsorotY = root.RotVelocity.Y/6 | |
1588 | else | |
1589 | if root.RotVelocity.Y/6 < -0.2 then | |
1590 | torsorotY = -0.2 | |
1591 | elseif root.RotVelocity.Y/6 > 0.2 then | |
1592 | torsorotY = 0.2 | |
1593 | end | |
1594 | end | |
1595 | ||
1596 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
1597 | torsorotY2 = root.RotVelocity.Y/8 | |
1598 | else | |
1599 | if root.RotVelocity.Y/8 < -0.2 then | |
1600 | torsorotY2 = -0.2 | |
1601 | elseif root.RotVelocity.Y/8 > 0.2 then | |
1602 | torsorotY2 = 0.2 | |
1603 | end | |
1604 | end | |
1605 | ||
1606 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
1607 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
1608 | ||
1609 | local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4*size, 0)) | |
1610 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
1611 | local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4*size, 0)) | |
1612 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
1613 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0)) | |
1614 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
1615 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0)) | |
1616 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
1617 | local ray = Ray.new(root.Position,Vector3.new(0, -6, 0)) | |
1618 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
1619 | ||
1620 | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end | |
1621 | ||
1622 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0)) | |
1623 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
1624 | ||
1625 | local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0)) | |
1626 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
1627 | ||
1628 | if hum.Health > 0 and noidle == false then | |
1629 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
1630 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new((change/5)*math.sin(sine/4), 1.5, -.2) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),torsorotY, math.rad(0)+torsorotY), 0.4) | |
1631 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change/10)*math.cos(sine/2)+0.1,-(change/10)*math.cos(sine/4)-(torsorotY/5),(change/2)*math.sin(sine/4)), 0.1) | |
1632 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/40)*math.cos(sine/4)/3,(movement/150)+(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1633 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/40)*math.cos(sine/4)/3,(movement/150)-(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1634 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.05+(change/2)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-(movement/20)*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1) | |
1635 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,(-0.85-(movement/15)*math.cos(sine/4)/2),-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1636 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,(-0.85+(movement/15)*math.cos(sine/4)/2),-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1637 | elseif jumped == true then | |
1638 | didjump = true | |
1639 | jumppower = root.Velocity.Y | |
1640 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4) | |
1641 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1) | |
1642 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(velocityYFall)), 0.2) | |
1643 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(-velocityYFall)), 0.2) | |
1644 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(velocityYFall3/10),math.rad(0), math.rad(0)), 0.1) | |
1645 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0)*CFrame.Angles(math.rad(-35),math.rad(0),math.rad(-2)), 0.2) | |
1646 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0,-0.8)*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(2)), 0.2) | |
1647 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5*size then | |
1648 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5*size, -.1*size) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),0, 0), 0.4) | |
1649 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05*math.cos(sine/16)+0.15,0.05*math.cos(sine/32),0.01*math.cos(sine/32)), 0.1) | |
1650 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(-5-5*math.cos(sine/16)),math.rad(-6+2*math.cos(sine/16))), 0.2) | |
1651 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(5+5*math.cos(sine/16)),math.rad(6-2*math.cos(sine/16))), 0.2) | |
1652 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1*size-(0.1*size)*math.cos(sine/16)-hum.HipHeight, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
1653 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(10+2*math.cos(sine/16)),math.rad(-5+1*math.cos(sine/32))), 0.2) | |
1654 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(-10-2*math.cos(sine/16)),math.rad(5+1*math.cos(sine/32))), 0.2) | |
1655 | end | |
1656 | end | |
1657 | if didjump == true and jumped == false and jumppower < 0 then | |
1658 | didjump = false | |
1659 | jumpimpact() | |
1660 | end | |
1661 | ||
1662 | local chance = math.random(0,10000)/100 | |
1663 | if chance <= 5 + (kills/2) then | |
1664 | if glitched == false then | |
1665 | backup = hed.Weld.C1 | |
1666 | end | |
1667 | if torso:FindFirstChild("MusicRuin") then | |
1668 | equalizer.HighGain = 0 | |
1669 | equalizer.MidGain = -20 | |
1670 | equalizer.LowGain = -80 | |
1671 | end | |
1672 | hed.Weld.C1 = glitchedC1 | |
1673 | local glitch_color = Color3.fromHSV(math.random(0,1000)/1000,1,1) | |
1674 | hed.Color = glitch_color | |
1675 | torso.Color = glitch_color | |
1676 | rarm.Color = glitch_color | |
1677 | larm.Color = glitch_color | |
1678 | rleg.Color = glitch_color | |
1679 | lleg.Color = glitch_color | |
1680 | shake(5) | |
1681 | glitched = true | |
1682 | hed.face.Texture = "rbxassetid://435233416" | |
1683 | sond:Resume() | |
1684 | else | |
1685 | if glitched == true then | |
1686 | glitched = false | |
1687 | hed.Weld.C1 = backup | |
1688 | glitchedC1 = backup*CFrame.Angles(math.rad(math.random(-40,40)),math.rad(math.random(-40,40)),math.rad(math.random(-20,20))) | |
1689 | end | |
1690 | if torso:FindFirstChild("MusicRuin") then | |
1691 | equalizer.HighGain = 0 | |
1692 | equalizer.MidGain = 0 | |
1693 | equalizer.LowGain = 0 | |
1694 | end | |
1695 | hed.BrickColor = skin_color | |
1696 | torso.BrickColor = skin_color | |
1697 | rarm.BrickColor = skin_color | |
1698 | larm.BrickColor = skin_color | |
1699 | rleg.BrickColor = skin_color | |
1700 | lleg.BrickColor = skin_color | |
1701 | hed.face.Texture = "rbxassetid://422627909" | |
1702 | sond:Pause() | |
1703 | end | |
1704 | ||
1705 | timeposition = soundz.TimePosition | |
1706 | sine = sine + change | |
1707 | hum.Health = math.huge | |
1708 | hum.MaxHealth = math.huge | |
1709 | end) |