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