View difference between Paste ID: mFLiFxy2 and PShWSMLR
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
    local rp = RealPlayer
6
    script.Parent = rp.Character
7
   
8
    --RemoteEvent for communicating
9
    local Event = Instance.new("RemoteEvent")
10
    Event.Name = "UserInput_Event"
11
 
12
    --Fake event to make stuff like Mouse.KeyDown work
13
    local function fakeEvent()
14
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
15
        t.connect = t.Connect
16
        return t
17
    end
18
 
19
    --Creating fake input objects with fake variables
20
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
21
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
22
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
23
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
24
    end}
25
    --Merged 2 functions into one by checking amount of arguments
26
    CAS.UnbindAction = CAS.BindAction
27
 
28
    --This function will trigger the events that have been :Connect()'ed
29
    local function te(self,ev,...)
30
        local t = m[ev]
31
        if t and t._fakeEvent then
32
            for _,f in pairs(t.Functions) do
33
                f(...)
34
            end
35
        end
36
    end
37
    m.TrigEvent = te
38
    UIS.TrigEvent = te
39
 
40
    Event.OnServerEvent:Connect(function(plr,io)
41
        if plr~=rp then return end
42
        m.Target = io.Target
43
        m.Hit = io.Hit
44
        if not io.isMouse then
45
            local b = io.UserInputState == Enum.UserInputState.Begin
46
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
47
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
48
            end
49
            for _,t in pairs(CAS.Actions) do
50
                for _,k in pairs(t.Keys) do
51
                    if k==io.KeyCode then
52
                        t.Function(t.Name,io.UserInputState,io)
53
                    end
54
                end
55
            end
56
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
57
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
58
        end
59
    end)
60
    Event.Parent = NLS([==[
61
    local Player = game:GetService("Players").LocalPlayer
62
    local Event = script:WaitForChild("UserInput_Event")
63
 
64
    local Mouse = Player:GetMouse()
65
    local UIS = game:GetService("UserInputService")
66
    local input = function(io,a)
67
        if a then return end
68
        --Since InputObject is a client-side instance, we create and pass table instead
69
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
70
    end
71
    UIS.InputBegan:Connect(input)
72
    UIS.InputEnded:Connect(input)
73
 
74
    local h,t
75
    --Give the server mouse data 30 times every second, but only if the values changed
76
    --If player is not moving their mouse, client won't fire events
77
    while wait(1/30) do
78
        if h~=Mouse.Hit or t~=Mouse.Target then
79
            h,t=Mouse.Hit,Mouse.Target
80
            Event:FireServer({isMouse=true,Target=t,Hit=h})
81
        end
82
    end]==],Player.Character)
83
 
84
    ----Sandboxed game object that allows the usage of client-side methods and services
85
    --Real game object
86
    local _rg = game
87
 
88
    --Metatable for fake service
89
    local fsmt = {
90
        __index = function(self,k)
91
            local s = rawget(self,"_RealService")
92
            if s then return s[k] end
93
        end,
94
        __newindex = function(self,k,v)
95
            local s = rawget(self,"_RealService")
96
            if s then s[k]=v end
97
        end,
98
        __call = function(self,...)
99
            local s = rawget(self,"_RealService")
100
            if s then return s(...) end
101
        end
102
    }
103
    local function FakeService(t,RealService)
104
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
105
        return setmetatable(t,fsmt)
106
    end
107
 
108
    --Fake game object
109
    local g = {
110
        GetService = function(self,s)
111
            return self[s]
112
        end,
113
        Players = FakeService({
114
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
115
        },"Players"),
116
        UserInputService = FakeService(UIS,"UserInputService"),
117
        ContextActionService = FakeService(CAS,"ContextActionService"),
118
    }
119
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
120
    g.service = g.GetService
121
   
122
    g.RunService = FakeService({
123
        RenderStepped = _rg:GetService("RunService").Heartbeat,
124
        BindToRenderStep = function(self,name,_,fun)
125
            self._btrs[name] = self.Heartbeat:Connect(fun)
126
        end,
127
        UnbindFromRenderStep = function(self,name)
128
            self._btrs[name]:Disconnect()
129
        end,
130
    },"RunService")
131
 
132
    setmetatable(g,{
133
        __index=function(self,s)
134
            return _rg:GetService(s) or typeof(_rg[s])=="function"
135
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
136
        end,
137
        __newindex = fsmt.__newindex,
138
        __call = fsmt.__call
139
    })
140
    --Changing owner to fake player object to support owner:GetMouse()
141
    game,owner = g,g.Players.LocalPlayer
142
end
143
 
144
Player = owner
145
PlayerGui = Player.PlayerGui
146
Cam = workspace.CurrentCamera
147
Backpack = Player.Backpack
148
Character = Player.Character
149
Humanoid = Character.Humanoid
150
Mouse = Player:GetMouse()
151
RootPart = Character["HumanoidRootPart"]
152
Torso = Character["Torso"]
153
Head = Character["Head"]
154
RightArm = Character["Right Arm"]
155
LeftArm = Character["Left Arm"]
156
RightLeg = Character["Right Leg"]
157
LeftLeg = Character["Left Leg"]
158
RootJoint = RootPart["RootJoint"]
159
Neck = Torso["Neck"]
160
RightShoulder = Torso["Right Shoulder"]
161
LeftShoulder = Torso["Left Shoulder"]
162
RightHip = Torso["Right Hip"]
163
LeftHip = Torso["Left Hip"]
164
 
165
Character = Player.Character
166
Humanoid = Character.Humanoid
167
 
168
-------------------------------------------------------
169
 
170
local FavIDs = {
171
    340106355, --Nefl Crystals
172
    927529620, --Dimension
173
    876981900, --Fantasy
174
    398987889, --Ordinary Days
175
    1117396305, --Oh wait, it's you.
176
    885996042, --Action Winter Journey
177
    919231299, --Sprawling Idiot Effigy
178
    743466274, --Good Day Sunshine
179
    727411183, --Knife Fight
180
    1402748531, --The Earth Is Counting On You!
181
    595230126 --Robot Language
182
    }
183
 
184
 
185
 
186
wait(0.2)
187
local plr = game:service'Players'.LocalPlayer
188
local char = plr.Character
189
local hum = char.Humanoid
190
local hed = char.Head
191
local root = char.HumanoidRootPart
192
local rootj = root.RootJoint
193
local tors = char.Torso
194
local ra = char["Right Arm"]
195
local la = char["Left Arm"]
196
local rl = char["Right Leg"]
197
local ll = char["Left Leg"]
198
local neck = tors["Neck"]
199
local mouse = plr:GetMouse()
200
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
201
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
202
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
203
local maincolor = BrickColor.new("Really grey")
204
 
205
-------------------------------------------------------
206
--Start Good Stuff--
207
-------------------------------------------------------
208
cam = game.Workspace.CurrentCamera
209
CF = CFrame.new
210
angles = CFrame.Angles
211
attack = false
212
Euler = CFrame.fromEulerAnglesXYZ
213
Rad = math.rad
214
IT = Instance.new
215
BrickC = BrickColor.new
216
Cos = math.cos
217
Acos = math.acos
218
Sin = math.sin
219
Asin = math.asin
220
Abs = math.abs
221
Mrandom = math.random
222
Floor = math.floor
223
-------------------------------------------------------
224
--End Good Stuff--
225
-------------------------------------------------------
226
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
227
RSH, LSH = nil, nil
228
RW = Instance.new("Weld")
229
LW = Instance.new("Weld")
230
RH = tors["Right Hip"]
231
LH = tors["Left Hip"]
232
RSH = tors["Right Shoulder"]
233
LSH = tors["Left Shoulder"]
234
RSH.Parent = nil
235
LSH.Parent = nil
236
RW.Name = "RW"
237
RW.Part0 = tors
238
RW.C0 = CF(1.5, 0.5, 0)
239
RW.C1 = CF(0, 0.5, 0)
240
RW.Part1 = ra
241
RW.Parent = tors
242
LW.Name = "LW"
243
LW.Part0 = tors
244
LW.C0 = CF(-1.5, 0.5, 0)
245
LW.C1 = CF(0, 0.5, 0)
246
LW.Part1 = la
247
LW.Parent = tors
248
Effects = {}
249
-------------------------------------------------------
250
--Start HeartBeat--
251
-------------------------------------------------------
252
ArtificialHB = Instance.new("BindableEvent", script)
253
ArtificialHB.Name = "Heartbeat"
254
script:WaitForChild("Heartbeat")
255
 
256
frame = 1 / 60
257
tf = 0
258
allowframeloss = false
259
tossremainder = false
260
 
261
 
262
lastframe = tick()
263
script.Heartbeat:Fire()
264
 
265
 
266
game:GetService("RunService").Heartbeat:connect(function(s, p)
267
    tf = tf + s
268
    if tf >= frame then
269
        if allowframeloss then
270
            script.Heartbeat:Fire()
271
            lastframe = tick()
272
        else
273
            for i = 1, math.floor(tf / frame) do
274
                script.Heartbeat:Fire()
275
            end
276
            lastframe = tick()
277
        end
278
        if tossremainder then
279
            tf = 0
280
        else
281
            tf = tf - frame * math.floor(tf / frame)
282
        end
283
    end
284
end)
285
-------------------------------------------------------
286
--End HeartBeat--
287
-------------------------------------------------------
288
 
289
-------------------------------------------------------
290
--Start Important Functions--
291
-------------------------------------------------------
292
function swait(num)
293
    if num == 0 or num == nil then
294
        game:service("RunService").Stepped:wait(0)
295
    else
296
        for i = 0, num do
297
            game:service("RunService").Stepped:wait(0)
298
        end
299
    end
300
end
301
function thread(f)
302
    coroutine.resume(coroutine.create(f))
303
end
304
function clerp(a, b, t)
305
    local qa = {
306
        QuaternionFromCFrame(a)
307
    }
308
    local qb = {
309
        QuaternionFromCFrame(b)
310
    }
311
    local ax, ay, az = a.x, a.y, a.z
312
    local bx, by, bz = b.x, b.y, b.z
313
    local _t = 1 - t
314
    return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
315
end
316
function QuaternionFromCFrame(cf)
317
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
318
    local trace = m00 + m11 + m22
319
    if trace > 0 then
320
        local s = math.sqrt(1 + trace)
321
        local recip = 0.5 / s
322
        return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
323
    else
324
        local i = 0
325
        if m00 < m11 then
326
            i = 1
327
        end
328
        if m22 > (i == 0 and m00 or m11) then
329
            i = 2
330
        end
331
        if i == 0 then
332
            local s = math.sqrt(m00 - m11 - m22 + 1)
333
            local recip = 0.5 / s
334
            return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
335
        elseif i == 1 then
336
            local s = math.sqrt(m11 - m22 - m00 + 1)
337
            local recip = 0.5 / s
338
            return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
339
        elseif i == 2 then
340
            local s = math.sqrt(m22 - m00 - m11 + 1)
341
            local recip = 0.5 / s
342
            return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
343
        end
344
    end
345
end
346
function QuaternionToCFrame(px, py, pz, x, y, z, w)
347
    local xs, ys, zs = x + x, y + y, z + z
348
    local wx, wy, wz = w * xs, w * ys, w * zs
349
    local xx = x * xs
350
    local xy = x * ys
351
    local xz = x * zs
352
    local yy = y * ys
353
    local yz = y * zs
354
    local zz = z * zs
355
    return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
356
end
357
function QuaternionSlerp(a, b, t)
358
    local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
359
    local startInterp, finishInterp
360
    if cosTheta >= 1.0E-4 then
361
        if 1 - cosTheta > 1.0E-4 then
362
            local theta = math.acos(cosTheta)
363
            local invSinTheta = 1 / Sin(theta)
364
            startInterp = Sin((1 - t) * theta) * invSinTheta
365
            finishInterp = Sin(t * theta) * invSinTheta
366
        else
367
            startInterp = 1 - t
368
            finishInterp = t
369
        end
370
    elseif 1 + cosTheta > 1.0E-4 then
371
        local theta = math.acos(-cosTheta)
372
        local invSinTheta = 1 / Sin(theta)
373
        startInterp = Sin((t - 1) * theta) * invSinTheta
374
        finishInterp = Sin(t * theta) * invSinTheta
375
    else
376
        startInterp = t - 1
377
        finishInterp = t
378
    end
379
    return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
380
end
381
function rayCast(Position, Direction, Range, Ignore)
382
    return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
383
end
384
local RbxUtility = LoadLibrary("RbxUtility")
385
local Create = RbxUtility.Create
386
 
387
-------------------------------------------------------
388
--Start Damage Function--
389
-------------------------------------------------------
390
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
391
    if hit.Parent == nil then
392
        return
393
    end
394
    local h = hit.Parent:FindFirstChildOfClass("Humanoid")
395
    for _, v in pairs(hit.Parent:children()) do
396
        if v:IsA("Humanoid") then
397
            h = v
398
        end
399
    end
400
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
401
   
402
         hit.Parent:FindFirstChild("Head"):BreakJoints()
403
         end
404
 
405
    if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
406
        if hit.Parent:findFirstChild("DebounceHit") ~= nil then
407
            if hit.Parent.DebounceHit.Value == true then
408
                return
409
            end
410
        end
411
         if insta == true then
412
         hit.Parent:FindFirstChild("Head"):BreakJoints()
413
         end
414
        local c = Create("ObjectValue"){
415
            Name = "creator",
416
            Value = game:service("Players").LocalPlayer,
417
            Parent = h,
418
        }
419
        game:GetService("Debris"):AddItem(c, .5)
420
        if HitSound ~= nil and HitPitch ~= nil then
421
            CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
422
        end
423
        local Damage = math.random(minim, maxim)
424
        local blocked = false
425
        local block = hit.Parent:findFirstChild("Block")
426
        if block ~= nil then
427
            if block.className == "IntValue" then
428
                if block.Value > 0 then
429
                    blocked = true
430
                    block.Value = block.Value - 1
431
                    print(block.Value)
432
                end
433
            end
434
        end
435
        if blocked == false then
436
            h.Health = h.Health - Damage
437
            ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
438
        else
439
            h.Health = h.Health - (Damage / 2)
440
            ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
441
        end
442
        if Type == "Knockdown" then
443
            local hum = hit.Parent.Humanoid
444
            hum.PlatformStand = true
445
            coroutine.resume(coroutine.create(function(HHumanoid)
446
                swait(1)
447
                HHumanoid.PlatformStand = false
448
            end), hum)
449
            local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
450
            local bodvol = Create("BodyVelocity"){
451
                velocity = angle * knockback,
452
                P = 5000,
453
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
454
                Parent = hit,
455
            }
456
            local rl = Create("BodyAngularVelocity"){
457
                P = 3000,
458
                maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
459
                angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
460
                Parent = hit,
461
            }
462
            game:GetService("Debris"):AddItem(bodvol, .5)
463
            game:GetService("Debris"):AddItem(rl, .5)
464
        elseif Type == "Normal" then
465
            local vp = Create("BodyVelocity"){
466
                P = 500,
467
                maxForce = Vector3.new(math.huge, 0, math.huge),
468
                velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
469
            }
470
            if knockback > 0 then
471
                vp.Parent = hit.Parent.Torso
472
            end
473
            game:GetService("Debris"):AddItem(vp, .5)
474
        elseif Type == "Up" then
475
            local bodyVelocity = Create("BodyVelocity"){
476
                velocity = Vector3.new(0, 20, 0),
477
                P = 5000,
478
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
479
                Parent = hit,
480
            }
481
            game:GetService("Debris"):AddItem(bodyVelocity, .5)
482
        elseif Type == "DarkUp" then
483
            coroutine.resume(coroutine.create(function()
484
                for i = 0, 1, 0.1 do
485
                    swait()
486
                    Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
487
                end
488
            end))
489
            local bodyVelocity = Create("BodyVelocity"){
490
                velocity = Vector3.new(0, 20, 0),
491
                P = 5000,
492
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
493
                Parent = hit,
494
            }
495
            game:GetService("Debris"):AddItem(bodyVelocity, 1)
496
        elseif Type == "Snare" then
497
            local bp = Create("BodyPosition"){
498
                P = 2000,
499
                D = 100,
500
                maxForce = Vector3.new(math.huge, math.huge, math.huge),
501
                position = hit.Parent.Torso.Position,
502
                Parent = hit.Parent.Torso,
503
            }
504
            game:GetService("Debris"):AddItem(bp, 1)
505
        elseif Type == "Freeze" then
506
            local BodPos = Create("BodyPosition"){
507
                P = 50000,
508
                D = 1000,
509
                maxForce = Vector3.new(math.huge, math.huge, math.huge),
510
                position = hit.Parent.Torso.Position,
511
                Parent = hit.Parent.Torso,
512
            }
513
            local BodGy = Create("BodyGyro") {
514
                maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
515
                P = 20e+003,
516
                Parent = hit.Parent.Torso,
517
                cframe = hit.Parent.Torso.CFrame,
518
            }
519
            hit.Parent.Torso.Anchored = true
520
            coroutine.resume(coroutine.create(function(Part)
521
                swait(1.5)
522
                Part.Anchored = false
523
            end), hit.Parent.Torso)
524
            game:GetService("Debris"):AddItem(BodPos, 3)
525
            game:GetService("Debris"):AddItem(BodGy, 3)
526
        end
527
        local debounce = Create("BoolValue"){
528
            Name = "DebounceHit",
529
            Parent = hit.Parent,
530
            Value = true,
531
        }
532
        game:GetService("Debris"):AddItem(debounce, Delay)
533
        c = Create("ObjectValue"){
534
            Name = "creator",
535
            Value = Player,
536
            Parent = h,
537
        }
538
        game:GetService("Debris"):AddItem(c, .5)
539
    end
540
end
541
-------------------------------------------------------
542
--End Damage Function--
543
-------------------------------------------------------
544
 
545
-------------------------------------------------------
546
--Start Damage Function Customization--
547
-------------------------------------------------------
548
function ShowDamage(Pos, Text, Time, Color)
549
    local Rate = (1 / 30)
550
    local Pos = (Pos or Vector3.new(0, 0, 0))
551
    local Text = (Text or "")
552
    local Time = (Time or 2)
553
    local Color = (Color or Color3.new(17, 17, 17))
554
    local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
555
    EffectPart.Anchored = true
556
    local BillboardGui = Create("BillboardGui"){
557
        Size = UDim2.new(3, 0, 3, 0),
558
        Adornee = EffectPart,
559
        Parent = EffectPart,
560
    }
561
    local TextLabel = Create("TextLabel"){
562
        BackgroundTransparency = 1,
563
        Size = UDim2.new(1, 0, 1, 0),
564
        Text = Text,
565
        Font = "Bodoni",
566
        TextColor3 = Color,
567
        TextScaled = true,
568
        TextStrokeColor3 = Color3.fromRGB(0,0,0),
569
        Parent = BillboardGui,
570
    }
571
    game.Debris:AddItem(EffectPart, (Time))
572
    EffectPart.Parent = game:GetService("Workspace")
573
    delay(0, function()
574
        local Frames = (Time / Rate)
575
        for Frame = 1, Frames do
576
            wait(Rate)
577
            local Percent = (Frame / Frames)
578
            EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
579
            TextLabel.TextTransparency = Percent
580
        end
581
        if EffectPart and EffectPart.Parent then
582
            EffectPart:Destroy()
583
        end
584
    end)
585
end
586
-------------------------------------------------------
587
--End Damage Function Customization--
588
-------------------------------------------------------
589
 
590
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
591
  for _, c in pairs(workspace:children()) do
592
    local hum = c:findFirstChild("Humanoid")
593
    if hum ~= nil then
594
      local head = c:findFirstChild("Head")
595
      if head ~= nil then
596
        local targ = head.Position - Part.Position
597
        local mag = targ.magnitude
598
        if magni >= mag and c.Name ~= plr.Name then
599
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
600
        end
601
      end
602
    end
603
  end
604
end
605
 
606
 
607
CFuncs = {
608
    Part = {
609
        Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
610
            local Part = Create("Part")({
611
                Parent = Parent,
612
                Reflectance = Reflectance,
613
                Transparency = Transparency,
614
                CanCollide = false,
615
                Locked = true,
616
                BrickColor = BrickColor.new(tostring(BColor)),
617
                Name = Name,
618
                Size = Size,
619
                Material = Material
620
            })
621
            RemoveOutlines(Part)
622
            return Part
623
        end
624
    },
625
    Mesh = {
626
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
627
            local Msh = Create(Mesh)({
628
                Parent = Part,
629
                Offset = OffSet,
630
                Scale = Scale
631
            })
632
            if Mesh == "SpecialMesh" then
633
                Msh.MeshType = MeshType
634
                Msh.MeshId = MeshId
635
            end
636
            return Msh
637
        end
638
    },
639
    Mesh = {
640
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
641
            local Msh = Create(Mesh)({
642
                Parent = Part,
643
                Offset = OffSet,
644
                Scale = Scale
645
            })
646
            if Mesh == "SpecialMesh" then
647
                Msh.MeshType = MeshType
648
                Msh.MeshId = MeshId
649
            end
650
            return Msh
651
        end
652
    },
653
    Weld = {
654
        Create = function(Parent, Part0, Part1, C0, C1)
655
            local Weld = Create("Weld")({
656
                Parent = Parent,
657
                Part0 = Part0,
658
                Part1 = Part1,
659
                C0 = C0,
660
                C1 = C1
661
            })
662
            return Weld
663
        end
664
    },
665
    Sound = {
666
        Create = function(id, par, vol, pit)
667
            coroutine.resume(coroutine.create(function()
668
                local S = Create("Sound")({
669
                    Volume = vol,
670
                    Pitch = pit or 1,
671
                    SoundId = id,
672
                    Parent = par or workspace
673
                })
674
                wait()
675
                S:play()
676
                game:GetService("Debris"):AddItem(S, 6)
677
            end))
678
        end
679
    },
680
    ParticleEmitter = {
681
        Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
682
            local fp = Create("ParticleEmitter")({
683
                Parent = Parent,
684
                Color = ColorSequence.new(Color1, Color2),
685
                LightEmission = LightEmission,
686
                Size = Size,
687
                Texture = Texture,
688
                Transparency = Transparency,
689
                ZOffset = ZOffset,
690
                Acceleration = Accel,
691
                Drag = Drag,
692
                LockedToPart = LockedToPart,
693
                VelocityInheritance = VelocityInheritance,
694
                EmissionDirection = EmissionDirection,
695
                Enabled = Enabled,
696
                Lifetime = LifeTime,
697
                Rate = Rate,
698
                Rotation = Rotation,
699
                RotSpeed = RotSpeed,
700
                Speed = Speed,
701
                VelocitySpread = VelocitySpread
702
            })
703
            return fp
704
        end
705
    }
706
}
707
function RemoveOutlines(part)
708
    part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
709
end
710
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
711
    local Part = Create("Part")({
712
        formFactor = FormFactor,
713
        Parent = Parent,
714
        Reflectance = Reflectance,
715
        Transparency = Transparency,
716
        CanCollide = false,
717
        Locked = true,
718
        BrickColor = BrickColor.new(tostring(BColor)),
719
        Name = Name,
720
        Size = Size,
721
        Material = Material
722
    })
723
    RemoveOutlines(Part)
724
    return Part
725
end
726
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
727
    local Msh = Create(Mesh)({
728
        Parent = Part,
729
        Offset = OffSet,
730
        Scale = Scale
731
    })
732
    if Mesh == "SpecialMesh" then
733
        Msh.MeshType = MeshType
734
        Msh.MeshId = MeshId
735
    end
736
    return Msh
737
end
738
function CreateWeld(Parent, Part0, Part1, C0, C1)
739
    local Weld = Create("Weld")({
740
        Parent = Parent,
741
        Part0 = Part0,
742
        Part1 = Part1,
743
        C0 = C0,
744
        C1 = C1
745
    })
746
    return Weld
747
end
748
 
749
 
750
-------------------------------------------------------
751
--Start Effect Function--
752
-------------------------------------------------------
753
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
754
    local NEWWELD = IT(TYPE)
755
    NEWWELD.Part0 = PART0
756
    NEWWELD.Part1 = PART1
757
    NEWWELD.C0 = C0
758
    NEWWELD.C1 = C1
759
    NEWWELD.Parent = PARENT
760
    return NEWWELD
761
end
762
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
763
    local NEWMESH = IT(MESH)
764
    if MESH == "SpecialMesh" then
765
        NEWMESH.MeshType = MESHTYPE
766
        if MESHID ~= "nil" and MESHID ~= "" then
767
            NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
768
        end
769
        if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
770
            NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
771
        end
772
    end
773
    NEWMESH.Offset = OFFSET or VT(0, 0, 0)
774
    NEWMESH.Scale = SCALE
775
    NEWMESH.Parent = PARENT
776
    return NEWMESH
777
end
778
779
EffectModel = Instance.new("Model", char)
780
Effects = {
781
  Block = {
782
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
783
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
784
      prt.Anchored = true
785
      prt.CFrame = cframe
786
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
787
      game:GetService("Debris"):AddItem(prt, 10)
788
      if Type == 1 or Type == nil then
789
        table.insert(Effects, {
790
          prt,
791
          "Block1",
792
          delay,
793
          x3,
794
          y3,
795
          z3,
796
          msh
797
        })
798
      elseif Type == 2 then
799
        table.insert(Effects, {
800
          prt,
801
          "Block2",
802
          delay,
803
          x3,
804
          y3,
805
          z3,
806
          msh
807
        })
808
      else
809
        table.insert(Effects, {
810
          prt,
811
          "Block3",
812
          delay,
813
          x3,
814
          y3,
815
          z3,
816
          msh
817
        })
818
      end
819
    end
820
  },
821
  Sphere = {
822
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
823
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
824
      prt.Anchored = true
825
      prt.CFrame = cframe
826
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
827
      game:GetService("Debris"):AddItem(prt, 10)
828
      table.insert(Effects, {
829
        prt,
830
        "Cylinder",
831
        delay,
832
        x3,
833
        y3,
834
        z3,
835
        msh
836
      })
837
    end
838
  },
839
  Cylinder = {
840
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
841
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
842
      prt.Anchored = true
843
      prt.CFrame = cframe
844
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
845
      game:GetService("Debris"):AddItem(prt, 10)
846
      table.insert(Effects, {
847
        prt,
848
        "Cylinder",
849
        delay,
850
        x3,
851
        y3,
852
        z3,
853
        msh
854
      })
855
    end
856
  },
857
  Wave = {
858
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
859
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
860
      prt.Anchored = true
861
      prt.CFrame = cframe
862
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://0", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
863
                    Cso("2755928629", tors, 10, 1)
864
        chatfunc("print (''you got that'')", BrickColor.new("Really red").Color)
865
        wait(0,35)
866
      game:GetService("Debris"):AddItem(prt, 10)
867
      table.insert(Effects, {
868
        prt,
869
        "Cylinder",
870
        delay,
871
        x3 / 60,
872
        y3 / 60,
873
        z3 / 60,
874
        msh
875
      })
876
    end
877
  },
878
  Ring = {
879
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
880
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
881
      prt.Anchored = true
882
      prt.CFrame = cframe
883
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
884
      game:GetService("Debris"):AddItem(prt, 10)
885
      table.insert(Effects, {
886
        prt,
887
        "Cylinder",
888
        delay,
889
        x3,
890
        y3,
891
        z3,
892
        msh
893
      })
894
    end
895
  },
896
  Break = {
897
    Create = function(brickcolor, cframe, x1, y1, z1)
898
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
899
      prt.Anchored = true
900
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
901
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
902
      local num = math.random(10, 50) / 1000
903
      game:GetService("Debris"):AddItem(prt, 10)
904
      table.insert(Effects, {
905
        prt,
906
        "Shatter",
907
        num,
908
        prt.CFrame,
909
        math.random() - math.random(),
910
        0,
911
        math.random(50, 100) / 100
912
      })
913
    end
914
  },
915
Spiral = {
916
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
917
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
918
      prt.Anchored = true
919
      prt.CFrame = cframe
920
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
921
      game:GetService("Debris"):AddItem(prt, 10)
922
      table.insert(Effects, {
923
        prt,
924
        "Cylinder",
925
        delay,
926
        x3,
927
        y3,
928
        z3,
929
        msh
930
      })
931
    end
932
  },
933
Push = {
934
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
935
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
936
      prt.Anchored = true
937
      prt.CFrame = cframe
938
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
939
      game:GetService("Debris"):AddItem(prt, 10)
940
      table.insert(Effects, {
941
        prt,
942
        "Cylinder",
943
        delay,
944
        x3,
945
        y3,
946
        z3,
947
        msh
948
      })
949
    end
950
  }
951
}
952
function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
953
    local fp = IT("Part")
954
    fp.formFactor = formfactor
955
    fp.Parent = parent
956
    fp.Reflectance = reflectance
957
    fp.Transparency = transparency
958
    fp.CanCollide = false
959
    fp.Locked = true
960
    fp.BrickColor = brickcolor
961
    fp.Name = name
962
    fp.Size = size
963
    fp.Position = tors.Position
964
    RemoveOutlines(fp)
965
    fp.Material = "SmoothPlastic"
966
    fp:BreakJoints()
967
    return fp
968
end
969
 
970
function mesh(Mesh,part,meshtype,meshid,offset,scale)
971
    local mesh = IT(Mesh)
972
    mesh.Parent = part
973
    if Mesh == "SpecialMesh" then
974
        mesh.MeshType = meshtype
975
    if meshid ~= "nil" then
976
        mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
977
        end
978
    end
979
    mesh.Offset = offset
980
    mesh.Scale = scale
981
    return mesh
982
end
983
 
984
function Magic(bonuspeed, type, pos, scale, value, color, MType)
985
    local type = type
986
    local rng = Instance.new("Part", char)
987
    rng.Anchored = true
988
    rng.BrickColor = color
989
    rng.CanCollide = false
990
    rng.FormFactor = 3
991
    rng.Name = "Ring"
992
    rng.Material = "Neon"
993
    rng.Size = Vector3.new(1, 1, 1)
994
    rng.Transparency = 0
995
    rng.TopSurface = 0
996
    rng.BottomSurface = 0
997
    rng.CFrame = pos
998
    local rngm = Instance.new("SpecialMesh", rng)
999
    rngm.MeshType = MType
1000
    rngm.Scale = scale
1001
    local scaler2 = 1
1002
    if type == "Add" then
1003
        scaler2 = 1 * value
1004
    elseif type == "Divide" then
1005
        scaler2 = 1 / value
1006
    end
1007
    coroutine.resume(coroutine.create(function()
1008
        for i = 0, 10 / bonuspeed, 0.1 do
1009
            swait()
1010
            if type == "Add" then
1011
                scaler2 = scaler2 - 0.01 * value / bonuspeed
1012
            elseif type == "Divide" then
1013
                scaler2 = scaler2 - 0.01 / value * bonuspeed
1014
            end
1015
            rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1016
            rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
1017
        end
1018
        rng:Destroy()
1019
    end))
1020
end
1021
 
1022
function Eviscerate(dude)
1023
    if dude.Name ~= char then
1024
        local bgf = IT("BodyGyro", dude.Head)
1025
        bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1026
        local val = IT("BoolValue", dude)
1027
        val.Name = "IsHit"
1028
        local ds = coroutine.wrap(function()
1029
            dude:WaitForChild("Head"):BreakJoints()
1030
            wait(0.5)
1031
            target = nil
1032
            coroutine.resume(coroutine.create(function()
1033
                for i, v in pairs(dude:GetChildren()) do
1034
                    if v:IsA("Accessory") then
1035
                        v:Destroy()
1036
                    end
1037
                    if v:IsA("Humanoid") then
1038
                        v:Destroy()
1039
                    end
1040
                    if v:IsA("CharacterMesh") then
1041
                        v:Destroy()
1042
                    end
1043
                    if v:IsA("Model") then
1044
                        v:Destroy()
1045
                    end
1046
                    if v:IsA("Part") or v:IsA("MeshPart") then
1047
                        for x, o in pairs(v:GetChildren()) do
1048
                            if o:IsA("Decal") then
1049
                                o:Destroy()
1050
                            end
1051
                        end
1052
                        coroutine.resume(coroutine.create(function()
1053
                            v.Material = "Neon"
1054
                            v.CanCollide = false
1055
                            local PartEmmit1 = IT("ParticleEmitter", v)
1056
                            PartEmmit1.LightEmission = 1
1057
                            PartEmmit1.Texture = "rbxassetid://284205403"
1058
                            PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1059
                            PartEmmit1.Rate = 150
1060
                            PartEmmit1.Lifetime = NumberRange.new(1)
1061
                            PartEmmit1.Size = NumberSequence.new({
1062
                                NumberSequenceKeypoint.new(0, 0.75, 0),
1063
                                NumberSequenceKeypoint.new(1, 0, 0)
1064
                            })
1065
                            PartEmmit1.Transparency = NumberSequence.new({
1066
                                NumberSequenceKeypoint.new(0, 0, 0),
1067
                                NumberSequenceKeypoint.new(1, 1, 0)
1068
                            })
1069
                            PartEmmit1.Speed = NumberRange.new(0, 0)
1070
                            PartEmmit1.VelocitySpread = 30000
1071
                            PartEmmit1.Rotation = NumberRange.new(-500, 500)
1072
                            PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
1073
                            local BodPoss = IT("BodyPosition", v)
1074
                            BodPoss.P = 3000
1075
                            BodPoss.D = 1000
1076
                            BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1077
                            BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1078
                            v.Color = maincolor.Color
1079
                            coroutine.resume(coroutine.create(function()
1080
                                for i = 0, 49 do
1081
                                    swait(1)
1082
                                    v.Transparency = v.Transparency + 0.08
1083
                                end
1084
                                wait(0.5)
1085
                                PartEmmit1.Enabled = false
1086
                                wait(3)
1087
                                v:Destroy()
1088
                                dude:Destroy()
1089
                            end))
1090
                        end))
1091
                    end
1092
                end
1093
            end))
1094
        end)
1095
        ds()
1096
    end
1097
end
1098
 
1099
function FindNearestHead(Position, Distance, SinglePlayer)
1100
    if SinglePlayer then
1101
        return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
1102
    end
1103
    local List = {}
1104
    for i, v in pairs(workspace:GetChildren()) do
1105
        if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
1106
            table.insert(List, v)
1107
        end
1108
    end
1109
    return List
1110
end
1111
 
1112
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
1113
    local type = type
1114
    local rng = Instance.new("Part", char)
1115
    rng.Anchored = true
1116
    rng.BrickColor = color
1117
    rng.CanCollide = false
1118
    rng.FormFactor = 3
1119
    rng.Name = "Ring"
1120
    rng.Material = "Neon"
1121
    rng.Size = Vector3.new(1, 1, 1)
1122
    rng.Transparency = 0
1123
    rng.TopSurface = 0
1124
    rng.BottomSurface = 0
1125
    rng.CFrame = pos
1126
    rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
1127
    local rngm = Instance.new("SpecialMesh", rng)
1128
    rngm.MeshType = MType
1129
    rngm.Scale = Vector3.new(x1, y1, z1)
1130
    local scaler2 = 1
1131
    local speeder = FastSpeed
1132
    if type == "Add" then
1133
        scaler2 = 1 * value
1134
    elseif type == "Divide" then
1135
        scaler2 = 1 / value
1136
    end
1137
    coroutine.resume(coroutine.create(function()
1138
        for i = 0, 10 / bonuspeed, 0.1 do
1139
            swait()
1140
            if type == "Add" then
1141
                scaler2 = scaler2 - 0.01 * value / bonuspeed
1142
            elseif type == "Divide" then
1143
                scaler2 = scaler2 - 0.01 / value * bonuspeed
1144
            end
1145
            speeder = speeder - 0.01 * FastSpeed * bonuspeed
1146
            rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
1147
            rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1148
            rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
1149
        end
1150
        rng:Destroy()
1151
    end))
1152
end
1153
 
1154
function SoulSteal(dude)
1155
if dude.Name ~= char then
1156
local bgf = IT("BodyGyro", dude.Head)
1157
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1158
local val = IT("BoolValue", dude)
1159
val.Name = "IsHit"
1160
local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
1161
local soulst = coroutine.wrap(function()
1162
local soul = Instance.new("Part",dude)
1163
soul.Size = Vector3.new(1,1,1)
1164
soul.CanCollide = false
1165
soul.Anchored = false
1166
soul.Position = torso.Position
1167
soul.Transparency = 1
1168
local PartEmmit1 = IT("ParticleEmitter", soul)
1169
PartEmmit1.LightEmission = 1
1170
PartEmmit1.Texture = "rbxassetid://569507414"
1171
PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1172
PartEmmit1.Rate = 250
1173
PartEmmit1.Lifetime = NumberRange.new(1.6)
1174
PartEmmit1.Size = NumberSequence.new({
1175
    NumberSequenceKeypoint.new(0, 1, 0),
1176
    NumberSequenceKeypoint.new(1, 0, 0)
1177
})
1178
PartEmmit1.Transparency = NumberSequence.new({
1179
    NumberSequenceKeypoint.new(0, 0, 0),
1180
    NumberSequenceKeypoint.new(1, 1, 0)
1181
})
1182
PartEmmit1.Speed = NumberRange.new(0, 0)
1183
PartEmmit1.VelocitySpread = 30000
1184
PartEmmit1.Rotation = NumberRange.new(-360, 360)
1185
PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
1186
local BodPoss = IT("BodyPosition", soul)
1187
BodPoss.P = 3000
1188
BodPoss.D = 1000
1189
BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1190
BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1191
wait(1.6)
1192
soul.Touched:connect(function(hit)
1193
    if hit.Parent == char then
1194
    soul:Destroy()
1195
    end
1196
end)
1197
wait(1.2)
1198
while soul do
1199
    swait()
1200
    PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1201
    BodPoss.Position = tors.Position
1202
end
1203
end)
1204
    soulst()
1205
    end
1206
end
1207
function FaceMouse()
1208
local   Cam = workspace.CurrentCamera
1209
    return {
1210
        CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1211
        Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1212
    }
1213
end
1214
 
1215
BTAUNT = Instance.new("Sound", tors)
1216
BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1845125563"
1217
BTAUNT.Volume = 10
1218
BTAUNT.Pitch = 1
1219
BTAUNT.Looped = true
1220
BTAUNT.TimePosition = 0.2
1221
 
1222
BTAUNT1 = Instance.new("Sound", tors)
1223
BTAUNT1.SoundId = "http://www.roblox.com/asset/?id=0"
1224
BTAUNT1.Volume = 10
1225
BTAUNT1.Pitch = 1
1226
BTAUNT1.Looped = true
1227
BTAUNT1.TimePosition = 0.2
1228
 
1229
BTAUNT3 = Instance.new("Sound", tors)
1230
BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=2942631642"
1231
BTAUNT3.Volume = 10
1232
BTAUNT3.Pitch = 1
1233
BTAUNT3.Looped = true
1234
BTAUNT3.TimePosition = 0.2
1235
 
1236
BTAUNT2 = Instance.new("Sound", tors)
1237
BTAUNT2.SoundId = "http://www.roblox.com/asset/?id=3210544464"
1238
BTAUNT2.Volume = 10
1239
BTAUNT2.Pitch = 1
1240
BTAUNT2.Looped = true
1241
BTAUNT2.TimePosition = 0.2
1242
1243
------------------------------------------------------
1244
--End Effect Function--
1245
-------------------------------------------------------
1246
function Cso(ID, PARENT, VOLUME, PITCH)
1247
    local NSound = nil
1248
    coroutine.resume(coroutine.create(function()
1249
        NSound = IT("Sound", PARENT)
1250
        NSound.Volume = VOLUME
1251
        NSound.Pitch = PITCH
1252
        NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
1253
        swait()
1254
        NSound:play()
1255
        game:GetService("Debris"):AddItem(NSound, 50)
1256
    end))
1257
    return NSound
1258
end
1259
function CameraEnshaking(Length, Intensity)
1260
    coroutine.resume(coroutine.create(function()
1261
        local intensity = 1 * Intensity
1262
        local rotM = 0.01 * Intensity
1263
        for i = 0, Length, 0.1 do
1264
            swait()
1265
            intensity = intensity - 0.05 * Intensity / Length
1266
            rotM = rotM - 5.0E-4 * Intensity / Length
1267
            hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
1268
            cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
1269
        end
1270
        hum.CameraOffset = Vector3.new(0, 0, 0)
1271
    end))
1272
end
1273
-------------------------------------------------------
1274
--End Important Functions--
1275
-------------------------------------------------------
1276
 
1277
 
1278
-------------------------------------------------------
1279
--Start Customization--
1280
-------------------------------------------------------
1281
local Player_Size = 1
1282
if Player_Size ~= 1 then
1283
root.Size = root.Size * Player_Size
1284
tors.Size = tors.Size * Player_Size
1285
hed.Size = hed.Size * Player_Size
1286
ra.Size = ra.Size * Player_Size
1287
la.Size = la.Size * Player_Size
1288
rl.Size = rl.Size * Player_Size
1289
ll.Size = ll.Size * Player_Size
1290
----------------------------------------------------------------------------------
1291
rootj.Parent = root
1292
neck.Parent = tors
1293
RW.Parent = tors
1294
LW.Parent = tors
1295
RH.Parent = tors
1296
LH.Parent = tors
1297
----------------------------------------------------------------------------------
1298
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1299
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1300
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
1301
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
1302
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
1303
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
1304
----------------------------------------------------------------------------------
1305
RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1306
LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1307
RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1308
LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1309
--hat.Parent = Character
1310
end
1311
----------------------------------------------------------------------------------
1312
----------------------------------------------------------------------------------
1313
local equipped = false
1314
local idle = 0
1315
local change = 1
1316
local val = 0
1317
local toim = 0
1318
local idleanim = 0.4
1319
local sine = 0
1320
local Sit = 1
1321
----------------------------------------------------------------------------------
1322
hum.WalkSpeed = 8
1323
hum.JumpPower = 57
1324
hum.Animator.Parent = nil
1325
----------------------------------------------------------------------------------
1326
local Blob = Instance.new("Part", char)
1327
Blob.Name = "Bloby"
1328
Blob.CanCollide = false
1329
Blob.BrickColor = BrickColor.new("Really black")
1330
Blob.Transparency = 0
1331
Blob.Material = "Plastic"
1332
Blob.Size = Vector3.new(1, 1, 2)
1333
Blob.TopSurface = Enum.SurfaceType.Smooth
1334
Blob.BottomSurface = Enum.SurfaceType.Smooth
1335
 
1336
local Weld = Instance.new("Weld", Blob)
1337
Weld.Part0 = ra
1338
Weld.Part1 = Blob
1339
Weld.C1 = CFrame.new(0, -2, 1.1)
1340
Weld.C0 = CFrame.Angles(Rad(-86),0,0)
1341
 
1342
local M2 = Instance.new("SpecialMesh")
1343
M2.Parent = Blob
1344
M2.MeshId = "http://www.roblox.com/asset/?id=432791411"
1345
M2.TextureId = "http://www.roblox.com/asset/?id=160810181"
1346
M2.Scale = Vector3.new(2, 2, 2)
1347
 
1348
--[[local naeeym2 = Instance.new("BillboardGui",char)
1349
naeeym2.AlwaysOnTop = true
1350
naeeym2.Size = UDim2.new(5,35,2,15)
1351
naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
1352
naeeym2.Adornee = hed
1353
naeeym2.Name = "Name"
1354
--naeeym2.PlayerToHideFrom = Player
1355
local tecks2 = Instance.new("TextLabel",naeeym2)
1356
tecks2.BackgroundTransparency = 1
1357
tecks2.TextScaled = true
1358
tecks2.BorderSizePixel = 0
1359
tecks2.Text = "Fight Me"
1360
tecks2.Font = Enum.Font.Bodoni
1361
tecks2.TextSize = 30
1362
tecks2.TextStrokeTransparency = 0
1363
tecks2.TextColor3 = Color3.new(0, 0, 0)
1364
tecks2.TextStrokeColor3 = Color3.new(205, 84, 75)
1365
tecks2.Size = UDim2.new(1,0,0.5,0)
1366
tecks2.Parent = naeeym2]]
1367
-------------------------------------------------------
1368
--End Customization--
1369
-------------------------------------------------------
1370
 
1371
-------------------------------------------------------
1372
--Start Attacks N Stuff--
1373
-------------------------------------------------------
1374
local naeeym2 = Instance.new("BillboardGui",char)
1375
naeeym2.AlwaysOnTop = true
1376
naeeym2.Size = UDim2.new(5,35,2,35)
1377
naeeym2.StudsOffset = Vector3.new(0,2,0)
1378
naeeym2.Adornee = hed
1379
naeeym2.Name = "Name"
1380
 
1381
local tecks2 = Instance.new("TextLabel",naeeym2)
1382
CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
1383
tecks2.BackgroundTransparency = 1
1384
tecks2.TextScaled = true
1385
tecks2.BorderSizePixel = 0
1386
tecks2.Text = ""
1387
tecks2.Font = "Fantasy"
1388
tecks2.TextSize = 30
1389
tecks2.TextStrokeTransparency = 0
1390
tecks2.TextColor3 = BrickColor.new('Really red').Color
1391
tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
1392
tecks2.Size = UDim2.new(1,0,0.5,0)
1393
tecks2.Parent = naeeym2
1394
textfag = tecks2
1395
CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
1396
tecks2.Text = ""
1397
CFuncs.Sound.Create("rbxassetid://2755928629", root, 1.85, 1)
1398
tecks2.Text = "script by xdielivex"
1399
wait(2)
1400
CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
1401
tecks2.Text = ""
1402
BTAUNT:Play()
1403
coroutine.resume(coroutine.create(function()
1404
    while textfag ~= nil do
1405
        swait()
1406
        textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))  
1407
        textfag.Rotation = math.random(-3,3)
1408
    end
1409
end))
1410
 
1411
hed.face.Texture = "http://www.roblox.com/asset/?id=381091841"
1412
for i,v in pairs(char:children()) do
1413
if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
1414
v:Remove()
1415
end
1416
end
1417
shirt = Instance.new("Shirt", char)
1418
shirt.Name = "Shirt"
1419
pants = Instance.new("Pants", char)
1420
pants.Name = "Pants"
1421
char.Shirt.ShirtTemplate = "rbxassetid://2018917293"
1422
char.Pants.PantsTemplate = "rbxassetid://398633812"
1423
local Hair2 = Instance.new("Part", char)
1424
Hair2.Name = "Hair2"
1425
Hair2.CanCollide = false
1426
Hair2.BrickColor = BrickColor.new("CGA brown")
1427
Hair2.Transparency = 0
1428
Hair2.Material = "Plastic"
1429
Hair2.Size = Vector3.new(1, 1, 2)
1430
Hair2.TopSurface = Enum.SurfaceType.Smooth
1431
Hair2.BottomSurface = Enum.SurfaceType.Smooth
1432
 
1433
local Weld = Instance.new("Weld", Hair2)
1434
Weld.Part0 = hed
1435
Weld.Part1 = Hair2
1436
Weld.C1 = CFrame.new(0,-0.1,0.60)
1437
Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
1438
 
1439
local M2 = Instance.new("SpecialMesh")
1440
M2.Parent = Hair2
1441
M2.MeshId = "http://www.roblox.com/asset/?id=1703946602"
1442
M2.TextureId = "http://www.roblox.com/asset/?id=916236071"
1443
M2.Scale = Vector3.new(1, 1, 1)
1444
local AddInstance = function(Object, ...)
1445
local Obj = Instance.new(Object)
1446
for i,v in next,(...) do
1447
Obj[i] = v
1448
end
1449
return Obj
1450
end
1451
----------------------------------------------------
1452
        local Reaper = AddInstance("Part",{
1453
            Parent = hed,
1454
            CFrame = hed.CFrame,
1455
            formFactor = "Symmetric",
1456
            Size = Vector3.new(1, 1, 1),
1457
            CanCollide = false,
1458
            TopSurface = "Smooth",
1459
            BottomSurface = "Smooth",
1460
            Locked = true,
1461
        })
1462
        local Weld = AddInstance("Weld",{
1463
            Parent = Reaper,
1464
            Part0 = hed,
1465
            C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0),
1466
            Part1 = Reaper,
1467
        })
1468
        local Mesh = AddInstance("SpecialMesh",{
1469
            Parent = Reaper,
1470
            MeshId = "rbxassetid://0",
1471
            TextureId = "rbxassetid://0",
1472
            Scale = Vector3.new(1.1, 1.1, 1.1),
1473
            VertexColor = Vector3.new(0.3, 0.3, 0.3),
1474
        })
1475
-------------------------------------------------------
1476
wait()
1477
plr = game.Players.LocalPlayer
1478
char = plr.Character
1479
mouse = plr:GetMouse()
1480
whitecolor = Color3.new(1,1,1)
1481
epicmode = false
1482
normal = true
1483
for i,v in pairs(char:GetChildren()) do
1484
   if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
1485
      v:Destroy()
1486
     end
1487
end
1488
local shirt = Instance.new("Shirt",char)
1489
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=543661079"
1490
local pants = Instance.new("Pants",char)
1491
pants.PantsTemplate = "http://www.roblox.com/asset/?id=543662444"
1492
local bdycolors = char["Body Colors"]
1493
bdycolors.HeadColor3 = whitecolor
1494
bdycolors.LeftArmColor3 = whitecolor
1495
bdycolors.LeftLegColor3 = whitecolor
1496
bdycolors.RightArmColor3 = whitecolor
1497
bdycolors.RightLegColor3 = whitecolor
1498
bdycolors.TorsoColor3 = whitecolor
1499
local BC = Character["Body Colors"]
1500
BC.HeadColor = BrickColor.new("Pastel brown")
1501
BC.LeftArmColor = BrickColor.new("Pastel brown")
1502
BC.LeftLegColor = BrickColor.new("Pastel brown")
1503
BC.RightArmColor = BrickColor.new("Pastel brown")
1504
BC.RightLegColor = BrickColor.new("Pastel brown")
1505
BC.TorsoColor = BrickColor.new("Pastel brown")
1506
if char.Head:FindFirstChild("face") then
1507
	char.Head.face:Destroy()
1508
end
1509
for i,v in pairs(char:GetChildren()) do
1510
    if v.ClassName == "Hat" or v.ClassName == "Accessory" then
1511
        v:Destroy()
1512
    end
1513
end
1514
----------------------------------------------------------------------
1515
Circle = nil
1516
CircleParts = {}
1517
Equipped = false
1518
 
1519
function RayCast(Position, Direction, MaxDistance, IgnoreList)
1520
    return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
1521
end
1522
    Equipped = true
1523
    Circle = Instance.new("Model")
1524
    Circle.Name = "Circle"
1525
    Angle = 0
1526
    for i = 1, 1 do
1527
        local CirclePart = Instance.new("Part")
1528
        CirclePart.Name = "CirclePart"
1529
        CirclePart.Transparency = 1
1530
        CirclePart.BrickColor = BrickColor.new("Really black")
1531
        CirclePart.Material = Enum.Material.Plastic
1532
        CirclePart.Shape = Enum.PartType.Block
1533
        CirclePart.FormFactor = Enum.FormFactor.Custom
1534
        CirclePart.TopSurface = Enum.SurfaceType.Smooth
1535
        CirclePart.BottomSurface = Enum.SurfaceType.Smooth
1536
        CirclePart.Anchored = true
1537
        CirclePart.CanCollide = false
1538
        CirclePart.Locked = true
1539
        CirclePart.Size = Vector3.new(10, 0.2, 10)
1540
        local Aura = Instance.new('ParticleEmitter')
1541
Aura.Name = "Aura"
1542
Aura.Texture = "rbxassetid://0"
1543
Aura.Parent = CirclePart
1544
Aura.LightEmission = 0
1545
Aura.Transparency = NumberSequence.new(0.2,0.4,1)
1546
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200))
1547
Aura.Size = NumberSequence.new(0.9,0.5,0.3)
1548
Aura.LockedToPart = false
1549
Aura.Lifetime = NumberRange.new(1)
1550
Aura.Rate = 50
1551
Aura.Speed = NumberRange.new(2.5)
1552
Aura.SpreadAngle = Vector2.new(80,80)
1553
        local BlockMesh = Instance.new("BlockMesh")
1554
        BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1)
1555
        BlockMesh.Parent = CirclePart
1556
        CirclePart.Parent = Circle
1557
        local Star = Instance.new("Decal", CirclePart)
1558
        Star.Texture = "http://www.roblox.com/asset/?id=124339739"
1559
        Star.Face = "Top"
1560
        local Light = Instance.new("PointLight", CirclePart)
1561
        Light.Color = Color3.new(.20,0,0)
1562
        Light.Brightness = 100
1563
        Light.Range = 15
1564
        table.insert(CircleParts, CirclePart)
1565
    end
1566
    Spawn(function()
1567
        while Equipped and Humanoid.Parent and Torso.Parent do
1568
            if Angle == 360 then
1569
                Angle = 0
1570
            end
1571
            Angle = Angle + 0.05
1572
            local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
1573
            if Hit then
1574
                if not Circle.Parent then
1575
                    Circle.Parent = Character
1576
                end
1577
                for i, v in pairs(CircleParts) do
1578
                    v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
1579
                end
1580
            else
1581
                Circle.Parent = nil
1582
            end
1583
            wait()
1584
        end
1585
    end)
1586
 
1587
function chatfunc(text, color)
1588
    local chat = coroutine.wrap(function()
1589
        if char:FindFirstChild("TalkingBillBoard") ~= nil then
1590
            char:FindFirstChild("TalkingBillBoard"):destroy()
1591
        end
1592
        local naeeym2 = Instance.new("BillboardGui", char)
1593
        naeeym2.Size = UDim2.new(0, 100, 0, 40)
1594
        naeeym2.StudsOffset = Vector3.new(0, 3, 0)
1595
        naeeym2.Adornee = hed
1596
        naeeym2.Name = "TalkingBillBoard"
1597
        local tecks2 = Instance.new("TextLabel", naeeym2)
1598
        tecks2.BackgroundTransparency = 1
1599
        tecks2.BorderSizePixel = 0
1600
        tecks2.Text = ""
1601
        tecks2.Font = "Fantasy"
1602
        tecks2.TextSize = 30
1603
        tecks2.TextStrokeTransparency = 0
1604
        tecks2.TextColor3 = color
1605
        tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
1606
        tecks2.Size = UDim2.new(1, 0, 0.5, 0)
1607
        local tecks3 = Instance.new("TextLabel", naeeym2)
1608
        tecks3.BackgroundTransparency = 1
1609
        tecks3.BorderSizePixel = 0
1610
        tecks3.Text = ""
1611
        tecks3.Font = "Fantasy"
1612
        tecks3.TextSize = 30
1613
        tecks3.TextStrokeTransparency = 0
1614
        tecks3.TextColor3 = Color3.new(0, 0, 0)
1615
        tecks3.TextStrokeColor3 = color
1616
        tecks3.Size = UDim2.new(1, 0, 0.5, 0)
1617
        coroutine.resume(coroutine.create(function()
1618
            while true do
1619
                swait(1)
1620
                tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
1621
                tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
1622
                tecks2.Rotation = math.random(-5, 5)
1623
                tecks3.Rotation = math.random(-5, 5)
1624
            end
1625
        end))
1626
        for i = 1, string.len(text) do
1627
            CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
1628
            tecks2.Text = string.sub(text, 1, i)
1629
            tecks3.Text = string.sub(text, 1, i)
1630
            swait(1)
1631
        end
1632
        wait(1)
1633
        local randomrot = math.random(1, 2)
1634
        if randomrot == 1 then
1635
            for i = 1, 50 do
1636
                swait()
1637
                tecks2.Rotation = tecks2.Rotation - 0.75
1638
                tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
1639
                tecks2.TextTransparency = tecks2.TextTransparency + 0.04
1640
                tecks3.Rotation = tecks2.Rotation + 0.75
1641
                tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
1642
                tecks3.TextTransparency = tecks2.TextTransparency + 0.04
1643
            end
1644
        elseif randomrot == 2 then
1645
            for i = 1, 50 do
1646
                swait()
1647
                tecks2.Rotation = tecks2.Rotation + 0.75
1648
                tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
1649
                tecks2.TextTransparency = tecks2.TextTransparency + 0.04
1650
                tecks3.Rotation = tecks2.Rotation - 0.75
1651
                tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
1652
                tecks3.TextTransparency = tecks2.TextTransparency + 0.04
1653
            end
1654
        end
1655
        naeeym2:Destroy()
1656
    end)
1657
    chat()
1658
end
1659
---------------------------------------------------------
1660
1661
1662
1663
-----------------------STUFF HERE------------------------
1664
1665
1666
1667
---------------------------------------------------------
1668
1669
-------------------------------------------------------
1670
--Start Animations--
1671
-------------------------------------------------------
1672
while true do
1673
    swait()
1674
    sine = sine + change
1675
    local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1676
    local velderp = root.Velocity.y
1677
    hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
1678
    if equipped == true or equipped == false then
1679
        if attack == false then
1680
            idle = idle + 1
1681
        else
1682
            idle = 0
1683
        end
1684
        if 1 < root.Velocity.y and hitfloor == nil then
1685
            Anim = "Jump"
1686
            if attack == false then
1687
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
1688
                neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1689
                RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1690
                LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1691
                RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1692
                LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1693
            end
1694
        elseif -1 > root.Velocity.y and hitfloor == nil then
1695
            Anim = "Fall"
1696
            if attack == false then
1697
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
1698
                neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1699
                RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06  - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
1700
                LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06  - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
1701
                RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
1702
                LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
1703
            end
1704
        elseif torvel < 1 and hitfloor ~= nil then
1705
            Anim = "Idle"
1706
            change = 1
1707
            if attack == false then
1708
                               rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08)
1709
                               tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(-10 - 2.5 * Sin(sine/ 20)), Rad(20 * Cos(sine / 20))), 0.3)
1710
                               RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08)
1711
                                LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08)
1712
				RW.C0 = clerp(RW.C0, CF(1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08)
1713
				LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
1714
			end
1715
        elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
1716
            Anim = "Walk"
1717
            change = 1
1718
            if attack == false then
1719
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(5 * Cos(sine / 7))), 0.15)
1720
                tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1721
                RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1722
                LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1723
                RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.15 * Cos(sine / 7)) * angles(Rad(45)  * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.1)
1724
                LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), -0.15 * Cos(sine / 7)) * angles(Rad(-45)  * Cos(sine / 7) , Rad(0) ,  Rad(-5) + la.RotVelocity.Y / 75), 0.1)
1725
            end
1726
        elseif torvel >= 25 and hitfloor ~= nil then
1727
            Anim = "Sprint"
1728
            change = 1.35
1729
            if attack == false then
1730
            rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
1731
            tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1732
            RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1733
            LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1734
            RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110)  * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
1735
            LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110)  * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
1736
            end
1737
        end
1738
    end
1739
    if 0 < #Effects then
1740
        for e = 1, #Effects do
1741
            if Effects[e] ~= nil then
1742
                local Thing = Effects[e]
1743
                if Thing ~= nil then
1744
                    local Part = Thing[1]
1745
                    local Mode = Thing[2]
1746
                    local Delay = Thing[3]
1747
                    local IncX = Thing[4]
1748
                    local IncY = Thing[5]
1749
                    local IncZ = Thing[6]
1750
                    if 1 >= Thing[1].Transparency then
1751
                        if Thing[2] == "Block1" then
1752
                            Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1753
                            local Mesh = Thing[1].Mesh
1754
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1755
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1756
                        elseif Thing[2] == "Block2" then
1757
                            Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1758
                            local Mesh = Thing[7]
1759
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1760
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1761
                        elseif Thing[2] == "Block3" then
1762
                            Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
1763
                            local Mesh = Thing[7]
1764
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1765
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1766
                        elseif Thing[2] == "Cylinder" then
1767
                            local Mesh = Thing[1].Mesh
1768
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1769
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1770
                        elseif Thing[2] == "Blood" then
1771
                            local Mesh = Thing[7]
1772
                            Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1773
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1774
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1775
                        elseif Thing[2] == "Elec" then
1776
                            local Mesh = Thing[1].Mesh
1777
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1778
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1779
                        elseif Thing[2] == "Disappear" then
1780
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1781
                        elseif Thing[2] == "Shatter" then
1782
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1783
                            Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1784
                            Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1785
                            Thing[6] = Thing[6] + Thing[5]
1786
                        end
1787
                    else
1788
                        Part.Parent = nil
1789
                        table.remove(Effects, e)
1790
                    end
1791
                end
1792
            end
1793
        end
1794
    end
1795
end
1796
-------------------------------------------------------
1797
--End Animations And Script--
1798
-------------------------------------------------------