View difference between Paste ID: AkFFssUB and d7RmWeqQ
SHOW: | | - or go back to the newest paste.
1
------------------
2
--Basic Fighting--
3
------------------
4
--By CKbackup--
5
---------------
6
7
if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
8
do
9
	script.Parent = owner.Character
10
	local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
11
	local function NewFakeEvent()
12
		local Bind = Instance.new("BindableEvent")
13
		local Fake;Fake = {Connections = {},
14
		fakeEvent=true;
15
		Connect=function(self,Func)
16
			Bind.Event:connect(Func)
17
			self.Connections[Bind] = true
18
			return setmetatable({Connected = true},{
19
			__index = function (self,Index)
20
				if Index:lower() == "disconnect" then
21
					return function() Fake.Connections[Bind] = false;self.Connected = false end
22
				end
23
				return Fake[Index]
24
			end;
25
			__tostring = function() return "Connection" end;
26
		})
27
		end}
28
		Fake.connect = Fake.Connect;return Fake;
29
	end
30
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
31
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
32
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
33
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
34
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
35
	local function TriggerEvent(self,Event,...)
36
		local Trigger = Mouse[Event]
37
		if Trigger and Trigger.fakeEvent and Trigger.Connections then
38
			for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
39
		end
40
	end
41
	Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
42
	Event.OnServerEvent:Connect(function(FiredBy,Input)
43
		if FiredBy.Name ~= owner.Name then return end
44
		if Input.MouseEvent then
45
			Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
46
		else
47
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
48
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
49
			for _,Action in pairs(ContextActionService.Actions) do
50
				for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
51
			end
52
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
53
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
54
		end
55
	end)
56
	InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
57
	Event.Parent = NLS([[
58
		local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
59
		local Input = function(Input,gameProcessedEvent)
60
			if gameProcessedEvent then return end
61
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
62
		end
63
		UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
64
		local Hit,Target
65
		while wait(1/30) do
66
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
67
				Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
68
			end
69
		end
70
	]],owner.Character)
71
end
72
RealGame = game;game = setmetatable({},{
73
	__index = function (self,Index)
74
		local Sandbox = function (Thing)
75
			if Thing:IsA("Player") then
76
				local RealPlayer = Thing
77
				return setmetatable({},{
78
					__index = function (self,Index)
79
						local Type = type(RealPlayer[Index])
80
						if Type == "function" then
81
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
82
								return function (self)return InternalData["Mouse"] end
83
							end
84
							return function (self,...)return RealPlayer[Index](RealPlayer,...) end
85
						end
86
						return RealPlayer[Index]
87
					end;
88
					__tostring = function(self) return RealPlayer.Name end
89
				})
90
			end
91
		end
92
		if RealGame[Index] then
93
			local Type = type(RealGame[Index])
94
			if Type == "function" then
95
				if Index:lower() == "getservice" or Index:lower() == "service" then
96
					return function (self,Service)
97
						local FakeServices = {
98
							["players"] = function()
99
								return setmetatable({},{
100
									__index = function (self2,Index2)
101
										local RealService = RealGame:GetService(Service)
102
										local Type2 = type(Index2)
103
										if Type2 == "function" then
104
											return function (self,...) return RealService[Index2](RealService,...)end
105
										else
106
											if Index2:lower() == "localplayer" then return Sandbox(owner) end
107
											return RealService[Index2]
108
										end
109
									end;
110
									__tostring = function(self) return RealGame:GetService(Service).Name end
111
								})
112
							end;
113
							["contextactionservice"] = function() return InternalData["ContextActionService"] end;
114
							["userinputservice"] = function() return InternalData["UserInputService"] end;
115
							["runservice"] = function()
116
								return setmetatable({},{
117
									__index = function(self2,Index2)
118
										local RealService = RealGame:GetService(Service)
119
										local Type2 = type(Index2)
120
										if Type2 == "function" then
121
											return function (self,...) return RealService[Index2](RealService,...) end
122
										else
123
											local RunServices = {
124
												["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
125
												["renderstepped"] = function() return RealService["Stepped"] end
126
											}
127
											if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
128
											return RealService[Index2]
129
										end
130
									end
131
								})
132
							end
133
						}
134
						if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
135
						return RealGame:GetService(Service)
136
					end
137
				end
138
				return function (self,...) return RealGame[Index](RealGame,...) end
139
			else
140
				if game:GetService(Index) then return game:GetService(Index) end
141
				return RealGame[Index]
142
			end
143
		end
144
		return nil
145
	end
146
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
147
148
player = game.Players.LocalPlayer
149
mouse = player:GetMouse()
150
chara = player.Character
151
equipped = false
152
del = false
153
attacking = false
154
atkd = false
155
hum = chara:FindFirstChildOfClass("Humanoid")
156
debby = game.Debris
157
ws = 16
158
if hum.WalkSpeed > 16 then
159
ws = hum.WalkSpeed
160
end
161
shirt = Instance.new("Shirt", chara)
162
shirt.Name = "Shirt"
163
pants = Instance.new("Pants", chara)
164
pants.Name = "Pants"
165
chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=692865329"
166
chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=692865724"
167
chara.Head.BrickColor = BrickColor.new("Pastel brown")
168
    for i,v in pairs(chara:GetChildren()) do
169
        if v.ClassName == "Accessory" or v.ClassName == "Hat" then
170
            v:destroy()
171
        end
172
    end
173
174
local Hair = Instance.new("Part")
175
Hair.Parent = chara
176
Hair.Name = "Hair"
177
Hair.Size = Vector3.new(1, 1, 1)
178
Hair.CFrame = chara.Head.CFrame
179
Hair:BreakJoints()
180
Hair.CanCollide = false
181
Hair.TopSurface = "Smooth"
182
Hair.BottomSurface = "Smooth"
183
Hair.BrickColor = BrickColor.new("White")
184
Weld = Instance.new("Weld")
185
Weld.Name = "Weld"
186
Weld.Part0 = chara.Head
187
Weld.Part1 = Hair
188
Weld.Parent = chara.Head
189
Weld.C0 = CFrame.new(0.01,0.80,0.0)*CFrame.fromEulerAnglesXYZ(-6.30, 0, 0)
190
Mesh = Instance.new("SpecialMesh")
191
Mesh.Parent = Hair
192
Mesh.MeshId = "rbxassetid://3822772375"
193
Mesh.TextureId = "rbxassetid://3822772593"
194
Mesh.Scale = Vector3.new(1.05,1, 1)
195
ArtificialHB = Instance.new("BindableEvent", script)
196
ArtificialHB.Name = "Heartbeat"
197
script:WaitForChild("Heartbeat")
198
frame = 0.03333333333333
199
tf = 0
200
allowframeloss = false
201
tossremainder = false
202
lastframe = tick()
203
script.Heartbeat:Fire()
204
game:GetService("RunService").Heartbeat:connect(function(s, p)
205
  tf = tf + s
206
  if tf >= frame then
207
    if allowframeloss then
208
      script.Heartbeat:Fire()
209
      lastframe = tick()
210
    else
211
      for i = 1, math.floor(tf / frame) do
212
        script.Heartbeat:Fire()
213
      end
214
      lastframe = tick()
215
    end
216
    if tossremainder then
217
      tf = 0
218
    else
219
      tf = tf - frame * math.floor(tf / frame)
220
    end
221
  end
222
end)
223
function swait(num)
224
  if num == 0 or num == nil then
225
    ArtificialHB.Event:wait()
226
  else
227
    for i = 0, num*30 do
228
      ArtificialHB.Event:wait()
229
    end
230
  end
231
end
232
233
New = function(Object, Parent, Name, Data)
234
	local Object = Instance.new(Object)
235
	for Index, Value in pairs(Data or {}) do
236
		Object[Index] = Value
237
	end
238
	Object.Parent = Parent
239
	Object.Name = Name
240
	return Object
241
end
242
243
RightArm = New("Model",chara,"RightArm",{})
244
MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
245
Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
246
Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("New Yeller"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
247
Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
248
Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
249
LeftArm = New("Model",chara,"LeftArm",{})
250
MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
251
Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
252
EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("New Yeller"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
253
Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
254
Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
255
256
lach = LeftArm:GetChildren()
257
rach = RightArm:GetChildren()
258
259
local pemit = Instance.new("ParticleEmitter")
260
pemit.Enabled = false
261
pemit.Color = ColorSequence.new(Color3.new(255,255,0))
262
pemit.LightEmission = 1
263
pemit.Size = NumberSequence.new(1.5,0)
264
pemit.Texture = "http://www.roblox.com/asset/?id=243098098"
265
pemit.Lifetime = NumberRange.new(.2)
266
pemit.Rate = 100
267
pemit.Rotation = NumberRange.new(0,360)
268
pemit.Speed = NumberRange.new(0)
269
270
local p1 = pemit:Clone()
271
p1.Parent = EmitPart
272
local p2 = pemit:Clone()
273
p2.Parent = Emit2Part
274
local p3 = pemit:Clone()
275
p3.Parent = chara["Right Leg"]
276
p3.Rate = 10000
277
local p4 = pemit:Clone()
278
p4.Parent = chara["Left Leg"]
279
p4.Rate = 10000
280
281
--Sounds--
282
function LoadSnd(id,loop,vol,pit)
283
local snd = New("Sound",chara.Head,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
284
return snd
285
end
286
Swing2Snd = LoadSnd(536642316,false,1,1)
287
HitPunchSnd = LoadSnd(153092227,false,1,1)
288
HitHamonSnd = LoadSnd(260433624,false,1,1)
289
HamonSnd = LoadSnd(876570589,false,1,1)
290
SHamonSnd = LoadSnd(379557765,true,.5,1)
291
292
--Play Sound in Part--
293
function PlaySnd(snd,part)
294
local sound = snd:Clone()
295
sound.PlayOnRemove = true
296
sound.Parent = part
297
sound:Destroy()
298
end
299
300
maincol = "White"
301
302
function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
303
local Att1 =  New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
304
local Att2 =  New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
305
local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
306
return TEff
307
end
308
309
RPunchT = CreateTrailObj(chara["Right Arm"],"White","White",0,0)
310
LPunchT = CreateTrailObj(chara["Left Arm"],"White","White",0,0)
311
RKickT = CreateTrailObj(chara["Right Leg"],"White","White",0,0)
312
LKickT = CreateTrailObj(chara["Left Leg"],"White","White",0,0)
313
314
--Punch Hit Effect--
315
function PunchEff(pos)
316
local p = Instance.new("Part",game.Workspace)
317
p.Size = Vector3.new(1,1,1)
318
p.BrickColor = BrickColor.new(maincol)
319
p.Material = "Neon"
320
p.Anchored = true
321
p.CanCollide = false
322
p.CFrame = pos
323
local pm = Instance.new("SpecialMesh",p)
324
pm.MeshType = "Sphere"
325
coroutine.resume(coroutine.create(function()
326
for i = 0,1,.05 do
327
swait()
328
p.Transparency = i
329
pm.Scale = Vector3.new(2*i,2*i,2*i)
330
end
331
swait()
332
p:Destroy()
333
end))
334
end
335
336
--Damage Function--
337
function dealdmg(dude,damage,env,toim,kby,kbx)
338
coroutine.resume(coroutine.create(function()
339
if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
340
finaldmg = damage + math.random(-env,env)
341
dudehum = dude:FindFirstChildOfClass("Humanoid")
342
dudehum.MaxHealth = 100
343
dudehum.Health = dudehum.Health - finaldmg
344
local vall = Instance.new("ObjectValue",dude)
345
vall.Name = "IsHit"
346
game.Debris:AddItem(vall,toim)
347
local bfos = Instance.new("BodyVelocity",dude.Head)
348
bfos.P = 20000
349
bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
350
bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx
351
game.Debris:AddItem(bfos,.1)
352
local naeeym2 = Instance.new("BillboardGui",dude)
353
naeeym2.Size = UDim2.new(0,100,0,40)
354
naeeym2.StudsOffset = Vector3.new(0,3,0)
355
naeeym2.Adornee = dude.Head
356
naeeym2.Name = "TalkingBillBoard"
357
local tecks2 = Instance.new("TextLabel",naeeym2)
358
tecks2.BackgroundTransparency = 1
359
tecks2.BorderSizePixel = 0
360
tecks2.Text = "-"..finaldmg
361
tecks2.Font = "Fantasy"
362
tecks2.FontSize = "Size24"
363
tecks2.TextStrokeTransparency = 0
364
tecks2.TextColor3 = Color3.new(1,0.6,0)
365
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
366
tecks2.Size = UDim2.new(1,0,0.5,0)
367
for i = 1, 5 do
368
wait(.1)
369
tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
370
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
371
tecks2.TextTransparency = tecks2.TextTransparency + .2
372
end
373
naeeym2:Destroy()
374
end
375
end))
376
end
377
378
--Explode Hitbox--
379
function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
380
local E = Instance.new("Explosion") 
381
E.Position = pos
382
E.Parent = game.Workspace
383
E.BlastRadius = rad
384
E.BlastPressure = 0
385
E.Visible = false
386
E.Hit:connect(function(hit)
387
if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
388
dealdmg(hit.Parent,damage,env,toim,kby,kbx)
389
end
390
end)
391
end
392
393
--Punch Touch--
394
dela = .5
395
punchactive = false
396
function punchhit(hit)
397
if punchactive == true then
398
if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
399
dealdmg(hit.Parent,15,2,dela,0,5)
400
PlaySnd(HitPunchSnd,hit.Parent.Head)
401
if maincol == "New Yeller" then
402
PlaySnd(HitHamonSnd,hit.Parent.Head)
403
end
404
PunchEff(hit.CFrame)
405
end
406
end
407
end
408
Emit2Part.Touched:connect(punchhit)
409
EmitPart.Touched:connect(punchhit)
410
411
--Kick Touch--
412
kickactive = false
413
function kickhit(hit)
414
if kickactive == true then
415
if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
416
PlaySnd(HitPunchSnd,hit.Parent.Head)
417
PunchEff(hit.CFrame)
418
if maincol == "New Yeller" then
419
PlaySnd(HitHamonSnd,hit.Parent.Head)
420
end
421
dealdmg(hit.Parent,20,2,dela,0,20)
422
end
423
end
424
end
425
chara["Right Leg"].Touched:connect(kickhit)
426
chara["Left Leg"].Touched:connect(kickhit)
427
428
--Chat Function--
429
function chatfunc(text)
430
coroutine.resume(coroutine.create(function()
431
if chara:FindFirstChild("TalkingBillBoard")~= nil then
432
chara:FindFirstChild("TalkingBillBoard"):destroy()
433
end
434
local naeeym2 = Instance.new("BillboardGui",chara)
435
naeeym2.Size = UDim2.new(0,100,0,40)
436
naeeym2.StudsOffset = Vector3.new(0,3,0)
437
naeeym2.Adornee = chara.Head
438
naeeym2.Name = "TalkingBillBoard"
439
local tecks2 = Instance.new("TextLabel",naeeym2)
440
tecks2.BackgroundTransparency = 1
441
tecks2.BorderSizePixel = 0
442
tecks2.Text = ""
443
tecks2.Font = "Fantasy"
444
tecks2.FontSize = "Size24"
445
tecks2.TextStrokeTransparency = 0
446
tecks2.TextColor3 = Color3.new(1,1,1)
447
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
448
tecks2.Size = UDim2.new(1,0,0.5,0)
449
coroutine.resume(coroutine.create(function()
450
for i = 1,string.len(text),1 do
451
tecks2.Text = string.sub(text,1,i)
452
swait(0.01)
453
end
454
swait(1)
455
for i = 1, 5 do
456
swait(.01)
457
tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
458
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
459
tecks2.TextTransparency = tecks2.TextTransparency + .2
460
end
461
naeeym2:Destroy()
462
end))
463
end))
464
end
465
466
function onChatted(msg)
467
--chatfunc(msg)
468
if msg == "Hamon!" then
469
HamonSnd:Play()
470
maincol = "New Yeller"
471
for i = 0,.1,.01 do
472
swait()
473
EmitPart.Transparency = 1-i
474
Emit2Part.Transparency = 1-i
475
end
476
p1.Enabled = true
477
p2.Enabled = true
478
RPunchT.Color = ColorSequence.new(Color3.new(1,1,0))
479
LPunchT.Color = ColorSequence.new(Color3.new(1,1,0))
480
RKickT.Color = ColorSequence.new(Color3.new(1,1,0))
481
LKickT.Color = ColorSequence.new(Color3.new(1,1,0))
482
elseif msg == "Hamon off." then
483
maincol = "White"
484
p1.Enabled = false
485
p2.Enabled = false
486
for i = .9,1,.01 do
487
swait()
488
EmitPart.Transparency = i
489
Emit2Part.Transparency = i
490
end
491
RPunchT.Color = ColorSequence.new(BrickColor.new("White").Color)
492
LPunchT.Color = ColorSequence.new(BrickColor.new("White").Color)
493
RKickT.Color = ColorSequence.new(BrickColor.new("White").Color)
494
LKickT.Color = ColorSequence.new(BrickColor.new("White").Color)
495
end
496
end
497
player.Chatted:connect(onChatted)
498
499
--Clerp Animations--
500
TC = chara.HumanoidRootPart.RootJoint
501
HC = chara.Torso.Neck
502
RAC = chara.Torso["Right Shoulder"]
503
LAC = chara.Torso["Left Shoulder"]
504
RLC = chara.Torso["Right Hip"]
505
LLC = chara.Torso["Left Hip"]
506
TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
507
HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
508
RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
509
LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
510
RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
511
LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
512
RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
513
LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
514
RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
515
LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
516
RW = Instance.new("Weld",HC.Parent)
517
RW.Part1 = HC.Parent
518
RW.Part0 = chara["Right Arm"]
519
RW.C0 = RWF
520
LW = Instance.new("Weld",HC.Parent)
521
LW.Part1 = HC.Parent
522
LW.Part0 = chara["Left Arm"]
523
LW.C0 = LWF
524
RLW = nil
525
LLW = nil
526
grp = Instance.new("Model",chara)
527
528
function AddLegWelds()
529
RLW = Instance.new("Weld",chara["Right Leg"])
530
RLW.Part1 = HC.Parent
531
RLW.Part0 = chara["Right Leg"]
532
RLW.C0 = RLWF
533
LLW = Instance.new("Weld",chara["Left Leg"])
534
LLW.Part1 = HC.Parent
535
LLW.Part0 = chara["Left Leg"]
536
LLW.C0 = LLWF
537
end
538
539
function DestroyLegWelds()
540
RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
541
LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
542
RLW:Destroy()
543
LLW:Destroy()
544
end
545
546
function clerp(a,b,c)
547
return a:lerp(b,c)
548
end
549
550
ITCF = TCF
551
IHCF = HCF
552
IRWF = RWF
553
ILWF = LWF
554
555
function res()
556
TC.C0 = ITCF
557
HC.C0 = IHCF
558
RW.C0 = IRWF
559
LW.C0 = ILWF
560
end
561
res()
562
563
--Flip--
564
function Flip()
565
del = true
566
res()
567
hum.WalkSpeed = 0
568
AddLegWelds()
569
Swing2Snd:Play()
570
for i = 0,.6,.2 do
571
swait()
572
TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i)
573
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i)
574
RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
575
LW.C0 = clerp(ILWF,LWF,.4+i)
576
RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i)
577
LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
578
end
579
local bf = Instance.new("BodyVelocity",chara.Torso)
580
bf.P = 100000
581
bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
582
bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*30
583
debby:AddItem(bf,.5)
584
for i = 0,1,.25 do
585
swait()
586
TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
587
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
588
RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
589
LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
590
LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i)
591
end
592
bf.MaxForce = Vector3.new(bf.P,0,bf.P)
593
for i = 0,1,.25 do
594
swait()
595
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i)
596
end
597
swait(.5)
598
bf:Destroy()
599
for i = 0,1,.25 do
600
swait()
601
TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i)
602
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
603
RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i)
604
LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i)
605
LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
606
end
607
for i = 0,.6,.2 do
608
swait()
609
TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i)
610
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i)
611
RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
612
LW.C0 = clerp(ILWF,LWF,.6-i)
613
RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i)
614
LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i)
615
end
616
DestroyLegWelds()
617
res()
618
hum.WalkSpeed = ws
619
walking = false
620
del = false
621
end
622
function BackFlip()
623
del = true
624
res()
625
hum.WalkSpeed = 0
626
AddLegWelds()
627
Swing2Snd:Play()
628
for i = 0,.6,.2 do
629
swait()
630
TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i)
631
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i)
632
RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
633
LW.C0 = clerp(ILWF,LWF,.4+i)
634
RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i)
635
LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
636
end
637
local bf = Instance.new("BodyVelocity",chara.Torso)
638
bf.P = 100000
639
bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
640
bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*-30
641
for i = 0,1,.25 do
642
swait()
643
TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i)
644
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
645
RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
646
LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
647
LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i)
648
end
649
bf.MaxForce = Vector3.new(bf.P,0,bf.P)
650
for i = 0,1,.25 do
651
swait()
652
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i)
653
end
654
swait(.5)
655
bf:Destroy()
656
for i = 0,1,.25 do
657
swait()
658
TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i)
659
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
660
RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i)
661
LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i)
662
LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
663
end
664
for i = 0,.6,.2 do
665
swait()
666
TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i)
667
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i)
668
RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
669
LW.C0 = clerp(ILWF,LWF,.6-i)
670
RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i)
671
LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i)
672
end
673
DestroyLegWelds()
674
res()
675
hum.WalkSpeed = ws
676
walking = false
677
del = false
678
end
679
680
--Keys--
681
combo = 0
682
function onKeyDown(key)
683
if del == false then
684
if key == "r" then
685
BackFlip()
686
elseif key == "t" then
687
Flip()
688
end
689
end
690
end
691
function onButton1Down()
692
if del == false then
693
del = true
694
torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(0,1,0)).magnitude
695
res()
696
if torvel > 3 then
697
Swing2Snd:Play()
698
kickactive = true
699
RKickT.Enabled = true
700
if maincol == "New Yeller" then
701
SHamonSnd:Play()
702
p3.Enabled = true
703
end
704
AddLegWelds()
705
for i = 0,1,.2 do
706
swait()
707
TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
708
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
709
RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
710
LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
711
LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
712
end
713
for i = 0,1,.2 do
714
swait()
715
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i)
716
end
717
DestroyLegWelds()
718
kickactive = false
719
RKickT.Enabled = false
720
p3.Enabled = false
721
SHamonSnd:Stop()
722
elseif torvel < 3 then
723
if combo == 0 then
724
for i = 0,.6,.2 do
725
swait()
726
TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
727
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
728
LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i)
729
RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
730
end
731
swait(.1)
732
Swing2Snd:Play()
733
punchactive = true
734
LPunchT.Enabled = true
735
if maincol == "New Yeller" then
736
SHamonSnd:Play()
737
end
738
for i = 0,.6,.3 do
739
swait()
740
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),TCF,.4+i)
741
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),HCF,.4+i)
742
LW.C0 = clerp((LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
743
RW.C0 = clerp((RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i)
744
end
745
LW.C0 = (LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
746
for i = 0,.6,.2 do
747
swait()
748
TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
749
HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
750
end
751
TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
752
HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
753
swait(.1)
754
for i = 0,.6,.2 do
755
swait()
756
TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
757
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
758
LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
759
RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.6-i)
760
end
761
punchactive = false
762
LPunchT.Enabled = false
763
SHamonSnd:Stop()
764
combo = 1
765
elseif combo == 1 then
766
hum.WalkSpeed = 0
767
AddLegWelds()
768
for i = 0,.6,.2 do
769
swait()
770
TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i)
771
HC.C0 = clerp(IHCF,HCF,.4+i)
772
LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i)
773
RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i)
774
end
775
swait(.1)
776
Swing2Snd:Play()
777
kickactive = true
778
RKickT.Enabled = true
779
if maincol == "New Yeller" then
780
SHamonSnd:Play()
781
p3.Enabled = true
782
end
783
local bfos = Instance.new("BodyVelocity",chara.HumanoidRootPart)
784
bfos.P = 10000
785
bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
786
bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200
787
debby:AddItem(bfos,.1)
788
for i = 0,.6,.2 do
789
swait()
790
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i)
791
LLW.C0 = clerp(LLWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),LLWF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i)
792
RLW.C0 = clerp((RLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),(RLWF - Vector3.new(0,1,1))*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
793
end
794
swait(.3)
795
for i = 0,.6,.2 do
796
swait()
797
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),ITCF,.4+i)
798
HC.C0 = clerp(HCF,IHCF,.4+i)
799
LLW.C0 = clerp(LLWF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),LLWF,.4+i)
800
RLW.C0 = clerp((RLWF - Vector3.new(0,1,1))*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i)
801
end
802
DestroyLegWelds()
803
kickactive = false
804
RKickT.Enabled = false
805
p3.Enabled = false
806
SHamonSnd:Stop()
807
combo = 2
808
elseif combo == 2 then
809
for i = 0,.6,.2 do
810
swait()
811
TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
812
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
813
LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
814
RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i)
815
end
816
swait(.1)
817
Swing2Snd:Play()
818
punchactive = true
819
RPunchT.Enabled = true
820
if maincol == "New Yeller" then
821
SHamonSnd:Play()
822
end
823
for i = 0,.6,.3 do
824
swait()
825
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),TCF,.4+i)
826
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),HCF,.4+i)
827
LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i)
828
RW.C0 = clerp((RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
829
end
830
RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
831
for i = 0,.6,.2 do
832
swait()
833
TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
834
HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
835
end
836
TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
837
HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
838
swait(.1)
839
for i = 0,.6,.2 do
840
swait()
841
TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
842
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
843
LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
844
RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
845
end
846
punchactive = false
847
RPunchT.Enabled = false
848
SHamonSnd:Stop()
849
combo = 3
850
elseif combo == 3 then
851
hum.WalkSpeed = 0
852
AddLegWelds()
853
for i = 0,.6,.2 do
854
swait()
855
TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
856
HC.C0 = clerp(IHCF,HCF,.4+i)
857
LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-60)),.4+i)
858
RLW.C0 = clerp(RLWF,RLWF*CFrame.fromEulerAnglesXYZ(0,0,math.rad(60)),.4+i)
859
LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
860
RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i)
861
end
862
Swing2Snd:Play()
863
kickactive = true
864
LKickT.Enabled = true
865
if maincol == "New Yeller" then
866
SHamonSnd:Play()
867
p4.Enabled = true
868
end
869
local bfos = Instance.new("BodyVelocity",chara.HumanoidRootPart)
870
bfos.P = 10000
871
bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
872
bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200
873
debby:AddItem(bfos,.1)
874
for i = 0,.6,.1 do
875
swait()
876
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-100)),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90)),.4+i)
877
end
878
TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90))
879
swait(.2)
880
for i = 0,.6,.1 do
881
swait()
882
TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90)),.6-i)
883
HC.C0 = clerp(IHCF,HCF,.6-i)
884
LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-60)),.6-i)
885
RLW.C0 = clerp(RLWF,RLWF*CFrame.fromEulerAnglesXYZ(0,0,math.rad(60)),.6-i)
886
LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
887
RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.6-i)
888
end
889
DestroyLegWelds()
890
kickactive = false
891
LKickT.Enabled = false
892
p4.Enabled = false
893
SHamonSnd:Stop()
894
combo = 0
895
end
896
end
897
res()
898
hum.WalkSpeed = ws
899
walking = false
900
del = false
901
end
902
end
903
if mouse then
904
mouse.Button1Down:connect(onButton1Down)
905
mouse.KeyDown:connect(onKeyDown)
906
end
907
908
--Loop Function--
909
walking = false
910
toim = 0
911
while true do
912
swait()
913
toim = toim + .1
914
if del == false then attacking = false elseif del == true then attacking = true end
915
if atkd == true then
916
TC.C0 = TCF
917
HC.C0 = HCF
918
RW.C0 = RWF
919
LW.C0 = LWF
920
atkd = false
921
end
922
if atkdd == true then
923
TC.C0 = ITCF
924
HC.C0 = IHCF
925
RW.C0 = IRWF
926
LW.C0 = ILWF
927
atkdd = false
928
end
929
torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
930
if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
931
for i = 0,1,.25 do
932
swait(.001)
933
if del == false and attacking == false then
934
TC.C0 = clerp(TCF,ITCF,i)
935
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
936
RW.C0 = clerp((RWF - Vector3.new(-1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(45)),IRWF,i)
937
LW.C0 = clerp((LWF - Vector3.new(1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(-45)),ILWF,i)
938
end
939
end
940
walking = false
941
elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
942
for i = 0,1,.25 do
943
swait(.001)
944
if del == false and attacking == false then
945
TC.C0 = clerp(ITCF,TCF,i)
946
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),i)
947
RW.C0 = clerp((RWF - Vector3.new(-1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(45)),IRWF,1-i)
948
LW.C0 = clerp((LWF - Vector3.new(1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(-45)),ILWF,1-i)
949
end
950
end
951
walking = true
952
else
953
end
954
end