View difference between Paste ID: 6haEUeuV and 20qighzP
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,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
7
wait(1)
8
9
---
10
local p = game.Players.LocalPlayer
11
local char = p.Character
12
local mouse = p:GetMouse()
13
local larm = char["Left Arm"]
14
local rarm = char["Right Arm"]
15
local lleg = char["Left Leg"]
16
local rleg = char["Right Leg"]
17
local hed = char.Head
18
local torso = char.Torso
19
local ASD = BrickColor.new("Pastel brown")
20
local hum = char.Humanoid
21
local attack = false
22
local attacktype = 1
23
local cam = game.Workspace.CurrentCamera
24
local root = char.HumanoidRootPart
25
local deb = false
26
local shot = 0
27
local l = game:GetService("Lighting")
28
local rs = game:GetService("RunService").RenderStepped
29
local stanceToggle = "Normal"
30
math.randomseed(os.time())
31
hum.WalkSpeed = 7
32
char.Health:Destroy()
33
hum.MaxHealth = 5000000
34
wait(0.1)
35
hum.Health = 5000000
36
z = Instance.new("Sound", char.Torso)
37
z.SoundId = "rbxassetid://945754402"
38
z.Looped = true
39
z.Pitch = 1
40
z.Volume = 1
41
----------------------------------------------------
42
local SM = Instance.new("Smoke",torso)
43
SM.Size = 15
44
local S = Instance.new("Part",char)
45
S.Size = Vector3.new(1,1,1)
46
S.Material = "Neon"
47
S.BrickColor = BrickColor.new("Deep orange")
48
S.Transparency = 0
49
S.Anchored = true
50
S.CFrame = torso.CFrame*CFrame.new(0,0,0)
51
local Ring = Instance.new("Part",S)
52
Ring.Size = Vector3.new(1,1,1)
53
Ring.BrickColor = BrickColor.new("Deep orange")
54
Ring.Anchored = true
55
Ring.CanCollide = false
56
Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
57
local Ring2 = Instance.new("SpecialMesh",Ring)
58
Ring2.MeshId = "rbxassetid://3270017"
59
Ring2.Scale = Vector3.new(0.1,0.1,0.1)
60
local S2 = Instance.new("SpecialMesh",S)
61
S2.MeshType = "Sphere"
62
S2.Scale = Vector3.new(1,1,1)
63
v = Instance.new("Sound")
64
v.SoundId = "rbxassetid://821439273"
65
v.Parent = char.Torso
66
v.Looped = false
67
v.Pitch = 1
68
v.Volume = 1
69
wait(.01)
70
v:Play()
71
local partasdeff = Instance.new("ParticleEmitter",S)
72
partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
73
partasdeff.LightEmission = .1
74
partasdeff.Size = NumberSequence.new(0.2)
75
partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
76
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
77
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
78
partasdeff.Transparency = bbb
79
partasdeff.Size = aaa
80
partasdeff.ZOffset = .9
81
partasdeff.Acceleration = Vector3.new(0, -5, 0)
82
partasdeff.LockedToPart = false
83
partasdeff.EmissionDirection = "Top"
84
partasdeff.Lifetime = NumberRange.new(1, 2)
85
partasdeff.Rate = 1000
86
partasdeff.Rotation = NumberRange.new(-100, 100)
87
partasdeff.RotSpeed = NumberRange.new(-100, 100)
88
partasdeff.Speed = NumberRange.new(10)
89
partasdeff.VelocitySpread = 300
90
partasdeff.Enabled = true
91
for i = 1,100 do
92
	Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
93
	Ring.Transparency = Ring.Transparency + 0.01
94
	S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
95
	S.Transparency = S.Transparency + 0.01
96
	game:GetService("RunService").RenderStepped:wait()
97
end
98
S:remove()
99
wait(1)
100
SM:remove()
101
v = Instance.new("Sound")
102
        v.SoundId = "rbxassetid://181384451"
103
        v.Parent = torso
104
        v.Looped = false
105
        v.Pitch = 1.5
106
        v.Volume = 1
107
        wait(.01)
108
        v:Play()
109
z:Play()
110
----------------------------------------------------
111
Debounces = {
112
on = false;
113
ks = false;
114
CanAttack = true;
115
CanJoke = true;
116
NoIdl = false;
117
Slashing = false;
118
Slashed = false;
119
Grabbing = false;
120
Grabbed = false;
121
}
122
local Touche = {char.Name, }
123
----------------------------------------------------
124
function lerp(a, b, t) -- Linear interpolation
125
    return a + (b - a)*t
126
end
127
 
128
function slerp(a, b, t) --Spherical interpolation
129
    dot = a:Dot(b)
130
    if dot > 0.99999 or dot < -0.99999 then
131
        return t <= 0.5 and a or b
132
    else
133
        r = math.acos(dot)
134
        return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
135
    end
136
end
137
 
138
function matrixInterpolate(a, b, t)
139
    local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
140
    local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
141
    local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
142
    local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
143
    local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
144
    local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
145
    local t = v1:Dot(v2)
146
    if not (t < 0 or t == 0 or t > 0) then     -- Failsafe
147
        return CFrame.new()
148
    end
149
    return CFrame.new(
150
    v0.x, v0.y, v0.z,
151
    v1.x, v1.y, v1.z,
152
    v2.x, v2.y, v2.z,
153
    v3.x, v3.y, v3.z)
154
end
155
----------------------------------------------------
156
function genWeld(a,b)
157
    local w = Instance.new("Weld",a)
158
    w.Part0 = a
159
    w.Part1 = b
160
    return w
161
end
162
function weld(a, b)
163
    local weld = Instance.new("Weld")
164
    weld.Name = "W"
165
    weld.Part0 = a
166
    weld.Part1 = b
167
    weld.C0 = a.CFrame:inverse() * b.CFrame
168
    weld.Parent = a
169
    return weld;
170
end
171
----------------------------------------------------
172
function Lerp(c1,c2,al)
173
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
174
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
175
for i,v in pairs(com1) do 
176
com1[i] = v+(com2[i]-v)*al
177
end
178
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
179
end
180
----------------------------------------------------
181
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
182
local wld = Instance.new("Weld", wp1)
183
wld.Part0 = wp0
184
wld.Part1 = wp1
185
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
186
end
187
----------------------------------------------------
188
for i,v in pairs(char:children()) do
189
    if v:IsA("Hat") then
190
        v:Destroy()
191
    end
192
end
193
for i,v in pairs(hed:children()) do
194
    if v:IsA("Sound") then
195
        v:Destroy()
196
    end
197
end
198
----------------------------------------------------
199
function HasntTouched(plrname)
200
local ret = true
201
for _, v in pairs(Touche) do
202
if v == plrname then
203
ret = false
204
end
205
end
206
return ret
207
end
208
----------------------------------------------------
209
larm.Size = larm.Size * 6
210
rarm.Size = rarm.Size * 6
211
lleg.Size = lleg.Size * 6
212
rleg.Size = rleg.Size *	6
213
torso.Size = torso.Size * 6
214
hed.Size = hed.Size * 6
215
root.Size = root.Size * 6
216
----------------------------------------------------
217
newWeld(torso, larm, -1.5, 0.5, 0)
218
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
219
newWeld(torso, rarm, 1.5, 0.5, 0)
220
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
221
newWeld(torso, hed, 0, 1.5, 0)
222
newWeld(torso, lleg, -0.5, -1, 0)
223
lleg.Weld.C1 = CFrame.new(0, 1, 0)
224
newWeld(torso, rleg, 0.5, -1, 0)
225
rleg.Weld.C1 = CFrame.new(0, 1, 0)
226
newWeld(root, torso, 0, -1, 0)
227
torso.Weld.C1 = CFrame.new(0, -1, 0)
228
----------------------------------------------------
229
local Part = Instance.new("Part",hed)
230
Part.BrickColor = BrickColor.new("Really black")
231
Part.Size = Vector3.new(1,1,1)
232
Part.CanCollide = false
233
Part.Material = "Neon"
234
local M = Instance.new("SpecialMesh",Part)
235
M.MeshId = "rbxassetid://731024518"
236
M.Scale = Vector3.new(2,2,2)
237
local Part2 = Instance.new("Weld",Part)
238
Part2.Part0 = hed
239
Part2.Part1 = Part
240
Part2.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,3.1,0)
241
char.Shirt:remove()
242
char.Pants:remove()
243
char.Head.face.Texture = "rbxassetid://470245396"
244
char.Humanoid.WalkSpeed = 44
245
----------------------------------------------------
246
----------------------------------------------------
247
248
----------------------------------------------------
249
function weld5(part0, part1, c0, c1)
250
    weeld=Instance.new("Weld", part0)
251
    weeld.Part0=part0
252
    weeld.Part1=part1
253
    weeld.C0=c0
254
    weeld.C1=c1
255
    return weeld
256
end
257
----------------------------------------------------
258
function newRay(start,face,range,wat)
259
	local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
260
	hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
261
	return rey,hit,pos
262
end
263
----------------------------------------------------
264
mod5 = Instance.new("Model",char)
265
266
function FindNearestTorso(Position,Distance,SinglePlayer)
267
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
268
        local List = {}
269
        for i,v in pairs(workspace:GetChildren())do
270
            if v:IsA("Model")then
271
                if v:findFirstChild("Torso")then
272
                    if v ~= char then
273
                        if(v.Torso.Position -Position).magnitude <= Distance then
274
                            table.insert(List,v)
275
                        end 
276
                    end 
277
                end 
278
            end 
279
        end
280
    return List
281
end
282
283
function Landing()
284
    part=Instance.new('Part',mod5)
285
    part.Anchored=true
286
    part.CanCollide=false
287
    part.FormFactor='Custom'
288
    part.Size=Vector3.new(.2,.2,.2)
289
    part.CFrame=root.CFrame*CFrame.new(0,-2,0)
290
    part.Transparency=.7
291
    part.BrickColor=BrickColor.new('Really black')
292
    mesh=Instance.new('SpecialMesh',part)
293
    mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
294
    mesh.Scale=Vector3.new(10,5,10)
295
296
    for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
297
        if v:FindFirstChild('Humanoid') then
298
            v.Humanoid:TakeDamage(math.random(20,30))
299
            v.Humanoid.PlatformStand = true
300
            v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
301
        end
302
    end
303
304
    coroutine.resume(coroutine.create(function() 
305
        for i=0,3.8,0.05 do
306
            wait()
307
            part.CFrame=part.CFrame
308
            part.Transparency=i
309
            mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
310
            end
311
        part.Parent = nil
312
    end))
313
end
314
----------------------------------------------------
315
mod4 = Instance.new("Model",char)
316
317
ptez = {0.7, 0.8, 0.9, 1}
318
319
function FindNearestTorso(Position,Distance,SinglePlayer)
320
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
321
        local List = {}
322
        for i,v in pairs(workspace:GetChildren())do
323
            if v:IsA("Model")then
324
                if v:findFirstChild("Torso")then
325
                    if v ~= char then
326
                        if(v.Torso.Position -Position).magnitude <= Distance then
327
                            table.insert(List,v)
328
                        end 
329
                    end 
330
                end 
331
            end 
332
        end
333
    return List
334
end
335
336
----------------------------------------------------
337
338
local acos = math.acos
339
local sqrt = math.sqrt
340
local Vec3 = Vector3.new
341
local fromAxisAngle = CFrame.fromAxisAngle
342
343
local function toAxisAngle(CFr)
344
        local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
345
        local Angle = math.acos((R00+R11+R22-1)/2)
346
        local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
347
        A = A == 0 and 0.00001 or A
348
        local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
349
        B = B == 0 and 0.00001 or B
350
        local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
351
        C = C == 0 and 0.00001 or C
352
        local x = (R21-R12)/sqrt(A)
353
        local y = (R02-R20)/sqrt(B)
354
        local z = (R10-R01)/sqrt(C)
355
        return Vec3(x,y,z),Angle
356
end
357
358
function ApplyTrig(Num,Func)
359
        local Min,Max = Func(0),Func(1)
360
        local i = Func(Num)
361
        return (i-Min)/(Max-Min)
362
        --[[if Func == "sin" then
363
                return (math.sin((1-Num)*math.pi)+1)/2
364
        elseif Func == "cos" then
365
                return (math.cos((1-Num)*math.pi)+1)/2
366
        end]]
367
end
368
369
function LerpCFrame(CFrame1,CFrame2,Num)
370
        local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
371
        return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
372
end
373
----------------------------------------------------
374
function Hit()
375
	if Debounces.CanAttack == true then
376
        Debounces.CanAttack = false
377
        Debounces.on = true
378
        Debounces.NoIdl = true
379
local HitBox = Instance.new("Part",char)
380
HitBox.Size = Vector3.new(5,5,5)
381
HitBox.CanCollide = false
382
HitBox.Transparency = math.huge
383
local HitBox2 = Instance.new("Weld",HitBox)
384
HitBox2.Part0 = rarm
385
HitBox2.Part1 = HitBox
386
HitBox2.C0 = CFrame.new(0,-1.3,0)
387
HitBox.Touched:connect(function(hit)
388
	if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
389
		local SFXZ = Instance.new("Sound",torso)
390
			SFXZ.SoundId = "rbxassetid://743886825"
391
			SFXZ.Volume = math.huge
392
			SFXZ.Pitch = 0.5
393
			SFXZ.Looped = false
394
			SFXZ:Play()
395
		HitBox:remove()
396
		hit.Parent.Humanoid:TakeDamage(88)
397
		hit.Parent.Humanoid.PlatformStand = true
398
		local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
399
			Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
400
			Fl.velocity = rleg.CFrame.lookVector*120
401
			wait(0.1)
402
			Fl:remove()
403
	end
404
end)
405
for i = 1,20 do
406
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,5.5,-1)*CFrame.Angles(3.1,0,1),.3)
407
        larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
408
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
409
        torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,-0.5),.3)
410
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
411
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3)
412
        if Debounces.on == false then break end
413
    wait()
414
end
415
local SFXZ = Instance.new("Sound",torso)
416
		SFXZ.SoundId = "rbxassetid://169259383"
417
		SFXZ.Volume = math.huge
418
		SFXZ.Pitch = 0.5
419
		SFXZ.Looped = false
420
		wait(0.01)
421
		SFXZ:Play()
422
for i = 1,20 do
423
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,12,-2.5)*CFrame.Angles(3.1,0,-1),.3)
424
        larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
425
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
426
        torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,0.5),.3)
427
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
428
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3)
429
        if Debounces.on == false then break end
430
    wait()
431
end
432
if Debounces.CanAttack == false then
433
        Debounces.CanAttack = true
434
        Debounces.on = false
435
        Debounces.NoIdl = false
436
HitBox:remove()
437
end
438
end
439
end
440
function Hit2()
441
	if Debounces.CanAttack == true then
442
        Debounces.CanAttack = false
443
        Debounces.on = true
444
        Debounces.NoIdl = true
445
local HitBox = Instance.new("Part",char)
446
HitBox.Size = Vector3.new(5,5,5)
447
HitBox.CanCollide = false
448
HitBox.Transparency = math.huge
449
local HitBox2 = Instance.new("Weld",HitBox)
450
HitBox2.Part0 = larm
451
HitBox2.Part1 = HitBox
452
HitBox2.C0 = CFrame.new(0,-1.3,0)
453
HitBox.Touched:connect(function(hit)
454
	if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
455
		local SFXZ = Instance.new("Sound",torso)
456
			SFXZ.SoundId = "rbxassetid://743886825"
457
			SFXZ.Volume = math.huge
458
			SFXZ.Pitch = 0.5
459
			SFXZ.Looped = false
460
			SFXZ:Play()
461
		HitBox:remove()
462
		hit.Parent.Humanoid:TakeDamage(88)
463
		hit.Parent.Humanoid.PlatformStand = true
464
		local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
465
			Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
466
			Fl.velocity = rleg.CFrame.lookVector*120
467
			wait(0.1)
468
			Fl:remove()
469
	end
470
end)
471
for i = 1,20 do
472
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,5.5,-1)*CFrame.Angles(1.55,0,0.3),.3)
473
        larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(3.1,0,-1),.3)
474
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
475
        torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,0.5),.3)
476
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
477
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3)
478
        if Debounces.on == false then break end
479
    wait()
480
end
481
local SFXZ = Instance.new("Sound",torso)
482
		SFXZ.SoundId = "rbxassetid://169259383"
483
		SFXZ.Volume = math.huge
484
		SFXZ.Pitch = 0.5
485
		SFXZ.Looped = false
486
		wait(0.01)
487
		SFXZ:Play()
488
for i = 1,20 do
489
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3),.3)
490
        larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-3,12,-2.5) *CFrame.Angles(3.1,0,1),.3)
491
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
492
        torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,-0.5),.3)
493
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
494
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3)
495
        if Debounces.on == false then break end
496
    wait()
497
end
498
if Debounces.CanAttack == false then
499
        Debounces.CanAttack = true
500
        Debounces.on = false
501
        Debounces.NoIdl = false
502
HitBox:remove()
503
end
504
end
505
end
506
function Grab()
507
	if Debounces.CanAttack == true then
508
        Debounces.CanAttack = false
509
        Debounces.on = true
510
        Debounces.NoIdl = true
511
for i = 1,20 do
512
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(9,9,-1)*CFrame.Angles(2.8,0,0),.3)
513
         larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
514
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
515
        torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3)
516
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
517
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3)
518
        if Debounces.on == false then break end
519
    wait()
520
end
521
local HitBox = Instance.new("Part",char)
522
HitBox.Size = Vector3.new(5,5,5)
523
HitBox.CanCollide = false
524
HitBox.Transparency = math.huge
525
local HitBox2 = Instance.new("Weld",HitBox)
526
HitBox2.Part0 = rarm
527
HitBox2.Part1 = HitBox
528
HitBox2.C0 = CFrame.new(0,-4.5,0)
529
HitBox.Touched:connect(function(hit)
530
	if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
531
		if not DD then DD = true
532
		HitBox:remove()
533
		hit.Parent.Humanoid.PlatformStand = true
534
		local We = Instance.new("Weld",hit.Parent.Torso)
535
		We.Part0 = rarm
536
		We.Part1 = hit.Parent.Torso
537
		We.C0 = CFrame.new(0,-7,0)*CFrame.Angles(-1.55,0,0)
538
		wait(1)
539
		for i = 1,20 do
540
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,-1)*CFrame.Angles(1.55,0,-0.5),.3)
541
         larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
542
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
543
        torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3)
544
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
545
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3)
546
        if Debounces.on == false then break end
547
    wait()
548
		end
549
		for i = 1,4 do
550
			local SS = Instance.new("Sound",hit.Parent.Torso)
551
			SS.SoundId = "rbxassetid://134854740"
552
			SS.Volume = math.huge
553
			SS.Looped = false
554
			SS.Pitch = 0.9
555
			SS:play()
556
				local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
557
			partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
558
			partasdeff.LightEmission = .1
559
			partasdeff.Size = NumberSequence.new(0.2)
560
			partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
561
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
562
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
563
			partasdeff.Transparency = bbb
564
			partasdeff.Size = aaa
565
			partasdeff.ZOffset = .9
566
			partasdeff.Acceleration = Vector3.new(0, -5, 0)
567
			partasdeff.LockedToPart = false
568
			partasdeff.EmissionDirection = "Top"
569
			partasdeff.Lifetime = NumberRange.new(1, 2)
570
			partasdeff.Rate = 1000
571
			partasdeff.Rotation = NumberRange.new(-100, 100)
572
			partasdeff.RotSpeed = NumberRange.new(-100, 100)
573
			partasdeff.Speed = NumberRange.new(10)
574
			partasdeff.VelocitySpread = 300
575
			partasdeff.Enabled = true
576
			wait(0.005)
577
			local Ring = Instance.new("Part",hit.Parent.Torso)
578
			Ring.BrickColor = BrickColor.new("Camo")
579
			Ring.CanCollide = false
580
			Ring.Anchored = true
581
			Ring.CFrame = hit.Parent.Torso.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0,0)
582
			local Ring2 = Instance.new("SpecialMesh",Ring)
583
			Ring2.MeshId = "rbxassetid://3270017"
584
			Ring2.Scale = Vector3.new(1,1,1)
585
			coroutine.resume(coroutine.create(function()
586
			for i = 1,130 do
587
				Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
588
				Ring.Transparency = Ring.Transparency + 0.009
589
				game:GetService("RunService").RenderStepped:wait()
590
			end
591
			wait(0.5)
592
			Ring:remove()
593
			end))
594
			for i = 1,20 do
595
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,-3)*CFrame.Angles(1.55,0,-0.1),.3)
596
         larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
597
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
598
        torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3)
599
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
600
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3)
601
        if Debounces.on == false then break end
602
    wait()
603
			end
604
			for i = 1,20 do
605
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,0)*CFrame.Angles(1.55,0,-0.1),.3)
606
         larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
607
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
608
        torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3)
609
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
610
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3)
611
        if Debounces.on == false then break end
612
    wait()
613
			end
614
			partasdeff.Enabled = false
615
		end
616
		hit.Parent:BreakJoints()
617
		We:remove()
618
		if Debounces.CanAttack == false then
619
        Debounces.CanAttack = true
620
        Debounces.on = false
621
        Debounces.NoIdl = false
622
		end
623
		wait(1)
624
		DD = false
625
		end
626
		end
627
end)
628
wait(8)
629
if Debounces.CanAttack == false then
630
        Debounces.CanAttack = true
631
        Debounces.on = false
632
        Debounces.NoIdl = false
633
HitBox:remove()
634
end
635
end
636
end
637
----------------------------------------------------
638
mouse.Button1Down:connect(function(key)
639
	if attack == false and attacktype == 1 then
640
		Hit()
641
		attacktype = 2
642
	elseif attack == false and attacktype == 2 then
643
		Hit2()
644
		attacktype = 1
645
	end
646
end)
647
mouse.KeyDown:connect(function(key)
648
	if key == "e" then
649
		Grab()
650
	end
651
end)
652
----------------------------------------------------
653
local animpose = "Idle"
654
local lastanimpose = "Idle"
655
local sine = 0
656
local change = 1
657
local val = 0
658
local ffing = false
659
----------------------------------------------------
660
local x = Instance.new("Sound", char.Torso)
661
x.SoundId = "http://www.roblox.com/asset/?id=273962540"
662
x.Looped = true
663
x.Volume = 1
664
x.Pitch = 1
665
local footsteps = false
666
-------------------------------
667
game:GetService("RunService").RenderStepped:connect(function()
668
rarm.BrickColor = ASD
669
larm.BrickColor = ASD
670
rleg.BrickColor = ASD
671
lleg.BrickColor = ASD
672
hed.BrickColor = ASD
673
torso.BrickColor = ASD
674
--[[if char.Humanoid.Jump == true then
675
jump = true
676
else
677
jump = false
678
end]]
679
char.Humanoid.FreeFalling:connect(function(f)
680
if f then
681
ffing = true
682
else
683
ffing = false
684
end
685
end)
686
sine = sine + change
687
if jumpn == true then
688
animpose = "Jumping"
689
elseif ffing == true then
690
animpose = "Freefalling"
691
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
692
animpose = "Idle"
693
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
694
animpose = "Walking"
695
end
696
if animpose ~= lastanimpose then
697
sine = 0
698
if Debounces.NoIdl == false then
699
if animpose == "Idle" then
700
for i = 1, 2 do
701
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2)
702
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2)
703
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0), 0.2)
704
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0) * CFrame.Angles(-1.55,0,0), 0.2)
705
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55, 0, math.rad(-10)), 0.2)
706
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.55, 0, math.rad(10)), 0.2)
707
end
708
elseif animpose == "Walking" then
709
for i = 1, 2 do
710
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2)
711
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3), 0.2)
712
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0),0.2)
713
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0) * CFrame.Angles(-1.55, 0,0),0.2)
714
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55, 0, 0), .4)
715
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.55, 0, 0), .4)
716
end
717
wait()
718
end
719
else
720
end
721
end
722
lastanimpose = animpose
723
if Debounces.NoIdl == false then
724
if animpose == "Idle" then
725
if stanceToggle == "Normal" then
726
change = 0.5
727
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3)*CFrame.new(0,0-.1*math.sin(tick()*2),0-.1*math.sin(tick()*2)),.2)
728
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3)*CFrame.new(0,0-.1*math.sin(tick()*2),0-.1*math.sin(tick()*2)),.2)
729
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0)*CFrame.Angles(0-.1*math.sin(tick()*2),0,0),.3)
730
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0)*CFrame.Angles(-1.55,0,0)*CFrame.new(0,0-.15*math.sin(tick()*2),0),1)
731
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,-0.1), 0.2)
732
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.2,0,0.1)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0-.1*math.sin(tick()*2),0,0), 0.2)
733
elseif stanceToggle == "Sitting" then
734
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
735
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
736
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
737
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
738
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
739
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
740
end
741
elseif animpose == "Walking" then
742
if stanceToggle == "Normal" then
743
change = 1
744
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3)*CFrame.Angles(0-.8*math.sin(tick()*9),0,0),.3)
745
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3)*CFrame.Angles(0+.8*math.sin(tick()*9),0,0),.3)
746
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0)*CFrame.Angles(0-.1*math.sin(tick()*9),0,0),.3)
747
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0)*CFrame.Angles(-1.55,0,0)*CFrame.new(0,0,0-.2*math.sin(tick()*9)),1)
748
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,-0.1)*CFrame.Angles(0-.8*math.sin(tick()*9),0,0), 0.2)
749
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.2,0,0.1)*CFrame.Angles(0+.8*math.sin(tick()*9),0,0),0.2)
750
end
751
end
752
end
753
end)