View difference between Paste ID: D2urBQnH and zr3xyBLb
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)
1215+
1216-
BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1843671833"
1216+
1217-
BTAUNT.Volume = 10
1217+
1218-
BTAUNT.Pitch = 1
1218+
1219-
BTAUNT.Looped = true
1219+
1220-
BTAUNT.TimePosition = 0.2
1220+
1221
        NSound = IT("Sound", PARENT)
1222-
BTAUNT1 = Instance.new("Sound", tors)
1222+
1223-
BTAUNT1.SoundId = "http://www.roblox.com/asset/?id=0"
1223+
1224-
BTAUNT1.Volume = 10
1224+
1225-
BTAUNT1.Pitch = 1
1225+
1226-
BTAUNT1.Looped = true
1226+
1227-
BTAUNT1.TimePosition = 0.2
1227+
1228
    end))
1229-
BTAUNT3 = Instance.new("Sound", tors)
1229+
1230-
BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=2942631642"
1230+
1231-
BTAUNT3.Volume = 10
1231+
1232-
BTAUNT3.Pitch = 1
1232+
1233-
BTAUNT3.Looped = true
1233+
1234-
BTAUNT3.TimePosition = 0.2
1234+
1235
        for i = 0, Length, 0.1 do
1236-
BTAUNT2 = Instance.new("Sound", tors)
1236+
1237-
BTAUNT2.SoundId = "http://www.roblox.com/asset/?id=3210544464"
1237+
1238-
BTAUNT2.Volume = 10
1238+
1239-
BTAUNT2.Pitch = 1
1239+
1240-
BTAUNT2.Looped = true
1240+
1241-
BTAUNT2.TimePosition = 0.2
1241+
1242
        hum.CameraOffset = Vector3.new(0, 0, 0)
1243
    end))
1244
end
1245
-------------------------------------------------------
1246
--End Important Functions--
1247
-------------------------------------------------------
1248
 
1249
 
1250
-------------------------------------------------------
1251
--Start Customization--
1252
-------------------------------------------------------
1253
local Player_Size = 1
1254
if Player_Size ~= 1 then
1255
root.Size = root.Size * Player_Size
1256
tors.Size = tors.Size * Player_Size
1257
hed.Size = hed.Size * Player_Size
1258
ra.Size = ra.Size * Player_Size
1259
la.Size = la.Size * Player_Size
1260
rl.Size = rl.Size * Player_Size
1261
ll.Size = ll.Size * Player_Size
1262
----------------------------------------------------------------------------------
1263
rootj.Parent = root
1264
neck.Parent = tors
1265
RW.Parent = tors
1266
LW.Parent = tors
1267
RH.Parent = tors
1268
LH.Parent = tors
1269
----------------------------------------------------------------------------------
1270
rootj.C0 = RootCF * CF(5 * Player_Size, 5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1271
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1272
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((5 * Player_Size) - 5)) * angles(Rad(0), Rad(0), Rad(0))
1273
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
1274
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
1275
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
1276
----------------------------------------------------------------------------------
1277
RH.C0 = CF(5 * Player_Size, -5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1278
LH.C0 = CF(-5 * Player_Size, -5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1279
RH.C1 = CF(5 * Player_Size, 5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1280
LH.C1 = CF(-5 * Player_Size, 5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1281
--hat.Parent = Character
1282
end
1283
----------------------------------------------------------------------------------
1284
----------------------------------------------------------------------------------
1285
local equipped = false
1286
local idle = 0
1287
local change = 1
1288
local val = 0
1289
local toim = 0
1290
local idleanim = 0.4
1291
local sine = 0
1292
local Sit = 1
1293
----------------------------------------------------------------------------------
1294
hum.WalkSpeed = 8
1295
hum.JumpPower = 57
1296
hum.Animator.Parent = nil
1297
----------------------------------------------------------------------------------
1298
local Blob = Instance.new("Part", char)
1299
Blob.Name = "Bloby"
1300
Blob.CanCollide = false
1301
Blob.BrickColor = BrickColor.new("Really black")
1302
Blob.Transparency = 0
1303
Blob.Material = "Plastic"
1304
Blob.Size = Vector3.new(1, 1, 2)
1305
Blob.TopSurface = Enum.SurfaceType.Smooth
1306
Blob.BottomSurface = Enum.SurfaceType.Smooth
1307
 
1308
local Weld = Instance.new("Weld", Blob)
1309
Weld.Part0 = ra
1310
Weld.Part1 = Blob
1311
Weld.C1 = CFrame.new(0, -2, 1.1)
1312
Weld.C0 = CFrame.Angles(Rad(-86),0,0)
1313
 
1314
local M2 = Instance.new("SpecialMesh")
1315
M2.Parent = Blob
1316
M2.MeshId = "http://www.roblox.com/asset/?id=432791411"
1317
M2.TextureId = "http://www.roblox.com/asset/?id=160810181"
1318
M2.Scale = Vector3.new(2, 2, 2)
1319
 
1320
--[[local naeeym2 = Instance.new("BillboardGui",char)
1321
naeeym2.AlwaysOnTop = true
1322
naeeym2.Size = UDim2.new(5,35,2,15)
1323
naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
1324
naeeym2.Adornee = hed
1325
naeeym2.Name = "Name"
1326
--naeeym2.PlayerToHideFrom = Player
1327
local tecks2 = Instance.new("TextLabel",naeeym2)
1328
tecks2.BackgroundTransparency = 1
1329
tecks2.TextScaled = true
1330
tecks2.BorderSizePixel = 0
1331
tecks2.Text = "Fight Me"
1332
tecks2.Font = Enum.Font.Bodoni
1333
tecks2.TextSize = 30
1334
tecks2.TextStrokeTransparency = 0
1335
tecks2.TextColor3 = Color3.new(0, 0, 0)
1336
tecks2.TextStrokeColor3 = Color3.new(205, 84, 75)
1337
tecks2.Size = UDim2.new(1,0,0.5,0)
1338
tecks2.Parent = naeeym2]]
1339
-------------------------------------------------------
1340
--End Customization--
1341
-------------------------------------------------------
1342
 
1343
-------------------------------------------------------
1344
--Start Attacks N Stuff--
1345
-------------------------------------------------------
1346
local naeeym2 = Instance.new("BillboardGui",char)
1347
naeeym2.AlwaysOnTop = true
1348
naeeym2.Size = UDim2.new(5,35,2,35)
1349
naeeym2.StudsOffset = Vector3.new(0,2,0)
1350
naeeym2.Adornee = hed
1351
naeeym2.Name = "Name"
1352
 
1353
local tecks2 = Instance.new("TextLabel",naeeym2)
1354
CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
1355
tecks2.BackgroundTransparency = 1
1356
tecks2.TextScaled = true
1357
tecks2.BorderSizePixel = 0
1358
tecks2.Text = ""
1359
tecks2.Font = "Fantasy"
1360
tecks2.TextSize = 30
1361
tecks2.TextStrokeTransparency = 0
1362
tecks2.TextColor3 = BrickColor.new('Really red').Color
1363
tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
1364
tecks2.Size = UDim2.new(1,0,0.5,0)
1365
tecks2.Parent = naeeym2
1366
textfag = tecks2
1367
CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
1368
tecks2.Text = ""
1369
CFuncs.Sound.Create("rbxassetid://2755928629", root, 1.85, 1)
1370
tecks2.Text = "script by xdielivex"
1371
wait(2)
1372
CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
1373
tecks2.Text = ""
1374
coroutine.resume(coroutine.create(function()
1375
    while textfag ~= nil do
1376
        swait()
1377
        textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))  
1378
        textfag.Rotation = math.random(-3,3)
1379
    end
1380
end))
1381
 
1382
hed.face.Texture = "http://www.roblox.com/asset/?id=0"
1383
for i,v in pairs(char:children()) do
1384
if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
1385
v:Remove()
1386
end
1387
end
1388
shirt = Instance.new("Shirt", char)
1389
shirt.Name = "Shirt"
1390
pants = Instance.new("Pants", char)
1391
pants.Name = "Pants"
1392
char.Shirt.ShirtTemplate = "rbxassetid://2018917293"
1393
char.Pants.PantsTemplate = "rbxassetid://398633812"
1394
local Hair2 = Instance.new("Part", char)
1395
Hair2.Name = "Hair2"
1396
Hair2.CanCollide = false
1397-
tecks2.Text = "script by doryna2281337"
1397+
1398
Hair2.Transparency = 0
1399
Hair2.Material = "Plastic"
1400
Hair2.Size = Vector3.new(1, 1, 2)
1401-
BTAUNT:Play()
1401+
1402
Hair2.BottomSurface = Enum.SurfaceType.Smooth
1403
 
1404
local Weld = Instance.new("Weld", Hair2)
1405
Weld.Part0 = hed
1406
Weld.Part1 = Hair2
1407
Weld.C1 = CFrame.new(0,-0.1,0.60)
1408
Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
1409
 
1410
local M2 = Instance.new("SpecialMesh")
1411
M2.Parent = Hair2
1412
M2.MeshId = "http://www.roblox.com/asset/?id=1703946602"
1413
M2.TextureId = "http://www.roblox.com/asset/?id=916236071"
1414
M2.Scale = Vector3.new(1, 1, 1)
1415
local AddInstance = function(Object, ...)
1416
local Obj = Instance.new(Object)
1417
for i,v in next,(...) do
1418
Obj[i] = v
1419
end
1420
return Obj
1421
end
1422
----------------------------------------------------
1423
        local Reaper = AddInstance("Part",{
1424
            Parent = hed,
1425
            CFrame = hed.CFrame,
1426
            formFactor = "Symmetric",
1427
            Size = Vector3.new(1, 1, 1),
1428
            CanCollide = false,
1429
            TopSurface = "Smooth",
1430
            BottomSurface = "Smooth",
1431
            Locked = true,
1432
        })
1433
        local Weld = AddInstance("Weld",{
1434
            Parent = Reaper,
1435
            Part0 = hed,
1436
            C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0),
1437
            Part1 = Reaper,
1438
        })
1439
        local Mesh = AddInstance("SpecialMesh",{
1440
            Parent = Reaper,
1441
            MeshId = "rbxassetid://0",
1442
            TextureId = "rbxassetid://0",
1443
            Scale = Vector3.new(1.1, 1.1, 1.1),
1444
            VertexColor = Vector3.new(0.3, 0.3, 0.3),
1445
        })
1446
-------------------------------------------------------
1447
wait()
1448
plr = game.Players.LocalPlayer
1449
char = plr.Character
1450
mouse = plr:GetMouse()
1451
epicmode = false
1452
normal = true
1453
for i,v in pairs(char:GetChildren()) do
1454
   if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
1455
      v:Destroy()
1456
     end
1457
end
1458
for i,v in pairs(char:GetChildren()) do
1459
    if v.ClassName == "Hat" or v.ClassName == "Accessory" then
1460
        v:Destroy()
1461
    end
1462
end
1463
----------------------------------------------------------------------
1464
Circle = nil
1465
CircleParts = {}
1466
Equipped = false
1467
 
1468
function RayCast(Position, Direction, MaxDistance, IgnoreList)
1469
    return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
1470
end
1471
    Equipped = true
1472
    Circle = Instance.new("Model")
1473
    Circle.Name = "Circle"
1474
    Angle = 0
1475
    for i = 1, 1 do
1476
        local CirclePart = Instance.new("Part")
1477
        CirclePart.Name = "CirclePart"
1478
        CirclePart.Transparency = 1
1479-
whitecolor = Color3.new(1,1,1)
1479+
1480
        CirclePart.Material = Enum.Material.Plastic
1481
        CirclePart.Shape = Enum.PartType.Block
1482
        CirclePart.FormFactor = Enum.FormFactor.Custom
1483
        CirclePart.TopSurface = Enum.SurfaceType.Smooth
1484
        CirclePart.BottomSurface = Enum.SurfaceType.Smooth
1485
        CirclePart.Anchored = true
1486
        CirclePart.CanCollide = false
1487-
local shirt = Instance.new("Shirt",char)
1487+
1488-
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
1488+
1489-
local pants = Instance.new("Pants",char)
1489+
1490-
pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
1490+
1491-
local bdycolors = char["Body Colors"]
1491+
1492-
bdycolors.HeadColor3 = whitecolor
1492+
1493-
bdycolors.LeftArmColor3 = whitecolor
1493+
1494-
bdycolors.LeftLegColor3 = whitecolor
1494+
1495-
bdycolors.RightArmColor3 = whitecolor
1495+
1496-
bdycolors.RightLegColor3 = whitecolor
1496+
1497-
bdycolors.TorsoColor3 = whitecolor
1497+
1498
Aura.Lifetime = NumberRange.new(1)
1499
Aura.Rate = 50
1500
Aura.Speed = NumberRange.new(2.5)
1501
Aura.SpreadAngle = Vector2.new(80,80)
1502
        local BlockMesh = Instance.new("BlockMesh")
1503
        BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1)
1504
        BlockMesh.Parent = CirclePart
1505
        CirclePart.Parent = Circle
1506
        local Star = Instance.new("Decal", CirclePart)
1507
        Star.Texture = "http://www.roblox.com/asset/?id=124339739"
1508
        Star.Face = "Top"
1509
        local Light = Instance.new("PointLight", CirclePart)
1510
        Light.Color = Color3.new(.20,0,0)
1511
        Light.Brightness = 100
1512
        Light.Range = 15
1513
        table.insert(CircleParts, CirclePart)
1514
    end
1515
    Spawn(function()
1516
        while Equipped and Humanoid.Parent and Torso.Parent do
1517
            if Angle == 360 then
1518
                Angle = 0
1519
            end
1520
            Angle = Angle + 0.05
1521
            local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
1522
            if Hit then
1523
                if not Circle.Parent then
1524
                    Circle.Parent = Character
1525
                end
1526
                for i, v in pairs(CircleParts) do
1527
                    v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
1528
                end
1529
            else
1530
                Circle.Parent = nil
1531
            end
1532
            wait()
1533
        end
1534
    end)
1535
 
1536
function chatfunc(text, color)
1537
    local chat = coroutine.wrap(function()
1538
        if char:FindFirstChild("TalkingBillBoard") ~= nil then
1539
            char:FindFirstChild("TalkingBillBoard"):destroy()
1540
        end
1541
        local naeeym2 = Instance.new("BillboardGui", char)
1542
        naeeym2.Size = UDim2.new(0, 100, 0, 40)
1543
        naeeym2.StudsOffset = Vector3.new(0, 3, 0)
1544
        naeeym2.Adornee = hed
1545
        naeeym2.Name = "TalkingBillBoard"
1546
        local tecks2 = Instance.new("TextLabel", naeeym2)
1547
        tecks2.BackgroundTransparency = 1
1548
        tecks2.BorderSizePixel = 0
1549
        tecks2.Text = ""
1550
        tecks2.Font = "Fantasy"
1551
        tecks2.TextSize = 30
1552
        tecks2.TextStrokeTransparency = 0
1553
        tecks2.TextColor3 = color
1554
        tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
1555
        tecks2.Size = UDim2.new(1, 0, 0.5, 0)
1556
        local tecks3 = Instance.new("TextLabel", naeeym2)
1557
        tecks3.BackgroundTransparency = 1
1558
        tecks3.BorderSizePixel = 0
1559
        tecks3.Text = ""
1560
        tecks3.Font = "Fantasy"
1561
        tecks3.TextSize = 30
1562
        tecks3.TextStrokeTransparency = 0
1563
        tecks3.TextColor3 = Color3.new(0, 0, 0)
1564
        tecks3.TextStrokeColor3 = color
1565
        tecks3.Size = UDim2.new(1, 0, 0.5, 0)
1566
        coroutine.resume(coroutine.create(function()
1567
            while true do
1568
                swait(1)
1569
                tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
1570
                tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
1571
                tecks2.Rotation = math.random(-5, 5)
1572
                tecks3.Rotation = math.random(-5, 5)
1573
            end
1574
        end))
1575
        for i = 1, string.len(text) do
1576
            CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
1577
            tecks2.Text = string.sub(text, 1, i)
1578
            tecks3.Text = string.sub(text, 1, i)
1579
            swait(1)
1580
        end
1581
        wait(1)
1582
        local randomrot = math.random(1, 2)
1583
        if randomrot == 1 then
1584
            for i = 1, 50 do
1585
                swait()
1586
                tecks2.Rotation = tecks2.Rotation - 0.75
1587
                tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
1588
                tecks2.TextTransparency = tecks2.TextTransparency + 0.04
1589
                tecks3.Rotation = tecks2.Rotation + 0.75
1590
                tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
1591
                tecks3.TextTransparency = tecks2.TextTransparency + 0.04
1592
            end
1593
        elseif randomrot == 2 then
1594
            for i = 1, 50 do
1595
                swait()
1596
                tecks2.Rotation = tecks2.Rotation + 0.75
1597
                tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
1598
                tecks2.TextTransparency = tecks2.TextTransparency + 0.04
1599
                tecks3.Rotation = tecks2.Rotation - 0.75
1600
                tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
1601
                tecks3.TextTransparency = tecks2.TextTransparency + 0.04
1602
            end
1603
        end
1604
        naeeym2:Destroy()
1605
    end)
1606
    chat()
1607
end
1608
---------------------------------------------------------
1609
1610
1611
1612
-----------------------STUFF HERE------------------------
1613
1614
1615
1616
---------------------------------------------------------
1617
1618
-------------------------------------------------------
1619
--Start Animations--
1620
-------------------------------------------------------
1621
while true do
1622
    swait()
1623
    sine = sine + change
1624
    local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1625
    local velderp = root.Velocity.y
1626
    hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
1627
    if equipped == true or equipped == false then
1628
        if attack == false then
1629
            idle = idle + 1
1630
        else
1631
            idle = 0
1632
        end
1633
        if 1 < root.Velocity.y and hitfloor == nil then
1634
            Anim = "Jump"
1635
            if attack == false then
1636
                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)
1637
                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)
1638
                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)
1639
                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)
1640
                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)
1641
                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)
1642
            end
1643
        elseif -1 > root.Velocity.y and hitfloor == nil then
1644
            Anim = "Fall"
1645
            if attack == false then
1646
                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)
1647
                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)
1648
                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)
1649
                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)
1650
                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)
1651
                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)
1652
            end
1653
        elseif torvel < 1 and hitfloor ~= nil then
1654
            Anim = "Idle"
1655
            change = 1
1656
            if attack == false then
1657
                               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)
1658
                               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)
1659
                               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)
1660
                                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)
1661
				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)
1662
				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)
1663
			end
1664
        elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
1665
            Anim = "Walk"
1666
            change = 1
1667
            if attack == false then
1668
                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)
1669
                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)
1670
                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)
1671
                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)
1672
                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)
1673
                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)
1674
            end
1675
        elseif torvel >= 25 and hitfloor ~= nil then
1676
            Anim = "Sprint"
1677
            change = 1.35
1678
            if attack == false then
1679
            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)
1680
            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)
1681
            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)
1682
            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)
1683
            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)
1684
            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)
1685
            end
1686
        end
1687
    end
1688
    if 0 < #Effects then
1689
        for e = 1, #Effects do
1690
            if Effects[e] ~= nil then
1691
                local Thing = Effects[e]
1692
                if Thing ~= nil then
1693
                    local Part = Thing[1]
1694
                    local Mode = Thing[2]
1695
                    local Delay = Thing[3]
1696
                    local IncX = Thing[4]
1697
                    local IncY = Thing[5]
1698
                    local IncZ = Thing[6]
1699
                    if 1 >= Thing[1].Transparency then
1700
                        if Thing[2] == "Block1" then
1701
                            Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1702
                            local Mesh = Thing[1].Mesh
1703
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1704
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1705
                        elseif Thing[2] == "Block2" then
1706
                            Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1707
                            local Mesh = Thing[7]
1708
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1709
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1710
                        elseif Thing[2] == "Block3" then
1711
                            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)
1712
                            local Mesh = Thing[7]
1713
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1714
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1715
                        elseif Thing[2] == "Cylinder" then
1716
                            local Mesh = Thing[1].Mesh
1717
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1718
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1719
                        elseif Thing[2] == "Blood" then
1720
                            local Mesh = Thing[7]
1721
                            Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1722
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1723
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1724
                        elseif Thing[2] == "Elec" then
1725
                            local Mesh = Thing[1].Mesh
1726
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1727
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1728
                        elseif Thing[2] == "Disappear" then
1729
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1730
                        elseif Thing[2] == "Shatter" then
1731
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1732
                            Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1733
                            Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1734
                            Thing[6] = Thing[6] + Thing[5]
1735
                        end
1736
                    else
1737
                        Part.Parent = nil
1738
                        table.remove(Effects, e)
1739
                    end
1740
                end
1741
            end
1742
        end
1743
    end
1744
end
1745
-------------------------------------------------------
1746
--End Animations And Script--
1747
-------------------------------------------------------