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