View difference between Paste ID: vrPZBWSk and KMTTqnyp
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
	print("FE Compatibility code by Mokiros")
6
	local rp = RealPlayer
7
	script.Parent = rp.Character
8
	
9
	--RemoteEvent for communicating
10
	local Event = Instance.new("RemoteEvent")
11
	Event.Name = "UserInput_Event"
12
13
	--Fake event to make stuff like Mouse.KeyDown work
14
	local function fakeEvent()
15
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
		t.connect = t.Connect
17
		return t
18
	end
19
20
	--Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
	end}
26
	--Merged 2 functions into one by checking amount of arguments
27
	CAS.UnbindAction = CAS.BindAction
28
29
	--This function will trigger the events that have been :Connect()'ed
30
	local function te(self,ev,...)
31
		local t = m[ev]
32
		if t and t._fakeEvent then
33
			for _,f in pairs(t.Functions) do
34
				f(...)
35
			end
36
		end
37
	end
38
	m.TrigEvent = te
39
	UIS.TrigEvent = te
40
41
	Event.OnServerEvent:Connect(function(plr,io)
42
	    if plr~=rp then return end
43
		m.Target = io.Target
44
		m.Hit = io.Hit
45
		if not io.isMouse then
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local Mouse = Player:GetMouse()
66
	local UIS = game:GetService("UserInputService")
67
	local input = function(io,a)
68
		if a then return end
69
		--Since InputObject is a client-side instance, we create and pass table instead
70
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
	end
72
	UIS.InputBegan:Connect(input)
73
	UIS.InputEnded:Connect(input)
74
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
85
	----Sandboxed game object that allows the usage of client-side methods and services
86
	--Real game object
87
	local _rg = game
88
89
	--Metatable for fake service
90
	local fsmt = {
91
		__index = function(self,k)
92
			local s = rawget(self,"_RealService")
93
			if s then return s[k] end
94
		end,
95
		__newindex = function(self,k,v)
96
			local s = rawget(self,"_RealService")
97
			if s then s[k]=v end
98
		end,
99
		__call = function(self,...)
100
			local s = rawget(self,"_RealService")
101
			if s then return s(...) end
102
		end
103
	}
104
	local function FakeService(t,RealService)
105
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
		return setmetatable(t,fsmt)
107
	end
108
109
	--Fake game object
110
	local g = {
111
		GetService = function(self,s)
112
			return self[s]
113
		end,
114
		Players = FakeService({
115
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
		},"Players"),
117
		UserInputService = FakeService(UIS,"UserInputService"),
118
		ContextActionService = FakeService(CAS,"ContextActionService"),
119
	}
120
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
	g.service = g.GetService
122
	
123
	g.RunService = FakeService({
124
		RenderStepped = _rg:GetService("RunService").Heartbeat,
125
		BindToRenderStep = function(self,name,_,fun)
126
127
		end,
128
		UnbindFromRenderStep = function(self,name)
129
			self._btrs[name]:Disconnect()
130
		end,
131
	},"RunService")
132
133
	setmetatable(g,{
134
		__index=function(self,s)
135
			return _rg:GetService(s) or typeof(_rg[s])=="function"
136
			and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137
		end,
138
		__newindex = fsmt.__newindex,
139
		__call = fsmt.__call
140
	})
141
	--Changing owner to fake player object to support owner:GetMouse()
142
	game,owner = g,g.Players.LocalPlayer
143
end
144
145
local p=game:service("Players").LocalPlayer
146
local char=p.Character
147
script.Parent=char 
148
local torso=char.Torso
149
local hed=char.Head
150
local larm=char:FindFirstChild("Left Arm")
151
local rarm=char:FindFirstChild("Right Arm")
152
local lleg=char:FindFirstChild("Left Leg")
153
local rleg=char:FindFirstChild("Right Leg") 
154
local hum=char.Humanoid
155
local cam=workspace.CurrentCamera
156
local root=char.HumanoidRootPart
157
local mouse=p:GetMouse()
158
local hb=game:service("RunService").Heartbeat
159
local rs=game:service("RunService").Stepped
160
hum.MaxHealth=math.huge
161
hum.Health=hum.MaxHealth
162
local pgui=Instance.new("ScreenGui",p.PlayerGui)
163
random={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
164
local run = 30
165
local normal = 16
166
local color = "Toothpaste"
167
local color2 = "Toothpaste"
168
local righteyebrickcolor = "Really red"
169
local NumCol = 255,0,0
170
171
local Full = false
172
hum.WalkSpeed = 30
173
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05,1.1}
174
local reye = Instance.new("Part", char)
175
reye.CanCollide = false
176
reye.BrickColor = BrickColor.new(righteyebrickcolor)
177
reye.Material = "Neon"
178
reye.Size = Vector3.new(.15,.15,.15)
179
180
m1 = Instance.new("SpecialMesh", reye)
181
m1.MeshType = "Sphere"
182
m1.Scale = Vector3.new(0.9,0.9,0.9)
183
reye.Locked = true
184
reye.Name = "re"
185
186
local leye = Instance.new("Part", char)
187
leye.CanCollide = false
188
leye.BrickColor = BrickColor.new(righteyebrickcolor)
189
leye.Material = "Neon"
190
leye.Size = Vector3.new(.15,.15,.15)
191
local m = Instance.new("SpecialMesh", leye)
192
m.MeshType = "Sphere"
193
m.Scale = Vector3.new(0.9,0.9,0.9)
194
leye.Locked = true
195
leye.Name = "le"
196
197
coroutine.resume(coroutine.create(function(Part,Weld)
198
while Part.Parent~=nil do
199
wait(2)
200
for i=0,1,0.2 do
201
wait()
202
m.Scale = Vector3.new(.9,.9-.8*i,.5)
203
end
204
for i=0,1,0.2 do
205
wait()
206
m.Scale = Vector3.new(.9,.9+.8*i,.5)
207
end
208
end
209
end),leye,weld)
210
211
coroutine.resume(coroutine.create(function(Part,Weld)
212
while Part.Parent~=nil do
213
wait(2)
214
for z=0,1,0.2 do
215
wait()
216
m1.Scale = Vector3.new(.9,.9-.8*z,.5)
217
end
218
for z=0,1,0.2 do
219
wait()
220
m1.Scale = Vector3.new(.9,.9+.8*z,.5)
221
end
222
end
223
end),reye,weld)
224
225
226
227
function fnt(pos,dist,splr)
228
    if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
229
        local list = {}
230
        for i,v in pairs(workspace:GetChildren())do
231
            if v:IsA("Model")then
232
                if v:findFirstChild("Torso")then
233
                    if v ~= char then
234
                        if(v.Torso.Position -pos).magnitude <= dist then
235
                            table.insert(list,v)
236
                        end
237
                    end
238
                end
239
            end
240
        end
241
    return list
242
end
243
function fnp(pos,dist,splr)
244
    if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
245
        local list = {}
246
        for i,v in pairs(workspace:GetChildren())do
247
            if v:IsA("Part")then
248
                    if v ~= char and v.Name~="Car" and v~=torso and v.Name~="Base" and v.Name~="Baseplate" then
249
                        if(v.Position -pos).magnitude <= dist then
250
                            table.insert(list,v)
251
                        end
252
                end
253
            end
254
        end
255
    return list
256
end
257
fw = function(wp0, wp1, wc0x, wc0y, wc0z) -- fast weld
258
local wld = Instance.new("Weld", wp1)
259
wld.Part0 = wp0
260
wld.Part1 = wp1
261
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
262
end
263
local trans=false
264
function chatfunc(text)
265
local chat = coroutine.wrap(function()
266
if char:FindFirstChild("TalkingBillBoard")~= nil then
267
char:FindFirstChild("TalkingBillBoard"):destroy()
268
end
269
local naeeym2 = Instance.new("BillboardGui",char)
270
naeeym2.Size = UDim2.new(0,100,0,40)
271
naeeym2.StudsOffset = Vector3.new(0,3,0)
272
naeeym2.Adornee = char.Head
273
naeeym2.Name = "TalkingBillBoard"
274
local tecks2 = Instance.new("TextLabel",naeeym2)
275
276
local tecks3 = Instance.new("TextLabel",naeeym2)
277
tecks3.BackgroundTransparency = 1
278
tecks3.BorderSizePixel = 0
279
tecks3.Text = ""
280
tecks3.Font = "Arial"
281
tecks3.TextSize = 30
282
tecks3.TextStrokeTransparency = 0
283
tecks3.TextColor3 = Color3.new(147,112,219)
284
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
285
tecks3.Size = UDim2.new(1,0,0.5,0)
286
for i = 1,string.len(text),1 do
287
tecks2.Text = string.sub(text,1,i)
288
tecks3.Text = string.sub(text,1,i)
289
wait(0.01)
290
end
291
wait(2)
292
for i = 1, 50 do
293
294
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
295
tecks2.Rotation = tecks2.Rotation - .8
296
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
297
tecks2.TextTransparency = tecks2.TextTransparency + .04
298
tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
299
tecks3.Rotation = tecks2.Rotation + .8
300
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
301
tecks3.TextTransparency = tecks2.TextTransparency + .04
302
end
303
naeeym2:Destroy()
304
end)
305
chat()
306
end
307
function onChatted(msg)
308
chatfunc(msg)
309
end
310
p.Chatted:connect(onChatted)
311
coroutine.resume(coroutine.create(function()
312
wait(2)
313
chatfunc("Would You like to know the secrets of my race? The ones without vision.") 
314
end))
315
wait(9)
316
char.Head.face:Destroy()
317
local reye = Instance.new("Part", char)
318
reye.CanCollide = false
319
reye.BrickColor = BrickColor.new(righteyebrickcolor)
320
reye.Material = "Neon"
321
reye.Size = Vector3.new(.15,.15,.15)
322
m1 = Instance.new("SpecialMesh", reye)
323
m1.MeshType = "Sphere"
324
m1.Scale = Vector3.new(0.9,0.9,0.9)
325
reye.Locked = true
326
reye.Name = "re"
327
328
local leye = Instance.new("Part", char)
329
leye.CanCollide = false
330
leye.BrickColor = BrickColor.new(righteyebrickcolor)
331
leye.Material = "Neon"
332
leye.Size = Vector3.new(.15,.15,.15)
333
local m = Instance.new("SpecialMesh", leye)
334
m.MeshType = "Sphere"
335
m.Scale = Vector3.new(0.9,0.9,0.9)
336
leye.Locked = true
337
leye.Name = "le"
338
339
coroutine.resume(coroutine.create(function(Part,Weld)
340
while Part.Parent~=nil do
341
wait(2)
342
for i=0,1,0.2 do
343
wait()
344
m.Scale = Vector3.new(.9,.9-.8*i,.5)
345
end
346
for i=0,1,0.2 do
347
wait()
348
m.Scale = Vector3.new(.9,.9+.8*i,.5)
349
end
350
end
351
end),leye,weld)
352
353
coroutine.resume(coroutine.create(function(Part,Weld)
354
while Part.Parent~=nil do
355
wait(2)
356
for z=0,1,0.2 do
357
wait()
358
m1.Scale = Vector3.new(.9,.9-.8*z,.5)
359
end
360
for z=0,1,0.2 do
361
wait()
362
m1.Scale = Vector3.new(.9,.9+.8*z,.5)
363
end
364
end
365
end),reye,weld)
366
367
368
369
function fnt(pos,dist,splr)
370
    if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
371
        local list = {}
372
        for i,v in pairs(workspace:GetChildren())do
373
            if v:IsA("Model")then
374
                if v:findFirstChild("Torso")then
375
                    if v ~= char then
376
                        if(v.Torso.Position -pos).magnitude <= dist then
377
                            table.insert(list,v)
378
                        end
379
                    end
380
                end
381
            end
382
        end
383
    return list
384
end
385
function fnp(pos,dist,splr)
386
    if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
387
        local list = {}
388
        for i,v in pairs(workspace:GetChildren())do
389
            if v:IsA("Part")then
390
                    if v ~= char and v.Name~="Car" and v~=torso and v.Name~="Base" and v.Name~="Baseplate" then
391
                        if(v.Position -pos).magnitude <= dist then
392
                            table.insert(list,v)
393
                        end
394
                end
395
            end
396
        end
397
    return list
398
end
399
fw = function(wp0, wp1, wc0x, wc0y, wc0z) -- fast weld
400
local wld = Instance.new("Weld", wp1)
401
wld.Part0 = wp0
402
wld.Part1 = wp1
403
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
404
end
405
char["Body Colors"].HeadColor = BrickColor.new("Pastel light blue")
406
char["Body Colors"].TorsoColor = BrickColor.new("Pastel light blue")
407
char["Body Colors"].LeftArmColor = BrickColor.new("Pastel light blue")
408
char["Body Colors"].RightArmColor = BrickColor.new("Pastel light blue")
409
hum = char.Humanoid
410
 
411
function CreateMesh(parent, id, x, y, z, texture)
412
local m=Instance.new("SpecialMesh", parent)
413
m.MeshType = "FileMesh"
414
m.MeshId=id
415
if texture ~= nil then
416
m.TextureId=texture
417
end
418
m.Scale = Vector3.new(x,y,z)
419
end
420
 local euler = CFrame.fromEulerAnglesXYZ
421
function NoOutline(Part)
422
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
423
end 
424
function lerp(a, b, t) -- Linear interpolation
425
        return a + (b - a)*t
426
end
427
428
function slerp(a, b, t) --Spherical interpolation
429
        dot = a:Dot(b)
430
        if dot > 0.99999 or dot < -0.99999 then
431
                return t <= 0.5 and a or b
432
        else
433
                r = math.acos(dot)
434
                return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
435
        end
436
end
437
438
function matrixInterpolate(a, b, t)
439
        local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
440
        local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
441
        local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
442
        local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
443
        local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
444
        local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
445
        local t = v1:Dot(v2)
446
        if not (t < 0 or t == 0 or t > 0) then         -- Failsafe
447
                return CFrame.new()
448
        end
449
        return CFrame.new(
450
        v0.x, v0.y, v0.z,
451
        v1.x, v1.y, v1.z,
452
        v2.x, v2.y, v2.z,
453
        v3.x, v3.y, v3.z)
454
end
455
function weld5(part0, part1, c0, c1)
456
    weeld=Instance.new("Weld", part0)
457
    weeld.Part0=part0
458
    weeld.Part1=part1
459
    weeld.C0=c0
460
    weeld.C1=c1
461
    return weeld
462
end
463
 
464
 
465
 
466
Grab = false
467
 
468
 
469
 
470
 
471
 
472
fat = Instance.new("BindableEvent",script)
473
fat.Name = "Heartbeat"
474
 
475
script:WaitForChild("Heartbeat")
476
 
477
frame = 1/30
478
tf = 0
479
allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
480
tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
481
lastframe = tick()
482
script.Heartbeat:Fire() --ayy lmao
483
 
484
game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
485
    tf = tf + s
486
    if tf >= frame then
487
        if allowframeloss then
488
            script.Heartbeat:Fire()
489
            lastframe=tick()
490
        else
491
            --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
492
            for i=1, math.floor(tf/frame) do
493
                script.Heartbeat:Fire()
494
            end
495
            lastframe=tick()
496
        end
497
        if tossremainder then
498
            tf = 0
499
        else
500
            tf = tf - frame * math.floor(tf/frame)
501
        end
502
    end
503
end)
504
 
505
function Swait(NUMBER)
506
    if NUMBER == 0 or NUMBER == nil then
507
        fat.Event:wait()
508
    else
509
        for i = 1, NUMBER do
510
            fat.Event:wait()
511
        end
512
    end
513
end
514
 
515
 
516
  
517
function GrabAndDrag()
518
	NoAnims = true
519
	attack = true
520
	
521
	if Grab == false then
522
	
523
	for i = 1, 20 do
524
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
525
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
526
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
527
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
528
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
529
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
530
            if Debounces.on == false then break end
531
            rs:wait(2)
532
        end
533
        con1=larm.Touched:connect(function(hit) -- this is grab
534
            ht = hit.Parent
535
            hum1=ht:FindFirstChild('Humanoid')
536
            if hum1 ~= nil then
537
			   
538
hum1.PlatformStand=true
539
                gp = ht
540
                Grab = true
541
                asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0))
542
                asd.Parent = larm
543
                asd.Name = "asd"
544
                asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
545
			
546
547
           --[[ elseif hum1 == nil then
548
                con1:disconnect()
549
                wait() return]]
550
            end
551
        end)
552
553
554
        for i = 1, 20 do
555
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
556
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
557
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2)
558
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2)
559
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
560
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
561
            if Debounces.on == false then break end
562
            rs:wait(2)
563
        end
564
    con1:disconnect()
565
566
if gp == nil then 
567
	attack = false
568
	NoAnims = false
569
	return end
570
571
    
572
    
573
			--[[for i = 1, 16 do
574
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
575
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
576
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
577
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
578
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
579
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
580
			cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
581
			if Debounces.on == false then end
582
			rs:wait()
583
		end]]--
584
			for i = 1, 16 do
585
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3)
586
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-73)), 0.3)
587
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
588
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3)
589
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
590
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
591
			if Debounces.on == false then end
592
			rs:wait()
593
			end
594
			
595
			
596
			coroutine.resume(coroutine.create(function()
597
	local BF = Instance.new("BodyVelocity",hed)
598
	BF.maxForce = Vector3.new(math.huge,math.huge,math.huge)
599
	BF.velocity = root.CFrame.lookVector*120
600
	wait(2.5)
601
	BF:remove()
602
			end))
603
coroutine.resume(coroutine.create(function()
604
	for i=1,78 do
605
wait()
606
MagicBlock(BrickColor.new("Really blue"),gp:FindFirstChild("Torso").CFrame,1,1,1,0.5,0.5,0.5,0.025)
607
wait(0.01)
608
MagicBlock(BrickColor.new("Really black"),gp:FindFirstChild("Torso").CFrame,1,1,1,0.5,0.5,0.5,0.025)
609
end
610
end))
611
612
			coroutine.resume(coroutine.create(function()
613
				Grabee = gp:FindFirstChild("Torso")
614
		par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
615
				wait(0.01)
616
				for i = 1,78 do
617
					wait(0.01)
618
				for i=1, 5 do
619
			p=Instance.new("Part")
620
			p.FrontSurface=par.TopSurface
621
			p.Material=par.Material
622
			p.BottomSurface=0
623
			p.Anchored=true p.CanCollide=false
624
			p.BrickColor=par.BrickColor
625
			p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5))
626
			p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-i,i)/1,3,math.random(-i,i)/1),loc+Vector3.new(0,1000-i*20,0))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
627
			p.Parent=char
628
			game:GetService("Debris"):AddItem(p,2+i*.1)
629
			if math.random(1,5)==5 then
630
				coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=30 f.RiseVelocity=0 f.Opacity=.025 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
631
			end
632
			Swait(.025)
633
	end
634
				end
635
				
636
			end))
637
end
638
end	
639
for i = 1, 100 do
640
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3)
641
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-13)), 0.3)
642
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3)
643
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3)
644
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3)
645
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3)
646
			if Debounces.on == false then end
647
			rs:wait()
648
		end
649
	asd:Destroy()
650
	gp = nil
651
	hum1.Health = 0
652
	attack = false
653
	ht = nil
654
	NoAnims = false
655
	Grab = false 
656
657
DarkSlicer = Instance.new("Part",char)
658
DarkSlicer.Name = "Soul Taker"
659
DarkSlicer.Size = v3(2,10,2)
660
DarkSlicer.Transparency = 1
661
DarkSlicer.BrickColor = BrickColor.new("Really black")
662
DarkSlicer.Position = v3(888,888,888)
663
DarkSlicer.CanCollide = false
664
DarkSlicermesh = Instance.new("SpecialMesh",DarkSlicer)
665
DarkSlicermesh.MeshType = "FileMesh"
666
DarkSlicermesh.MeshId = "rbxassetid://898849476"
667
DarkSlicermesh.Scale = v3(0.01,0.008,0.01)
668
darkweld7 = Instance.new("Weld",DarkSlicer)
669
darkweld7.Part0 = rarm
670
darkweld7.Part1 = DarkSlicer
671
darkweld7.C0 = CFrame.new(0,-2.1,0) * CFrame.Angles(rad(180),rad(0),rad(0))
672
DarkSlicer1 = Instance.new("Part",char)
673
DarkSlicer1.Name = "Blade"
674
DarkSlicer1.Transparency = 0
675
DarkSlicer1.Size = v3(0.1,0.1,0.1)
676
DarkSlicer1.Position = v3(888,888,888)
677
DarkSlicer1.CanCollide = false
678
DarkSlicermesh = Instance.new("SpecialMesh",DarkSlicer1)
679
DarkSlicermesh.MeshType = "Sphere"
680
DarkSlicermesh.Scale = v3(1,1,1)
681
DarkSlicermeld = Instance.new("Weld",DarkSlicer1)
682
darkweld.Part0 = rarm
683
darkweld.Part1 =  DarkSlicer1
684
darkweld.C0 = CFrame.new(0,-1,0)
685
torso = game.Players.LocalPlayer.Character.Torso
686
head = game.Players.LocalPlayer.Character.Head
687
torso1 = Instance.new("Attachment",DarkSlicer1)
688
head1 = Instance.new("Attachment",DarkSlicer1)
689
trail = Instance.new("Trail",torso)
690
trail.Color = ColorSequence.new(Color3.fromRGB(0,0,0))
691
trail.Attachment0 = torso1
692
trail.Attachment1 = head1
693
trail.Lifetime = 0.5
694
trail.Enabled = true
695
local Gibs = game.Workspace
696
 
697
 
698
 
699
 
700
 
701
 
702
 
703
 
704
 
705
 
706
 
707
 
708
function Kill(Character)
709
    Character.Humanoid.Health = 0
710
    local name = Instance.new("IntValue",Character)
711
    name.Name = "you died be salt"
712
    local svch = Character
713
    local hum = Character:findFirstChild("Humanoid")
714
    Character.Archivable = true
715
    local chrclone = Character:clone()
716
    Character.Archivable = false
717
 
718
    local ch = chrclone:GetChildren()
719
    local i
720
    for i = 1,#ch do
721
        if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
722
            ch[i]:remove()
723
        end
724
    end
725
    local function Scan(ch)
726
        local e
727
        for e = 1,#ch do
728
            Scan(ch[e]:GetChildren())
729
            if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
730
                ch[e]:remove()
731
            end
732
        end
733
    end
734
    Scan(chrclone:GetChildren())
735
 
736
    local hum2 = chrclone:findFirstChild("Humanoid")
737
 
738
 
739
    if hum2 ~= nil then
740
        hum2.Name = "Humanoid2"
741
        hum2.PlatformStand = true
742
        hum2.Sit = true
743
        hum2.MaxHealth = 9999999
744
        hum2.Health = 9999999
745
    end end
746
local ch = Character:GetChildren()
747
    local i
748
    for i = 1,#ch do
749
        if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
750
            ch[i]:remove()
751
        end
752
    end
753
 
754
    wait(0.2)
755
 
756
    local ch = Character:GetChildren()
757
    local i
758
    for i = 1,#ch do
759
        if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
760
            ch[i]:remove()
761
        end
762
    end
763
    Character = chrclone
764
    local Torso = Character.Torso
765
    local movevector = Vector3.new()
766
 
767
    if Torso then
768
        local Head = Character:FindFirstChild("Head")
769
        local Limb = Character:FindFirstChild("Right Arm")
770
        if Limb then
771
 
772
            Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
773
            local Joint = Instance.new("Glue")
774
            Joint.Name = "RightShoulder"
775
            Joint.Part0 = Torso
776
            Joint.Part1 = Limb
777
            Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
778
            Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
779
            Joint.Parent = Torso
780
 
781
            local B = Instance.new("Part")
782
            B.TopSurface = 0
783
            B.BottomSurface = 0
784
            B.formFactor = "Symmetric"
785
            B.Size = Vector3.new(1, 1, 1)
786
            B.Transparency = 1
787
            B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
788
            B.Parent = Character
789
            local W = Instance.new("Weld")
790
            W.Part0 = Limb
791
            W.Part1 = B
792
            W.C0 = CFrame.new(0, -0.5, 0)
793
            W.Parent = Limb
794
 
795
        end
796
        local Limb = Character:FindFirstChild("Left Arm")
797
        if Limb then
798
 
799
            Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
800
            local Joint = Instance.new("Glue")
801
            Joint.Name = "LeftShoulder"
802
            Joint.Part0 = Torso
803
            Joint.Part1 = Limb
804
            Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
805
            Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
806
            Joint.Parent = Torso
807
 
808
            local B = Instance.new("Part")
809
            B.TopSurface = 0
810
            B.BottomSurface = 0
811
            B.formFactor = "Symmetric"
812
            B.Size = Vector3.new(1, 1, 1)
813
            B.Transparency = 1
814
            B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
815
            B.Parent = Character
816
            local W = Instance.new("Weld")
817
            W.Part0 = Limb
818
            W.Part1 = B
819
            W.C0 = CFrame.new(0, -0.5, 0)
820
            W.Parent = Limb
821
 
822
        end
823
        local Limb = Character:FindFirstChild("Right Leg")
824
        if Limb then
825
 
826
            Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
827
            local Joint = Instance.new("Glue")
828
            Joint.Name = "RightHip"
829
            Joint.Part0 = Torso
830
            Joint.Part1 = Limb
831
            Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
832
            Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
833
            Joint.Parent = Torso
834
 
835
            local B = Instance.new("Part")
836
            B.TopSurface = 0
837
            B.BottomSurface = 0
838
            B.formFactor = "Symmetric"
839
            B.Size = Vector3.new(1, 1, 1)
840
            B.Transparency = 1
841
            B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
842
            B.Parent = Character
843
            local W = Instance.new("Weld")
844
            W.Part0 = Limb
845
            W.Part1 = B
846
            W.C0 = CFrame.new(0, -0.5, 0)
847
            W.Parent = Limb
848
 
849
        end
850
        local Limb = Character:FindFirstChild("Left Leg")
851
        if Limb then
852
 
853
            Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
854
            local Joint = Instance.new("Glue")
855
            Joint.Name = "LeftHip"
856
            Joint.Part0 = Torso
857
            Joint.Part1 = Limb
858
            Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
859
            Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
860
            Joint.Parent = Torso
861
 
862
            local B = Instance.new("Part")
863
            B.TopSurface = 0
864
            B.BottomSurface = 0
865
            B.formFactor = "Symmetric"
866
            B.Size = Vector3.new(1, 1, 1)
867
            B.Transparency = 1
868
            B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
869
            B.Parent = Character
870
            local W = Instance.new("Weld")
871
            W.Part0 = Limb
872
            W.Part1 = B
873
            W.C0 = CFrame.new(0, -0.5, 0)
874
            W.Parent = Limb
875
 
876
        end
877
        --[
878
        local Bar = Instance.new("Part")
879
        Bar.TopSurface = 0
880
        Bar.BottomSurface = 0
881
        Bar.formFactor = "Symmetric"
882
        Bar.Size = Vector3.new(1, 1, 1)
883
        Bar.Transparency = 1
884
        Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
885
        Bar.Parent = Character
886
        local Weld = Instance.new("Weld")
887
        Weld.Part0 = Torso
888
        Weld.Part1 = Bar
889
        Weld.C0 = CFrame.new(0, 0.5, 0)
890
        Weld.Parent = Torso
891
        --]]
892
    end
893
    Character.Parent = Gibs
894
    game.Debris:AddItem(Character, 12)
895
    if movevector ~= Vector3.new() then
896
        for i = 1,10 do
897
            wait()
898
            Torso.Velocity = Vector3.new(0,0,-100)
899
            Head.Velocity = movevector * 100
900
        end
901
    end
902
     
903
   
904
   
905
 
906-
function Soul Take()
906+
function Soul Rip()
907
    NoAnims = true
908
    attack = true
909
   
910
   
911
    
912
    DarkSlicer.Transparency = 0
913
    
914
    trail.Enabled = true
915
    
916
 
917
    hum.WalkSpeed = 30
918
    for i = 1,40 do
919
        torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05)
920
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25)
921
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25)
922
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,-0.2)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(90)), 0.5)--arm
923
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.2)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-90)), 0.5)--arm
924
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
925
if Debounces.on == false then break end
926
                wait()
927
    end
928
   
929
   
930
    coroutine.resume(coroutine.create(function()
931
    local BF = Instance.new("BodyVelocity",hed)
932
    BF.maxForce = Vector3.new(math.huge,math.huge,math.huge)
933
    BF.velocity = root.CFrame.lookVector*120
934
    wait(2.0)
935
    BF:remove()
936
    end))
937
local HitBox = Instance.new("Part",rarm)
938
    HitBox.Size = Vector3.new(1,5,1)
939
    HitBox.CanCollide = false
940
    HitBox.Transparency = 1
941
    local HitBox2 = Instance.new("Weld",HitBox)
942
    HitBox2.Part0 = rarm
943
    HitBox2.Part1 = HitBox
944
    HitBox2.C0 = CFrame.new(0,-1.8,0)
945
    HitBox.Touched:connect(function(hit)
946
        if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= char.Name then
947
            Kill(hit.Parent)
948
            hit.Parent.Humanoid.PlatformStand = true
949
        end
950
    end)
951
   
952
    local HitBox2 = Instance.new("Part",larm)
953
    HitBox2.Size = Vector3.new(1,5,1)
954
    HitBox2.CanCollide = false
955
    HitBox2.Transparency = 1
956
    local HitBox22 = Instance.new("Weld",HitBox2)
957
    HitBox22.Part0 = larm
958
    HitBox22.Part1 = HitBox2
959
    HitBox22.C0 = CFrame.new(0,-1.8,0)
960
    HitBox2.Touched:connect(function(hit)
961
        if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= char.Name then
962
            Kill(hit.Parent)
963
            hit.Parent.Humanoid.PlatformStand = true
964
        end
965
        end)
966
 
967
    for i = 1,40 do
968
        torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05)
969
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25)
970
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25)
971
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,-0.2)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(90)), 0.5)--arm
972
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.2)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(-90)), 0.5)--arm
973
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
974
    root.CFrame = root.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0)
975
     if Debounces.on == false then break end
976
                wait()
977
    end
978
    DarkSlicer.Transparency = 1
979
  
980
    trail.Enabled = true
981
   
982
HitBox:Destroy()
983
HitBox2:Destroy()
984
    hum.WalkSpeed = 30
985
    attack = false
986
    NoAnims = false
987
end