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