View difference between Paste ID: W5xWYZNn and ptQqcWFH
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4-
local player=game.Players.LocalPlayer
4+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.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,Connect=function(self,f)self.Function=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 and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
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})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
-----No names needed-----
88
local player=owner
89
local char=player.Character
90
repeat wait() until player and char
91
local torso=char.Torso
92
local head=char.Head
93
local human=char.Humanoid
94
local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
95
local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
96
local c=function(f) coroutine.resume(coroutine.create(f)) end
97
local p=function(f) pcall(f) end
98
local add={
99
	Part=function(par, a, c, col, t, s, cf, ms)
100
		local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new()  end)
101
		local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
102
		return p
103
	end,
104
	Wedge=function(par, a, c, col, t, s, cf, ms)
105
		local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new()  end)
106
		local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
107
		return p
108
	end,
109
	Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
110
		local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos  end)
111
		return g
112
	end,
113
	Weld=function(par, p1, cf)
114
		local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
115
		return w
116
	end,
117
	Mesh=function(ins, par, s, of, t)
118
		local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
119
		return m
120
	end,
121
	Sound=function(parent, id, volume, pitch)
122
		local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
123
		return s
124
	end,
125
}
126
local scriptname="Chop-Chop" --Name here
127
pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove()  end)
128
local model=Instance.new("Model", char) model.Name="Objects"
129
local modelB=Instance.new("Model", char) modelB.Name=scriptname
130
local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
131
local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
132
local skincolor="Really black"
133
local body={}
134
local animate={}
135
local obj={}
136
--Variables--
137
local trailDeb=false
138
local hitDeb=false
139
local using=false
140
local keyDeb=false
141
local pressing=false
142
local combo=0
143
local mana=100
144
local range=20
145
local dmg=math.random(10, 25)
146
local form=false
147
local Forms
148
local pitch=.5
149
local speed=16
150
local car
151
local pitch=.8
152
local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, pitch)
153
local Portal2=add.Sound(torso, "http://roblox.com/asset/?id=10209668", 1, 1)
154
local Charge=add.Sound(torso, "http://www.roblox.com/asset/?id=2101137", 1, .5)
155
local chargeLabel=add.Gui("TextLabel", gui, "Really black", "White", "Really black", "Size14", mana, 0, UDim2.new(0, 200, 0, 20), UDim2.new(0, 0, 0, 100))
156
local charge=add.Gui("TextLabel", chargeLabel, "Really black", "Bright blue", "Really black", "Size14", "", 0.5, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 0, 0))
157
local attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "Festival(Hold(Q))", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
158
local attackLabel2=add.Gui("TextLabel", attackLabel, "Really black", "Really black", "White", "Size18", "Charge(F)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
159
local attackLabel3=add.Gui("TextLabel", attackLabel2, "Really black", "Really black", "White", "Size18", "Tornado(E)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
160
local attackLabel4=add.Gui("TextLabel", attackLabel3, "Really black", "Really black", "White", "Size18", "ChibiForm(C)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
161
local attackLabel5=add.Gui("TextLabel", attackLabel4, "Really black", "Really black", "White", "Size18", "CarForm(V)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
162
function createParts()
163
	--==PARTS==--
164
	body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
165
	body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
166
	body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
167
	body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
168
	--==WELDS==--
169
	body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
170
	body.TorsoW=add.Weld(body.Torso, torso, nil)
171
	body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
172
	body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
173
	--==WELDS==--
174
	add.Weld(body.Head, head, nil)
175
	add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
176
	add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
177
	torso["Left Hip"].Part0=torso
178
	torso["Right Hip"].Part0=torso
179
	---------------------------------------------------------------------------------------
180
	animate={
181
		["Head"]=function(cf)
182
			body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
183
		end;
184
		["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
185
			body.TorsoW.C1=cf
186
			c(function()
187
				wait(0)
188
				body.Torso.Transparency=1 torso.Transparency=0
189
			end)
190
		end;
191
		["ArmLeft"]=function(cf)
192
			body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
193
		end;
194
		["ArmRight"]=function(cf)
195
			body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
196
		end;
197
		["LegLeft"]=function(cf)
198
			legLeftW=add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -.5, 0))
199
			body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
200
			c(function()
201
				wait(0)
202
				legLeftW:remove()
203
			end)
204
		end;
205
		["LegRight"]=function(cf)
206
			legRightW=add.Weld(leg.Right, body.LegRight, CFrame.new(0, -.5, 0))
207
			body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
208
			c(function()
209
				wait(0)
210
				legRightW:remove()
211
			end)
212
		end;
213
	}
214
	--==Objects==--
215
end
216
function removeParts()
217
	p(function()
218
		if torso then
219
			torso["Left Hip"].Part0=torso
220
			torso["Right Hip"].Part0=torso
221
		end
222
		for i, v in pairs(model:children()) do v:remove() end	for i, v in pairs(modelB:children()) do v:remove() end	for i, v in pairs(char:children()) do v.Transparency=0 end
223
		wait()
224
		torso.Transparency=0
225
	end)
226
end
227
function hit(h)
228
	if using==true then
229
		if h.Parent~=char and h.Parent:findFirstChild("Humanoid") and hitDeb==false then hitDeb=true
230
			local hHuman=h.Parent:findFirstChild("Humanoid")
231
			hHuman.Health=hHuman.Health-dmg
232
			local fakeM=Instance.new("Model", workspace) fakeM.Name=dmg
233
			local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
234
			local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
235
			local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
236
			local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
237
			game.Debris:addItem(fakeM, 2)
238
			wait(.5)
239
			hitDeb=false
240
		end
241
	end
242
end
243
function running()
244
	if form==false then speed=16
245
		animate.Torso(CFrame.new())
246
		animate.Head(CFrame.new())
247
		animate.ArmLeft(CFrame.Angles(-math.rad(15), 0, -math.rad(15)))
248
		animate.ArmRight(CFrame.Angles(-math.rad(15), 0, math.rad(15)))
249
	elseif form==true and Form=="Chibi" then speed=16 Portal2:play()
250
		animate.Torso(CFrame.new(0, -1.5, 0))
251
		wait()
252
		torso.Transparency=1
253
		animate.ArmLeft(CFrame.new(.5, 0, 0)*CFrame.Angles(0, 0, -math.rad(45)))
254
		animate.ArmRight(CFrame.new(-.5, 0, 0)*CFrame.Angles(0, 0, math.rad(45)))
255
	elseif form==true and Form=="Car" then speed=100 Portal2:play()
256
		human.WalkSpeed=speed
257
		animate.Torso(CFrame.new(0, -2, 0)*CFrame.Angles(-math.rad(90), 0, 0))
258
		animate.Head(CFrame.new(0, -1.5, 1)*CFrame.Angles(math.rad(90), 0, 0))
259
		animate.ArmLeft(CFrame.new(.5, 0, 0)*CFrame.Angles(math.rad(180), 0, math.rad(15)))
260
		animate.ArmRight(CFrame.new(-.5, 0, 0)*CFrame.Angles(math.rad(180), 0, -math.rad(15)))
261
		car=Instance.new("Model", char) car.Name="Car"
262
		local handle=add.Part(car, false,true, "Medium stone grey", 0, Vector3.new(.5, 7.2, .5), nil)
263
		local handleM=add.Mesh("CylinderMesh", handle, Vector3.new(1, 1, 1), nil, nil)
264
		local handleW=add.Weld(handle, body.Torso, CFrame.new(0, 2, 0)*CFrame.Angles(0, 0, -math.rad(90)))
265
266
		local TireLeft=add.Part(car, false, true, "Really black", 0, Vector3.new(2, 1, 2), nil)
267
		TireLeftM=add.Mesh("CylinderMesh", TireLeft, Vector3.new(1, 1, 1), nil, nil)
268
		TireLeftW=add.Weld(TireLeft, handle, CFrame.new(0, -3, 0))
269
		local TireRight=add.Part(car, false, true, "Really black", 0, Vector3.new(2, 1, 2), nil)
270
		TireRightM=add.Mesh("CylinderMesh", TireRight, Vector3.new(1, 1, 1), nil, nil)
271
		TireRightW=add.Weld(TireRight, handle, CFrame.new(0, 3, 0))
272
273
		local handle=add.Part(car, false,true, "Medium stone grey", 0, Vector3.new(.5, 7.2, .5), nil)
274
		local handleM=add.Mesh("CylinderMesh", handle, Vector3.new(1, 1, 1), nil, nil)
275
		local handleW=add.Weld(handle, body.Torso, CFrame.new(0, -2, 0)*CFrame.Angles(0, 0, -math.rad(90)))
276
277
		local TireLeft=add.Part(car, false, true, "Really black", 0, Vector3.new(2, 1, 2), nil)
278
		TireLeftM=add.Mesh("CylinderMesh", TireLeft, Vector3.new(1, 1, 1), nil, nil)
279
		TireLeftW=add.Weld(TireLeft, handle, CFrame.new(0, -3, 0))
280
		local TireRight=add.Part(car, false, true, "Really black", 0, Vector3.new(2, 1, 2), nil)
281
		TireRightM=add.Mesh("CylinderMesh", TireRight, Vector3.new(1, 1, 1), nil, nil)
282
		TireRightW=add.Weld(TireRight, handle, CFrame.new(0, 3, 0))
283
		c(function()
284
			while form do wait()
285
				animate.Torso(CFrame.new(0, -2, 0)*CFrame.Angles(-math.rad(90), 0, 0))
286
				animate.LegLeft(CFrame.Angles(0, 0, 0))
287
				animate.LegRight(CFrame.Angles(0, 0, 0))
288
			end
289
			animate.Torso(CFrame.new())
290
			animate.Head(CFrame.new())
291
			car:remove()
292
		end)
293
	end
294
	human.WalkSpeed=speed
295
end
296
function computePos(pos, pos2)
297
	local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
298
	torso.CFrame=CFrame.new(pos, pos3)
299
	return pos3
300
end
301
function nearTorso(pos, dis)
302
	local temp
303
	local distance=dis
304
	for i, v in pairs(workspace:children()) do
305
		if v:isA("Model") then
306
			temp=v:findFirstChild("Torso")
307
			local humanoid=v:findFirstChild("Humanoid")
308
			if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
309
				distance=(temp.CFrame.p-pos).magnitude
310
				return temp
311
			end
312
		end
313
	end
314
end
315
function trail(pos, cf)
316
	c(function()
317
		local old=(pos.CFrame*cf).p
318
		while trailDeb==true do
319
			wait()
320
			local new=(pos.CFrame*cf).p
321
			local mag=(old-new).magnitude
322
			local dis=(old+new)/2
323
			local trail=add.Part(workspace, true, false, "White", 0, Vector3.new(.5, mag, .5), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trail"
324
			local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
325
			trail.Touched:connect(hit)
326
			old=new
327
			c(function()
328
				for i=1, 0, -.1 do
329
					wait()
330
					tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
331
				end
332
				trail:remove()
333
			end)
334
			c(function()
335
				for i=0, 1, .1 do
336
					wait()
337
					trail.Transparency=i
338
				end
339
			end)
340
		end
341
	end)
342
end
343
function Attack() combo=combo+1
344
	if using==false then
345
		if form==false and keyDeb==false then
346
			using=true
347
			for i, v in pairs(char:children()) do
348
				if v:isA("BasePart") then
349
					v.Touched:connect(hit)
350
				end
351
			end
352
			if combo==1 then Slash:play() print("Right Hook")
353
				trailDeb=true
354
				trail(body.ArmRight, CFrame.new(0, -1.5, 0))
355
				for i=0, 1, .1 do wait()
356
					animate.Torso(CFrame.Angles(0, math.rad(15)*i, 0))
357
					animate.ArmRight(CFrame.new(-.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
358
				end
359
				for i=1, 0, -.1 do wait()
360
					animate.Torso(CFrame.Angles(0, math.rad(15)*i, 0))
361
					animate.ArmRight(CFrame.new(-.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
362
				end
363
				trailDeb=false
364
				if combo>2 then Slash:play()
365
					trailDeb=true
366
					trail(body.ArmLeft, CFrame.new(0, -1.5, 0))
367
					for i=0, 1, .1 do wait()
368
						animate.Torso(CFrame.Angles(0, -math.rad(15)*i, 0))
369
						animate.ArmLeft(CFrame.new(.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
370
					end
371
					for i=1, 0, -.1 do wait()
372
					animate.Torso(CFrame.Angles(0, -math.rad(15)*i, 0))
373
						animate.ArmLeft(CFrame.new(.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
374
					end
375
					trailDeb=false
376
				end
377
				if combo>3 then Slash:play() print("Both Hook")
378
					trailDeb=true
379
					for i=0, 1, .1 do wait()
380
					animate.ArmLeft(CFrame.new(.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
381
					animate.ArmRight(CFrame.new(-.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
382
					end
383
					for i=1, 0, -.1 do wait()
384
					animate.ArmLeft(CFrame.new(.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
385
					animate.ArmRight(CFrame.new(-.5*i, 0, -range*i)*CFrame.Angles(math.rad(90), 0, 0))
386
					end
387
					trailDeb=false
388
				end
389
				if combo>4 then print("Rappid Punch")
390
					trailDeb=true
391
					for i=1, 2 do wait()
392
						for i=0, 1, .2 do wait() Slash:play()
393
							animate.ArmLeft(CFrame.new(math.random(-2, 2), math.random(-2, 2), -range*i)*CFrame.Angles(math.rad(90), 0, 0))
394
							animate.ArmRight(CFrame.new(math.random(-2, 2), math.random(-2, 2), -range-(-range*i))*CFrame.Angles(math.rad(90), 0, 0))
395
						end
396
						for i=0, 1, .2 do wait()
397
							animate.ArmLeft(CFrame.new(math.random(-2, 2), math.random(-2, 2), -range-(-range*i))*CFrame.Angles(math.rad(90), 0, 0))
398
							animate.ArmRight(CFrame.new(math.random(-2, 2), math.random(-2, 2), -range*i)*CFrame.Angles(math.rad(90), 0, 0))
399
						end
400
					end
401
					trailDeb=false
402
				end
403
			end
404
			trailDeb=false
405
			animate.ArmLeft(CFrame.Angles(0, 0, 0))
406
			animate.ArmRight(CFrame.Angles(0, 0, 0))
407
			using=false
408
			combo=0
409
			running()
410
		end
411
	end
412
end
413
local Specials={
414
	["Festival"]=function() human.WalkSpeed=0
415
		pressing=true
416
		for i=0, 1, .1 do wait()
417
			animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(135)*i))
418
			animate.ArmRight(CFrame.Angles(0, 0, math.rad(135)*i))
419
			animate.LegLeft(CFrame.Angles(0, 0, -math.rad(45)*i))
420
			animate.LegRight(CFrame.Angles(0, 0, math.rad(45)*i))
421
		end
422
		trailDeb=true
423
		trail(body.ArmLeft, CFrame.new(0, -1.5, 0))
424
		trail(body.ArmRight, CFrame.new(0, -1.5, 0))
425
		trail(body.LegLeft, CFrame.new(0, -1.5, 0))
426
		trail(body.LegRight, CFrame.new(0, -1.5, 0))
427
		while pressing and mana>=1 do wait() mana=mana-1 Slash:play()
428
				pcall(function()
429
					local touchHelper=add.Part(workspace, true, false, "White", 1, Vector3.new(range*1.5, range*1.5, range*1.5), torso.CFrame)
430
					touchHelper.Touched:connect(hit)
431
					c(function() wait(1)
432
						touchHelper:remove()
433
					end)
434
				end)
435
			for i, v in pairs(char:children()) do
436
				if v.ClassName=="Hat" then
437
					pcall(function()
438
						v.Handle.Transparency=1
439
						torso.Transparency=1
440
						head.Transparency=1
441
					end)
442
				end
443
				pcall(function() v.face.Transparency=1 end)
444
			end
445
			animate.ArmLeft(CFrame.new(math.random(-range, range), math.random(-range, range), math.random(-range, range))*CFrame.Angles(math.random(-range, range), math.random(-45, 45), math.random(-45, 45)))
446
			animate.ArmRight(CFrame.new(math.random(-range, range), math.random(-range, range), math.random(-range, range))*CFrame.Angles(math.random(-range, range), math.random(-45, 45), math.random(-45, 45)))
447
			animate.LegLeft(CFrame.new(math.random(-range, range), math.random(-range, range), math.random(-range, range))*CFrame.Angles(math.random(-range, range), math.random(-45, 45), math.random(-45, 45)))
448
			animate.LegRight(CFrame.new(math.random(-range, range), math.random(-range, range), math.random(-range, range))*CFrame.Angles(math.random(-range, range), math.random(-45, 45), math.random(-45, 45)))
449
		end
450
		trailDeb=false
451
		for i, v in pairs(char:children()) do
452
			if v.ClassName=="Hat" then
453
				pcall(function()
454
					v.Handle.Transparency=0
455
					torso.Transparency=0
456
					head.Transparency=0
457
				end)
458
			end
459
			pcall(function() v.face.Transparency=0 end)
460
		end
461
		for i=1, 0, -.1 do wait()
462
			animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(135)*i))
463
			animate.ArmRight(CFrame.Angles(0, 0, math.rad(135)*i))
464
			animate.LegLeft(CFrame.Angles(0, 0, -math.rad(45)*i))
465
			animate.LegRight(CFrame.Angles(0, 0, math.rad(45)*i))
466
		end
467
		running()
468
		human.WalkSpeed=speed
469
	end;
470
	["Charge"]=function() human.WalkSpeed=0
471
		pressing=true
472
		for i=0, 1, .1 do wait()
473
			animate.ArmLeft(CFrame.Angles(-math.rad(15)*i, 0, -math.rad(15)*i))
474
			animate.ArmRight(CFrame.Angles(math.rad(135)*i, 0, math.rad(15)*i))
475
		end
476
		Charge:play()
477
		while pressing do wait() if mana<100 then mana=mana+1 end
478
			local aura=add.Part(workspace, true, false, "Bright blue", .5, Vector3.new(1, 1, 1), torso.CFrame*CFrame.new(0, -2, 0)*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0)) aura.Name="Effect"
479
			local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(1, 1, 1), nil, "File") auraM.MeshId="http://www.roblox.com/asset/?id=20329976"
480
			c(function()
481
				for i=0, 3, .1 do wait()
482
					auraM.Scale=auraM.Scale+Vector3.new(i, i/2, i)
483
				end
484
				c(function()
485
					for i=.5, 1, .1 do
486
						wait()
487
						aura.Transparency=i
488
					end
489
				end)
490
				aura:remove()
491
			end)
492
		end
493
		for i=1, 0, -.1 do wait()
494
			animate.ArmLeft(CFrame.Angles(-math.rad(15)*i, 0, -math.rad(15)*i))
495
			animate.ArmRight(CFrame.Angles(math.rad(135)*i, 0, -math.rad(15)*i))
496
		end
497
		running()
498
		human.WalkSpeed=speed
499
	end;
500
	["Tornado"]=function() human.WalkSpeed=0
501
		mana=mana-20
502
		for i=0, 1, .1 do wait()
503
			animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
504
			animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
505
			animate.LegLeft(CFrame.new()) animate.LegRight(CFrame.new())
506
		end
507
		trailDeb=true
508
		trail(body.ArmLeft, CFrame.new(0, -1.5, 0))
509
		trail(body.ArmRight, CFrame.new(0, -1.5, 0))
510
		for i=1, 50 do wait() Slash:play()
511
			animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
512
			animate.ArmLeft(CFrame.new(-i, i/25, 0)*CFrame.Angles(0, 0, -math.rad(90)))
513
			animate.ArmRight(CFrame.new(i, i/25, 0)*CFrame.Angles(0, 0, math.rad(90)))
514
			animate.LegLeft(CFrame.new()) animate.LegRight(CFrame.new())
515
		end
516
		for i=50, 0, -1 do wait() Slash:play()
517
			animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
518
			animate.ArmLeft(CFrame.new(-i, i/25, 0)*CFrame.Angles(0, 0, -math.rad(90)))
519
			animate.ArmRight(CFrame.new(i, i/25, 0)*CFrame.Angles(0, 0, math.rad(90)))
520
			animate.LegLeft(CFrame.new()) animate.LegRight(CFrame.new())
521
		end
522
		trailDeb=false
523
		for i=1, 0, -.1 do wait()
524
			animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
525
			animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
526
		end
527
		human.WalkSpeed=speed
528
	end;
529
}
530
bin.Selected:connect(function(mouse) createParts()
531
	running()
532
	mouse.Button1Down:connect(Attack)
533
	mouse.KeyDown:connect(function(key)
534
		local key=key:lower()
535
		if form==false and using==false then
536
			if key=="q" and mana>=0 and keyDeb==false then
537
				keyDeb=true using=true
538
				Specials.Festival()
539
				keyDeb=false using=false
540
			end
541
			if key=="e" and keyDeb==false and mana>=20 then
542
				keyDeb=true using=true
543
				Specials.Tornado()
544
				keyDeb=false using=false
545
			end
546
			if key=="f" and keyDeb==false then
547
				keyDeb=true
548
				Specials.Charge()
549
				keyDeb=false
550
			end
551
		end
552
		if key=="c" and keyDeb==false and form==false then
553
			keyDeb=true form=true Form="Chibi"
554
			running()
555
			keyDeb=false
556
		elseif key=="c" and keyDeb==false and form==true then
557
			keyDeb=true form=false Form=nil
558
			running()
559
			keyDeb=false
560
		end
561
		if key=="v" and keyDeb==false and form==false then
562
			keyDeb=true form=true Form="Car"
563
			running()
564
			keyDeb=false
565
		elseif key=="v" and keyDeb==false and form==true then
566
			keyDeb=true form=false Form=nil
567
			running()
568
			pcall(function() car:remove() end)
569
			keyDeb=false
570
		end
571
	end)
572
	mouse.KeyUp:connect(function(key)
573
		if form==false then
574
			if key=="q" then pressing=false end
575
			if key=="f" then pressing=false end
576
		end
577
	end)
578
	while wait() do charge.Size=UDim2.new(mana/100, 0, 1, 0) chargeLabel.Text=mana end
579
end)
580
bin.Deselected:connect(function() removeParts() end)--mediafire