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