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