View difference between Paste ID: HzNdJFHr and 0ughia9D
SHOW: | | - or go back to the newest paste.
1
--just put this on the top of a script and boom 89% works
2
--note this does not work on big scripts
3
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
4
local Player,game,owner = owner,game
5
local RealPlayer = Player
6
do
7
    local rp = RealPlayer
8
    script.Parent = rp.Character
9
   
10
    --RemoteEvent for communicating
11
    local Event = Instance.new("RemoteEvent")
12
    Event.Name = "UserInput_Event"
13
 
14
    --Fake event to make stuff like Mouse.KeyDown work
15
    local function fakeEvent()
16
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
17
        t.connect = t.Connect
18
        return t
19
    end
20
 
21
    --Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
    end}
27
    --Merged 2 functions into one by checking amount of arguments
28
    CAS.UnbindAction = CAS.BindAction
29
 
30
    --This function will trigger the events that have been :Connect()'ed
31
    local function te(self,ev,...)
32
        local t = m[ev]
33
        if t and t._fakeEvent then
34
            for _,f in pairs(t.Functions) do
35
                f(...)
36
            end
37
        end
38
    end
39
    m.TrigEvent = te
40
    UIS.TrigEvent = te
41
 
42
    Event.OnServerEvent:Connect(function(plr,io)
43
        if plr~=rp then return end
44
        m.Target = io.Target
45
        m.Hit = io.Hit
46
        if not io.isMouse then
47
            local b = io.UserInputState == Enum.UserInputState.Begin
48
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
49
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
50
            end
51
            for _,t in pairs(CAS.Actions) do
52
                for _,k in pairs(t.Keys) do
53
                    if k==io.KeyCode then
54
                        t.Function(t.Name,io.UserInputState,io)
55
                    end
56
                end
57
            end
58
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
59
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
60
        end
61
    end)
62
    Event.Parent = NLS([==[
63
    local Player = game:GetService("Players").LocalPlayer
64
    local Event = script:WaitForChild("UserInput_Event")
65
 
66
    local Mouse = Player:GetMouse()
67
    local UIS = game:GetService("UserInputService")
68
    local input = function(io,a)
69
        if a then return end
70
        --Since InputObject is a client-side instance, we create and pass table instead
71
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
72
    end
73
    UIS.InputBegan:Connect(input)
74
    UIS.InputEnded:Connect(input)
75
 
76
    local h,t
77
    --Give the server mouse data 30 times every second, but only if the values changed
78
    --If player is not moving their mouse, client won't fire events
79
    while wait(1/30) do
80
        if h~=Mouse.Hit or t~=Mouse.Target then
81
            h,t=Mouse.Hit,Mouse.Target
82
            Event:FireServer({isMouse=true,Target=t,Hit=h})
83
        end
84
    end]==],Player.Character)
85
 
86
    ----Sandboxed game object that allows the usage of client-side methods and services
87
    --Real game object
88
    local _rg = game
89
 
90
    --Metatable for fake service
91
    local fsmt = {
92
        __index = function(self,k)
93
            local s = rawget(self,"_RealService")
94
            if s then return s[k] end
95
        end,
96
        __newindex = function(self,k,v)
97
            local s = rawget(self,"_RealService")
98
            if s then s[k]=v end
99
        end,
100
        __call = function(self,...)
101
            local s = rawget(self,"_RealService")
102
            if s then return s(...) end
103
        end
104
    }
105
    local function FakeService(t,RealService)
106
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
107
        return setmetatable(t,fsmt)
108
    end
109
 
110
    --Fake game object
111
    local g = {
112
        GetService = function(self,s)
113
            return self[s]
114
        end,
115
        Players = FakeService({
116
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
117
        },"Players"),
118
        UserInputService = FakeService(UIS,"UserInputService"),
119
        ContextActionService = FakeService(CAS,"ContextActionService"),
120
    }
121
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
122
    g.service = g.GetService
123
   
124
    g.RunService = FakeService({
125
        RenderStepped = _rg:GetService("RunService").Heartbeat,
126
        BindToRenderStep = function(self,name,_,fun)
127
            self._btrs[name] = self.Heartbeat:Connect(fun)
128
        end,
129
        UnbindFromRenderStep = function(self,name)
130
            self._btrs[name]:Disconnect()
131
        end,
132
    },"RunService")
133
 
134
    setmetatable(g,{
135
        __index=function(self,s)
136
            return _rg:GetService(s) or typeof(_rg[s])=="function"
137
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
138
        end,
139
        __newindex = fsmt.__newindex,
140
        __call = fsmt.__call
141
    })
142
    --Changing owner to fake player object to support owner:GetMouse()
143
    game,owner = g,g.Players.LocalPlayer
144
end
145
 
146
 
147
148
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild('Head') and game.Players.LocalPlayer:GetMouse()
149
local plr = game.Players.LocalPlayer
150
local char = plr.Character
151
local head = char.Head
152
local mouse = plr:GetMouse()
153
local Hum = char.Humanoid
154
local p = game.Players.LocalPlayer
155
156
local HealthBarParts = Instance.new("Folder", char)
157
HealthBarParts.Name = "BlockdomHealthBar"
158
159
local Effects = Instance.new("Folder", char)
160
Effects.Name = "BlockdomEffects"
161
162
local BodyParts = Instance.new("Folder", char)
163
BodyParts.Name = "BlockdomBodyParts"
164
165
166
local BlockSpeed = 0.2 -- Lower = Slower, Higher = Faster [0.0001 - 1]
167
168
169
local EM = Enum.Material
170
local CF = CFrame
171
local V3 = Vector3
172
local Ins = Instance
173
local Col = Color3
174
local UD = UDim
175
local UD2 = UDim2
176
local mr = math.rad
177
local mra = math.random
178
local mh = math.huge
179
180
181
-------------------------------------
182
local Head = char.Head
183
local RArm = char["Right Arm"]
184
local LArm = char["Left Arm"]
185
local Torso = char.Torso
186
local LLeg = char["Left Leg"]
187
local RLeg = char["Right Leg"]
188
-------------------------------------
189
190
191
local clerp = function(a, b, t)
192
	return a:lerp(b, t)
193
end
194
human = char.Humanoid
195
hrp = char.HumanoidRootPart
196
anim = human.Animator
197
RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
198
RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
199
LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
200
LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
201
RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
202
RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
203
LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
204
LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
205
NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
206
NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
207
RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
208
RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
209
RS = Torso:FindFirstChild("Right Shoulder")
210
LS = Torso:FindFirstChild("Left Shoulder")
211
RH = Torso:FindFirstChild("Right Hip")
212
LH = Torso:FindFirstChild("Left Hip")
213
RJ = hrp:FindFirstChild("RootJoint")
214
NK = Torso:FindFirstChild("Neck")
215
local RunS = game:GetService("RunService")
216
local Mouse = p:GetMouse()
217
local animen = true
218
local Player = game.Players.localPlayer
219
local Character = Player.Character
220
local Humanoid = Character.Humanoid
221
local Mouse = Player:GetMouse()
222
local LeftArm = Character["Left Arm"]
223
local RightArm = Character["Right Arm"]
224
local LeftLeg = Character["Left Leg"]
225
local RightLeg = Character["Right Leg"]
226
local Head = Character.Head
227
local Torso = Character.Torso
228
local Camera = game.Workspace.CurrentCamera
229
local RootPart = Character.HumanoidRootPart
230
local RootJoint = RootPart.RootJoint
231
local Pause = false
232
local attack = false
233
local LOL = false
234
local Anim = 'Idle'
235
local attacktype = 1
236
local delays = false
237
local play = true
238
local targetted = nil
239
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
240
local velocity = RootPart.Velocity.y
241
local sine = 0
242
local change = 1
243
local doe = 0
244
local Create = LoadLibrary("RbxUtility").Create
245
246
247
248
249
250
local HealthBase = Instance.new("Part", HealthBarParts)
251
HealthBase.Material = "Neon"
252
HealthBase.Color = Color3.fromRGB(0, 0, 0)
253
HealthBase.Size = Vector3.new(10, 2, 2)
254
HealthBase.CanCollide = false
255
HealthBase.Anchored = true
256
HealthBase.Name = "HealthMain"
257
258
259
local Health = Instance.new("Part", HealthBarParts)
260
Health.Material = "Neon"
261
Health.Color = Color3.fromRGB(3, 236, 0)
262
Health.Size = Vector3.new(10.1, 2.1, 2.1)
263
Health.CanCollide = false
264
Health.Anchored = true
265
Health.Name = "Health"
266
267
268
local RS = game:GetService("RunService")
269
270
271
for _, i in pairs(char:GetChildren()) do
272
	if i:IsA("Part") then
273
		i.Transparency = 1
274
	end
275
	if i.Name == "Health" then
276
		i:Destroy()
277
	end
278
	if i:IsA("Accessory") then
279
		i:Destroy()
280
	end
281
end
282
char.Head.face:Destroy()
283
Hum.HipHeight = 0.4
284
285
286
287
288
289
290
local RoarS = Instance.new("Sound", char.Head)
291
RoarS.SoundId = "rbxassetid://889016272"
292
RoarS.Volume = 1
293
294
local Punch = Instance.new("Sound", char.Head)
295
Punch.SoundId = "rbxassetid://386946017"
296
Punch.Volume = 1
297
298
local Theme = Instance.new("Sound", char.Head)
299
Theme.SoundId = "rbxassetid://145556530"
300
Theme.Volume = 1
301
Theme.Looped = true
302
Theme.MaxDistance = 90
303
Theme:Play()
304
305
306
307
308
309
310
local TouchSensor = Instance.new("Part", char)
311
TouchSensor.Size = Vector3.new(0.5,0.5,0.5)
312
TouchSensor.Material = "Neon"
313
TouchSensor.Transparency = 1
314
TouchSensor.CanCollide = false
315
316
local TouchSensorWeld = Instance.new("Weld", TouchSensor)
317
TouchSensorWeld.Part0 = char.HumanoidRootPart
318
TouchSensorWeld.Part1 = TouchSensor
319
TouchSensorWeld.C0 = CFrame.new(0,-4,0)
320
321
local LastMaterial = "Grass"
322
local LastColor = Color3.fromRGB(0,0,0)
323
local LastTrans = 0
324
325
TouchSensor.Touched:Connect(function(hit)
326
	if hit.Parent:FindFirstChildOfClass("Humanoid") == nil and hit:IsA("Part") and hit.Parent ~= Effects and hit.Parent ~= BodyParts and hit.Parent ~= HealthBarParts then
327
		LastMaterial = hit.Material
328
		LastColor = hit.Color
329
		LastTrans = hit.Transparency
330
	end
331
end)
332
333
local BlockHead = Instance.new("Part", BodyParts)
334
BlockHead.Size = Vector3.new(2,2,2)
335
BlockHead.Material = "Grass"
336
337
local HeadWeld = Instance.new("Weld", BlockHead)
338
HeadWeld.Part0 = char.Head
339
HeadWeld.Part1 = BlockHead
340
341
local BlockTorso = Instance.new("Part", BodyParts)
342
BlockTorso.Size = Vector3.new(3,3,3)
343
BlockTorso.Material = "Grass"
344
345
local TorsoWeld = Instance.new("Weld", BlockTorso)
346
TorsoWeld.Part0 = char.Torso
347
TorsoWeld.Part1 = BlockTorso
348
TorsoWeld.C0 = CFrame.new(0, -1, 0)
349
350
local BlockLeftArm = Instance.new("Part", BodyParts)
351
BlockLeftArm.Size = Vector3.new(1,1,1)
352
BlockLeftArm.Material = "Grass"
353
354
local LAWeld = Instance.new("Weld", BlockLeftArm)
355
LAWeld.Part0 = char["Left Arm"]
356
LAWeld.Part1 = BlockLeftArm
357
LAWeld.C0 = CFrame.new(0, -1, 0)
358
359
local BlockRightArm = Instance.new("Part", BodyParts)
360
BlockRightArm.Size = Vector3.new(1,1,1)
361
BlockRightArm.Material = "Grass"
362
363
local RAWeld = Instance.new("Weld", BlockRightArm)
364
RAWeld.Part0 = char["Right Arm"]
365
RAWeld.Part1 = BlockRightArm
366
RAWeld.C0 = CFrame.new(0, -1, 0)
367
368
369
local BlockLeftLeg = Instance.new("Part", BodyParts)
370
BlockLeftLeg.Size = Vector3.new(1,1,1)
371
BlockLeftLeg.Material = "Grass"
372
373
local LLWeld = Instance.new("Weld", BlockLeftLeg)
374
LLWeld.Part0 = char["Left Leg"]
375
LLWeld.Part1 = BlockLeftLeg
376
LLWeld.C0 = CFrame.new(0, -1, 0)
377
378
local BlockRightLeg = Instance.new("Part", BodyParts)
379
BlockRightLeg.Size = Vector3.new(1,1,1)
380
BlockRightLeg.Material = "Grass"
381
382
local RLWeld = Instance.new("Weld", BlockRightLeg)
383
RLWeld.Part0 = char["Right Leg"]
384
RLWeld.Part1 = BlockRightLeg
385
RLWeld.C0 = CFrame.new(0, -1, 0)
386
387
388
local LEye = Instance.new("Part", BlockHead)
389
LEye.Color = Color3.new(1,1,1)
390
LEye.Material = "Neon"
391
LEye.Size = Vector3.new(0.2,0.2,0.2)
392
local LEyeMesh = Instance.new("SpecialMesh", LEye)
393
LEyeMesh.MeshType = "Brick"
394
LEyeMesh.Scale = Vector3.new(1,1,1)
395
local LEyeWeld = Instance.new("Weld", LEye)
396
LEyeWeld.Part0 = BlockHead
397
LEyeWeld.Part1 = LEye
398
LEyeWeld.C0 = CFrame.new(-0.5,0,-1)
399
400
local REye = Instance.new("Part", BlockHead)
401
REye.Color = Color3.new(1,1,1)
402
REye.Material = "Neon"
403
REye.Size = Vector3.new(0.2,0.2,0.2)
404
local REyeMesh = Instance.new("SpecialMesh", REye)
405
REyeMesh.MeshType = "Brick"
406
REyeMesh.Scale = Vector3.new(1,1,1)
407
local REyeWeld = Instance.new("Weld", REye)
408
REyeWeld.Part0 = BlockHead
409
REyeWeld.Part1 = REye
410
REyeWeld.C0 = CFrame.new(0.5,0,-1)
411
412
413
-- EYE MANAGER
414
415
coroutine.resume(coroutine.create(function()
416
	while wait() do
417
		for i = 1, 50 do
418
			RS.RenderStepped:wait()
419
			LEyeMesh.Scale = LEyeMesh.Scale:lerp(Vector3.new(1,0,1), 0.1)
420
			REyeMesh.Scale = REyeMesh.Scale:lerp(Vector3.new(1,0,1), 0.1)
421
		end
422
		for i = 1, 50 do
423
			RS.RenderStepped:wait()
424
			LEyeMesh.Scale = LEyeMesh.Scale:lerp(Vector3.new(1,1,1), 0.1)
425
			REyeMesh.Scale = REyeMesh.Scale:lerp(Vector3.new(1,1,1), 0.1)
426
		end
427
		wait(2)
428
	end
429
end))
430
431
local BarrageS = false
432
433
coroutine.resume(coroutine.create(function()
434
	while wait() do
435
		for _, o in pairs(BodyParts:GetChildren()) do
436
			if o == RArm or o == LArm then
437
				if BarrageS == false then
438
					o.Material = LastMaterial
439
					o.Color = o.Color:lerp(LastColor, 0.1)
440
					o.Transparency = LastTrans
441
				end
442
			else
443
				
444
				o.Material = LastMaterial
445
				o.Color = o.Color:lerp(LastColor, 0.1)
446
				o.Transparency = LastTrans
447
			end
448
		end
449
	end
450
end))
451
452
coroutine.resume(coroutine.create(function()
453
	while wait() do	
454
		HealthBase.CFrame = HealthBase.CFrame:lerp(char.HumanoidRootPart.CFrame * CFrame.new(0, 9, 0), BlockSpeed)
455
		Health.CFrame = Health.CFrame:lerp(HealthBase.CFrame, BlockSpeed*5)
456
		Health.Size = Health.Size:lerp(Vector3.new(Hum.Health/Hum.MaxHealth*10.1, 2.1, 2.1), 0.1)
457
	end
458
end))
459
460
461
-- REGEN
462
coroutine.resume(coroutine.create(function()
463
	while Hum.Health < Hum.MaxHealth do
464
		Hum.Health = Hum.Health + 1
465
		local r1 = math.random(-5, 5)
466
		local r2 = math.random(-5, 5)
467
		local r3 = math.random(-5, 5)
468
		local c = math.random(1, 5)
469
		local Parto = Instance.new("Part", Effects)
470
		Parto.Material = "Neon"
471
		Parto.Size = Vector3.new(0.2, 0.2, 0.2)
472
		Parto.Shape = "Ball"
473
		Parto.Anchored = true
474
		Parto.CanCollide = false
475
		
476
		if c == 1 then
477
			Parto.Color = Color3.fromRGB(94, 255, 229)
478
		elseif c == 2 then
479
			Parto.Color = Color3.fromRGB(48, 255, 62)
480
		elseif c == 3 then
481
			Parto.Color = Color3.fromRGB(81, 255, 0)
482
		elseif c == 4 then
483
			Parto.Color = Color3.fromRGB(44, 252, 255)
484
		elseif c == 5 then
485
			Parto.Color = Color3.fromRGB(58, 180, 255)
486
		end
487
		
488
		Parto.CFrame = Torso.CFrame * CFrame.new(r1, r2, r3)
489
		coroutine.resume(coroutine.create(function()
490
			for i = 1, 50 do
491
				wait()
492
				Parto.CFrame = Parto.CFrame:lerp(Torso.CFrame, 0.1)
493
				Parto.Transparency = Parto.Transparency + 0.05
494
				if Parto.Transparency >= 1 then
495
					Parto:Destroy()
496
				end
497
			end
498
		end))
499
		wait()
500
	end
501
end))
502
503
local RoarPower = 0
504
local RoarCharge = false
505
506
507
508
local ChargeKame = false
509
local KamePower = 0
510
local KameCool = false
511
local beamgo = 6
512
513
514
function FireKame()
515
	Base:Destroy()
516
	for i = 1,50 do
517
		RS.RenderStepped:wait()
518
		PlayAnimationFromTable({
519
        	CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), mr(0)), -- Torso, 
520
        	CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
521
        	CFrame.new(1,0.4,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(90), mr(0), mr(-20)),  --- RightArm
522
         	CFrame.new(-1,0.4,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm 
523
         	CFrame.new(0.6,-2,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(-5), mr(5)), --RightLeg
524
         	CFrame.new(-0.6,-2,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(5), mr(-5)), --LeftLeg
525
		}, .3, false)			
526
	end	
527
	
528
		local Base1 = Instance.new("Part", char)
529
		Base1.Anchored = true
530
		Base1.Material = "Neon"
531
		Base1.Size = V3.new(KamePower + 1, KamePower + 1, KamePower + 1)
532
		Base1.Shape = "Block"
533
		Base1.Color = Color3.fromRGB(255, 81, 0)
534
		Base1.CFrame = char.HumanoidRootPart.CFrame * CF.new(0, 0.5, -1.8)
535
		Base1.CanCollide = false
536
		local Mesh = Instance.new("SpecialMesh", Base1)
537
		Mesh.MeshType = "Sphere"
538
	
539
		local Beam = Instance.new("Part", char)
540
		Beam.Anchored = true
541
		Beam.Material = "Neon"
542
		Beam.Size = V3.new(0, KamePower- 0.8, KamePower- 0.8)
543
		Beam.Shape = "Block"
544
		Beam.Color = Color3.fromRGB(255, 157, 0)
545
		Beam.CFrame = Base1.CFrame * CFrame.Angles(0,mr(180),0)
546
		Beam.CanCollide = false
547
		local Mesh = Instance.new("SpecialMesh", Beam)
548
		Mesh.MeshType = "Cylinder"
549
		coroutine.resume(coroutine.create(function()
550
			for i = 1,100 do
551
				wait()
552
				beamgo = beamgo + 10
553
				Beam.CFrame = Base1.CFrame * CFrame.Angles(0,mr(90),0) * CFrame.new(beamgo,0,0) 
554
				Beam.Size = V3.new(beamgo * 2, KamePower + 0.5, KamePower + 0.5)
555
				
556
				
557
			end
558
		end))
559
	
560
	
561
		Beam.Touched:Connect(function(hit)
562
			if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
563
						-- Player
564
				if hit.Parent.Name == p.Name then return end
565
				hit.Parent:BreakJoints()
566
			end
567
		end)	
568
	
569
	
570
	
571
		wait(5)
572
	
573
		for i = 1,200 do
574
			RS.RenderStepped:wait()
575
			beamgo = beamgo - 1
576
			Beam.Size = Beam.Size - V3.new(0,0.01,0.01)
577
			Base1.Size = Base1.Size - V3.new(0.01,0.01,0.01)
578
			Beam.Transparency = Beam.Transparency + 0.01
579
			Base1.Transparency = Base1.Transparency + 0.01
580
			if Base1.Transparency >= 1 then
581
				Base1:Destroy()
582
				Beam:Destroy()
583
			end
584
	end
585
	Hum.WalkSpeed = 16
586
	Hum.JumpPower = 50
587
	KamePower = 0
588
	beamgo = 6
589
	Pause = false
590
end
591
592
593
function Kamehameha()
594
	if not KameCool then
595
		KameCool = true
596
	Hum.WalkSpeed = 0
597
	Hum.JumpPower = 0
598
	
599
	for i = 1,50 do
600
		RS.RenderStepped:wait()
601
		PlayAnimationFromTable({
602
        	CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(-60), mr(-5)), -- Torso, 
603
        	CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(60), 0), ----- Head
604
        	CFrame.new(1.5,0,-0.3) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(60), mr(15), mr(40)),  --- RightArm
605
         	CFrame.new(-0.5,0.1,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(140), mr(-35), mr(90)),--LeftArm 
606
         	CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(-5), mr(5)), --RightLeg
607
         	CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(60), mr(-5)), --LeftLeg
608
		}, .3, false)			
609
	end
610
	Base = Instance.new("Part", char)
611
	Base.CanCollide = false
612
	Base.Anchored = true
613
	Base.Material = "Neon"
614
	Base.Size = V3.new(0, 0, 0)
615
	Base.Shape = "Ball"
616
	Base.Color = Color3.fromRGB(255, 157, 0)
617
	Base.CFrame = char.HumanoidRootPart.CFrame * CF.new(2.3, -0.1, 0)	
618
	coroutine.resume(coroutine.create(function()
619
		while wait() and ChargeKame == true do
620
			if KamePower >= 1.180 then
621
				FireKame()
622
				ChargeKame = false
623
			else
624
				KamePower = KamePower + 0.002
625
				Base.Size = V3.new(KamePower, KamePower, KamePower)
626
			end
627
		end
628
	end))
629
	wait(2)
630
	KameCool = false
631
	end
632
end
633
634
635
636
637
638
function ChargeRoar()
639
	Hum.WalkSpeed = 0
640
	Hum.JumpPower = 0
641
	Pause = true
642
	
643
	local Ball = Instance.new("Part", Effects)
644
	Ball.Name = "RoarCharge"
645
	Ball.Material = LastMaterial
646
	Ball.Color = LastColor
647
	Ball.Size = Vector3.new(0,0,0)
648
	Ball.Shape = "Ball"
649
	Ball.CanCollide = false
650
	Ball.Anchored = true
651
	Ball.CFrame = Head.CFrame * CFrame.new(0,2,-1)
652
	
653
	coroutine.resume(coroutine.create(function()
654
		while wait() and RoarCharge == true do
655
			
656
			PlayAnimationFromTable({
657
		         CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso, 
658
		         CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(70), mr(0), 0), ----- Head
659
		         CFrame.new(1.5,0,0) * CFrame.new(0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0),mr(0),mr(10)),  --- RightArm
660
		         CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0), mr(0), mr(-10)),--LeftArm 
661
		         CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
662
		         CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
663
			}, .3, false)
664
			
665
			RoarPower = RoarPower + 0.01
666
			Ball.Size = Vector3.new(RoarPower, RoarPower, RoarPower)
667
			Ball.CFrame = Ball.CFrame * CFrame.new(0,0.005,0)
668
		end
669
	end))
670
end
671
672
673
function FireRoar()
674
	local Ball = Effects.RoarCharge
675
	for i = 1, 50 do
676
		RS.RenderStepped:wait()
677
		Ball.CFrame = Ball.CFrame:lerp(Head.CFrame, 0.1)
678
		Ball.Size = Ball.Size:lerp(Vector3.new(0,0,0), 0.1)
679
	end
680
	
681
	for i = 1, 10 do
682
		RS.RenderStepped:wait()
683
		PlayAnimationFromTable({
684
			CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso, 
685
			CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
686
			CFrame.new(1.5,0,0) * CFrame.new(0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0),mr(0),mr(10)),  --- RightArm
687
			CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0), mr(0), mr(-10)),--LeftArm 
688
			CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
689
			CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
690
		}, .3, false)
691
	end
692
	RoarS:Play()
693
	Ball:Destroy()
694
	
695
	for i = 1, 100 do
696
		wait(0.1)
697
		local rad1 = math.random(-1, 1)
698
		local rad2 = math.random(-1, 1)
699
		local rad3 = math.random(-1, 1)
700
		
701
		local color = math.random(1, 2)
702
		
703
		local Roar = Instance.new("Part", Effects)
704
		Roar.Name = "Roar"
705
		Roar.Material = "Neon"
706
		if RoarPower <= 2 then
707
			Roar.Shape = "Ball"
708
			Roar.CFrame = Head.CFrame
709
			if color == 1 then
710
				Roar.Color = Color3.fromRGB(255, 81, 0)
711
			elseif color == 2 then
712
				Roar.Color = Color3.fromRGB(255, 157, 0)
713
			end
714
			
715
		elseif RoarPower >= 2 then
716
			Roar.Shape = "Ball"
717
			Roar.CFrame = Head.CFrame
718
			if color == 1 then
719
				Roar.Color = Color3.fromRGB(255, 0, 0)
720
			elseif color == 2 then
721
				Roar.Color = Color3.fromRGB(77, 0, 0)
722
			end
723
		end
724
		Roar.Size = Vector3.new(0,0,0)
725
		Roar.CanCollide = false
726
		Roar.Anchored = true
727
		
728
		coroutine.resume(coroutine.create(function()
729
			for i = 1, 500 do
730
				local Touchy = false
731
				
732
				coroutine.resume(coroutine.create(function()
733
					Roar.Touched:Connect(function(hit)
734
						if Touchy == false then
735
							Touchy = true
736
							if hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
737
								hit.Parent.Humanoid:TakeDamage(0.1)
738
							end
739
							wait(0.5)
740
							Touchy = false
741
						end
742
					end)
743
				end))				
744
				
745
				RS.RenderStepped:wait()
746
				Roar.CFrame = Roar.CFrame * CFrame.new(rad1/5,rad2/5,-1)
747
				Roar.Size = Roar.Size + Vector3.new(0.5, 0.5, 0.5)
748
				Roar.Transparency = Roar.Transparency + 0.007
749
				if Roar.Transparency >= 1 then
750
					Roar:Destroy()
751
				end
752
			end
753
		end))
754
	end
755
	Hum.WalkSpeed = 16
756
	Hum.JumpPower = 50
757
	Pause = false
758
	RoarPower = 0
759
end
760
761
762
763
764
function GroundWave2(origin, color, color2)
765
	if origin ~= nil then
766
		local part = Instance.new("Part", origin)
767
		part.Anchored = true
768
		part.CanCollide = false
769
		part.Color = color
770
		part.Size = Vector3.new(1,1,1)
771
		part.Transparency = 0.4
772
		part.Material = "Neon"
773
		part.CFrame = origin.CFrame
774
		local Mesh = Instance.new("SpecialMesh", part)
775
		Mesh.MeshType = "Sphere"
776
		Mesh.Scale = Vector3.new(1,1,1)
777
		
778
		local part2 = Instance.new("Part", origin)
779
		part2.Anchored = true
780
		part2.CanCollide = false
781
		part2.Color = color2
782
		part2.Size = Vector3.new(1,1,1)
783
		part2.Material = "Neon"
784
		part2.CFrame = origin.CFrame
785
		local Mesh2 = Instance.new("SpecialMesh", part2)
786
		Mesh2.MeshType = "Sphere"
787
		Mesh2.Scale = Vector3.new(0.8,0.8,0.8)
788
		
789
		local Ring = Instance.new("Part", char)
790
		Ring.Anchored = true
791
		Ring.CanCollide = false
792
		Ring.CFrame = part.CFrame
793
		local RingMesh = Instance.new("SpecialMesh", Ring)
794
		RingMesh.MeshId = "rbxassetid://471124075"
795
		RingMesh.Scale = Vector3.new(0,0,0)	
796
		
797
		local Ring2 = Instance.new("Part", char)
798
		Ring2.Anchored = true
799
		Ring2.CanCollide = false
800
		Ring2.CFrame = part.CFrame * CFrame.Angles(0,0,mr(90))
801
		local RingMesh2 = Instance.new("SpecialMesh", Ring2)
802
		RingMesh2.MeshId = "rbxassetid://471124075"
803
		RingMesh2.Scale = Vector3.new(0.02,0,0.02)	
804
		
805
		coroutine.resume(coroutine.create(function()
806
			for i = 1, 120 do
807
				RS.RenderStepped:wait()
808
				Mesh.Scale = Mesh.Scale + Vector3.new(1, 0.3, 1)
809
				part.Transparency = part.Transparency + 0.01
810
				
811
				Mesh2.Scale = Mesh2.Scale + Vector3.new(0.8, 0.1, 0.8)
812
				part2.Transparency = part2.Transparency + 0.01
813
				if part.Transparency >= 1 then
814
					part:Destroy()
815
				end
816
				
817
				if part2.Transparency >= 1 then
818
					part2:Destroy()
819
				end
820
				RingMesh.Scale = RingMesh.Scale + Vector3.new(0.02,0,0.02)
821
				Ring.Transparency = Ring.Transparency + 0.02
822
				
823
				RingMesh2.Scale = RingMesh2.Scale + Vector3.new(0.02,0,0.02)
824
				Ring2.Transparency = Ring2.Transparency + 0.02
825
				if Ring.Transparency >= 1 then
826
					Ring:Destroy()
827
					Ring2:Destroy()
828
				end
829
			end
830
		end))
831
		
832
	end
833
end
834
835
836
837
838
local BarrCool = false
839
840
function Barrage()
841
	coroutine.resume(coroutine.create(function()
842
		while wait() and BarrageS == true do
843
			
844
			for i = 1, 2 do -- Right Punch
845
				RS.RenderStepped:wait()
846
				BlockRightArm.Material = "Neon"
847
				local color = math.random(1, 2)
848
				if color == 1 then
849
					BlockRightArm.Color = BlockRightArm.Color:lerp(Color3.fromRGB(255, 81, 0), 0.5)
850
				elseif color == 2 then
851
					BlockRightArm.Color = BlockRightArm.Color:lerp(Color3.fromRGB(255, 157, 0), 0.5)
852
				end
853
								
854
				BlockRightArm.Touched:Connect(function(hit)
855
					if hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
856
						if BarrCool == false and BarrageS == true then
857
							BarrCool = true
858
							hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
859
							GroundWave2(hit, Color3.fromRGB(255, 81, 0), Color3.fromRGB(255, 157, 0))
860
							local Punchy = Punch:Clone()
861
							Punchy.Parent = hit
862
							Punchy:Play()
863
							wait()
864
							BarrCool = false
865
						end
866
					end
867
				end)
868
				
869
				PlayAnimationFromTable({
870
			         CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso, 
871
			         CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
872
			         CFrame.new(1.5,0,0) * CFrame.new(0.3, 0, -3) * CFrame.Angles(mr(90),mr(0),mr(-20)),  --- RightArm
873
			         CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0, 2) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm 
874
			         CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
875
			         CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
876
				}, .5, false)			
877
			end
878
			
879
			for i = 1, 2 do -- Left Punch
880
				RS.RenderStepped:wait()
881
				
882
				BlockLeftArm.Material = "Neon"
883
				local color = math.random(1, 2)
884
				if color == 1 then
885
					BlockLeftArm.Color = BlockLeftArm.Color:lerp(Color3.fromRGB(255, 81, 0), 0.5)
886
				elseif color == 2 then
887
					BlockLeftArm.Color = BlockLeftArm.Color:lerp(Color3.fromRGB(255, 157, 0), 0.5)
888
				end
889
				
890
				BlockLeftArm.Touched:Connect(function(hit)
891
					if hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
892
						if BarrCool == false and BarrageS == true then
893
							BarrCool = true
894
							hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
895
							GroundWave2(hit, Color3.fromRGB(255, 81, 0), Color3.fromRGB(255, 157, 0))
896
							local Punchy = Punch:Clone()
897
							Punchy.Parent = hit
898
							Punchy:Play()
899
							wait()
900
							BarrCool = false
901
						end
902
					end
903
				end)
904
				
905
				PlayAnimationFromTable({
906
			         CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso, 
907
			         CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
908
			         CFrame.new(1.5,0,0) * CFrame.new(0.3, 0, 2) * CFrame.Angles(mr(90),mr(0),mr(-20)),  --- RightArm
909
			         CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0, -3) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm 
910
			         CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
911
			         CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
912
				}, .5, false)			
913
			end
914
			
915
		end
916
	end))
917
end
918
919
920
mouse.KeyDown:Connect(function(k)
921
	if k == "e" then
922
		RoarCharge = true
923
		ChargeRoar()
924
	end
925
	if k == "r" then
926
		Pause = true
927
		ChargeKame = true
928
		Kamehameha()
929
	end
930
	if k == "q" then
931
		Pause = true
932
		BarrageS = true
933
		Barrage()
934
	end
935
end)
936
937
mouse.KeyUp:Connect(function(k)
938
	if k == "e" then
939
		RoarCharge = false
940
		FireRoar()
941
	end
942
	if k == "r" then
943
		ChargeKame = false
944
		FireKame()
945
	end
946
	if k == "q" then
947
		Pause = false
948
		BarrageS = false
949
	end
950
end)
951
952
953
954
Humanoid.Animator.Parent = nil
955
Character.Animate.Parent = nil
956
957
local newMotor = function(part0, part1, c0, c1)
958
	local w = Create('Motor'){
959
		Parent = part0,
960
		Part0 = part0,
961
		Part1 = part1,
962
		C0 = c0,
963
		C1 = c1,
964
	}
965
	return w
966
end
967
function clerp(a, b, t)
968
	return a:lerp(b, t)
969
end
970
971
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
972
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
973
974
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
975
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
976
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
977
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
978
RootJoint.C1 = CFrame.new(0, 0, 0)
979
RootJoint.C0 = CFrame.new(0, 0, 0)
980
Torso.Neck.C1 = CFrame.new(0, 0, 0)
981
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
982
983
local rarmc1 = RW.C1
984
local larmc1 = LW.C1
985
local rlegc1 = RH.C1
986
local llegc1 = LH.C1
987
988
local resetc1 = false
989
990
function PlayAnimationFromTable(table, speed, bool)
991
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
992
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
993
	RW.C0 = clerp(RW.C0, table[3], speed) 
994
	LW.C0 = clerp(LW.C0, table[4], speed) 
995
	RH.C0 = clerp(RH.C0, table[5], speed) 
996
	LH.C0 = clerp(LH.C0, table[6], speed) 
997
	if bool == true then
998
		if resetc1 == false then
999
			resetc1 = true
1000
			RootJoint.C1 = RootJoint.C1
1001
			Torso.Neck.C1 = Torso.Neck.C1
1002
			RW.C1 = rarmc1
1003
			LW.C1 = larmc1
1004
			RH.C1 = rlegc1
1005
			LH.C1 = llegc1
1006
		end
1007
	end
1008
end
1009
1010
ArtificialHB = Create("BindableEvent", script){
1011
	Parent = script,
1012
	Name = "Heartbeat",
1013
}
1014
1015
script:WaitForChild("Heartbeat")
1016
1017
frame = 1 / 30
1018
tf = 0
1019
allowframeloss = false
1020
tossremainder = false
1021
lastframe = tick()
1022
script.Heartbeat:Fire()
1023
1024
game:GetService("RunService").Heartbeat:connect(function(s, p)
1025
	tf = tf + s
1026
	if tf >= frame then
1027
		if allowframeloss then
1028
			script.Heartbeat:Fire()
1029
			lastframe = tick()
1030
		else
1031
			for i = 1, math.floor(tf / frame) do
1032
				script.Heartbeat:Fire()
1033
			end
1034
			lastframe = tick()
1035
		end
1036
		if tossremainder then
1037
			tf = 0
1038
		else
1039
			tf = tf - frame * math.floor(tf / frame)
1040
		end
1041
	end
1042
end)
1043
1044
function swait(num)
1045
	if num == 0 or num == nil then
1046
		ArtificialHB.Event:wait()
1047
	else
1048
		for i = 0, num do
1049
			ArtificialHB.Event:wait()
1050
		end
1051
	end
1052
end
1053
1054
1055
1056
1057
1058
New = function(Object, Parent, Name, Data)
1059
	local Object = Instance.new(Object)
1060
	for Index, Value in pairs(Data or {}) do
1061
		Object[Index] = Value
1062
	end
1063
	Object.Parent = Parent
1064
	Object.Name = Name
1065
	return Object
1066
end
1067
function rayCast(Position, Direction, Range, Ignore)
1068
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
1069
end 
1070
1071
1072
1073
1074
coroutine.wrap(function()
1075
while 1 do
1076
swait()
1077
if doe <= 360 then
1078
	doe = doe + 2
1079
else
1080
	doe = 0
1081
end
1082
end
1083
end)()
1084
while true and (animen == true) do
1085
	swait()
1086
1087
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1088
	velocity = RootPart.Velocity.y
1089
	sine = sine + change
1090
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1091
		if RootPart.Velocity.y > 1 and hit == nil then
1092
			Anim = "Jump"
1093
			if Pause == false then
1094
		PlayAnimationFromTable({
1095
         CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, 0), -- Torso, 
1096
         CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0.3) * CFrame.Angles(mr(50), mr(0), mr(0)), ----- Head
1097
         CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(50),0,mr(10)),  --- RightArm
1098
         CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(50), 0, mr(-10)),--LeftArm 
1099
         CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-50), 0, mr(-15)), --RightLeg
1100
         CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-50), 0, mr(15)), --LeftLeg
1101
		}, .3, false)
1102
					end
1103
		elseif RootPart.Velocity.y < -1 and hit == nil then 
1104
			Anim = "Fall"
1105
			if Pause == false then
1106
		PlayAnimationFromTable({
1107
         CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), mr(0), 0), -- Torso, 
1108
         CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), mr(0), 0), ----- Head
1109
         CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,mr(50)),  --- RightArm
1110
         CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0.5) * CFrame.Angles(mr(0), 0, mr(-50)),--LeftArm 
1111
         CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, mr(-15)), --RightLeg
1112
         CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(10), 0, mr(15)), --LeftLeg
1113
		}, .3, false)
1114
					end
1115
		elseif Torsovelocity < 1 and hit ~= nil then
1116
			Anim = "Idle"
1117
			if Pause == false then
1118
				change = 1
1119
		PlayAnimationFromTable({
1120
         CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso, 
1121
         CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
1122
         CFrame.new(1.5,0,0) * CFrame.new(0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0),mr(0),mr(10)),  --- RightArm
1123
         CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0), mr(0), mr(-10)),--LeftArm 
1124
         CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
1125
         CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
1126
		}, .3, false)
1127
			end
1128
1129
		elseif Torsovelocity > 2 and hit ~= nil then
1130
			Anim = "Walk"
1131
			if Pause == false then
1132
			PlayAnimationFromTable({		
1133
        	CFrame.new(0,0,0) * CFrame.new(0, 0-.1*math.sin(tick()*19), 0) * CFrame.Angles(-0.3, 0, 0+RootPart.RotVelocity.Y/30), -- Torso
1134
         	CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.2, 0+RootPart.RotVelocity.Y/20, 0),  -- Head
1135
         	CFrame.new(1.3,0.4,0) * CFrame.new(0, 0.2-.1*math.sin(tick()*17), 0.5) * CFrame.Angles(mr(-70),mr(-5),mr(10)),  --- RightArm
1136
         	CFrame.new(-1.3,0.4, 0) * CFrame.new(0, 0.2-.1*math.sin(tick()*17), 0.5) * CFrame.Angles(mr(-70), mr(5), mr(-10)),--LeftArm 
1137
         	CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 3)) * CFrame.Angles(math.rad(0 - 80 * math.cos((sine) / 3)), 0, 0-RootPart.RotVelocity.Y/33), 
1138
         	CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 3)) * CFrame.Angles(math.rad(0 + 80 * math.cos((sine) / 3)), 0, 0-RootPart.RotVelocity.Y/33), 
1139
			}, .3, false)
1140
			end
1141
		end
1142
end