View difference between Paste ID: W5qnEcGr and hkq0t6sX
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
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
--[[screw bumper cars now we have...
88
	
89
	
90
	
91
	
92
	A REAL FUCKING CAR HOLY SHIT!!!!1!1]]--
93
94-
maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
94+
maincolor =owner.Character.Torso.BrickColor.Name
95
secondcolor = "Really black"
96
97
wait(1 / 60)
98
Effects = { }
99
local Player =owner
100
local Character = Player.Character
101
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
102
local LeftArm = Character["Left Arm"]
103
local RightArm = Character["Right Arm"]
104
local LeftLeg = Character["Left Leg"]
105
local RightLeg = Character["Right Leg"]
106
local Head = Character.Head
107
local Torso = Character.Torso
108
local cam = game.Workspace.CurrentCamera
109
local RootPart = Character.HumanoidRootPart
110
local RootJoint = RootPart.RootJoint
111
local equipped = true
112
local attack = false
113
local Anim = 'Idle'
114
local idle = 0
115
local attacktype = 1
116
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
117
local velocity = RootPart.Velocity.y
118
local sine = 0
119
local change = 1
120
local grabbed = false
121
local cn = CFrame.new
122
local mr = math.rad
123
local angles = CFrame.Angles
124
local ud = UDim2.new
125
local c3 = Color3.new
126
local dir = {w = 0, s = 0, a = 0, d = 0} 
127
Climbanim = false
128
Runkey=false
129
firemode = false
130
inair = false
131
blocking=false
132
humHsave=0
133
humDsave=0
134
extralock=true
135
lasthit = nil
136
IKM = false
137-
ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
137+
ff = Instance.new("ForceField",owner.Character)
138
ff.Visible = false
139
HMDX = Humanoid.MoveDirection.X/3
140
HMDZ = Humanoid.MoveDirection.Z/3
141
local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,1)),
142
ColorSequenceKeypoint.new(0.16, Color3.new(0,1,1)),
143
ColorSequenceKeypoint.new(0.32, Color3.new(0,1,1)),
144
ColorSequenceKeypoint.new(0.48, Color3.new(0.5,0,1)),
145
ColorSequenceKeypoint.new(0.64, Color3.new(0.5,0,1)),
146
ColorSequenceKeypoint.new(0.80, Color3.new(0.5,0,1)),
147
ColorSequenceKeypoint.new(0.96, Color3.new(0.5,0,1)),
148
ColorSequenceKeypoint.new(1, Color3.new(0.5,0,1))}
149
local s = Instance.new("Sound",Character)
150
	s.Name = "BumperCarSound"
151
	s.SoundId = "http://www.roblox.com/asset/?id=532147820"
152
	s.Pitch = .7
153
	s.Volume = 5
154
	s.Looped = true
155
	s.archivable = false
156
	s.Parent = Character
157
	s:play()
158
local airtime = Instance.new("Sound",Character)
159
	airtime.Name = "airtime"
160
	airtime.SoundId = "http://www.roblox.com/asset/?id=892076107"
161
	airtime.Volume = 5
162
	airtime.archivable = false
163
	airtime.Parent = Character
164
sflon = true
165-
bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
165+
bg2 = Instance.new("BodyGyro",owner.Character.HumanoidRootPart)
166
game:GetService("RunService"):BindToRenderStep("ew", 0, function()
167
	if attack == true then
168
		bg2.D = 0
169
		bg2.P = 0
170
		bg2.maxTorque = Vector3.new(0,0,0)
171
	end
172
	if attack == false then
173
		bg2.D = 100
174
		bg2.P = 9999
175
		bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
176-
bg2.CFrame  = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position ,Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,game.Workspace.CurrentCamera.CoordinateFrame.p.z)) * CFrame.Angles(0,math.rad(180),0)
176+
bg2.CFrame  = CFrame.new(owner.Character.HumanoidRootPart.Position ,Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.p.x,owner.Character.HumanoidRootPart.Position.y,game.Workspace.CurrentCamera.CoordinateFrame.p.z)) * CFrame.Angles(0,math.rad(180),0)
177
		 
178
end
179
end)--]]
180
181
New = function(Object, Parent, Name, Data)
182
	local Object = Instance.new(Object)
183
	for Index, Value in pairs(Data or {}) do
184
		Object[Index] = Value
185
	end
186
	Object.Parent = Parent
187
	Object.Name = Name
188
	return Object
189
end
190
	
191
BumperCar = New("Model",Workspace,"BumperCar",{})
192
SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
193
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(1.359, 0.416, 13.38),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.7,0.7,0.7),})
194
wheel = New("Part",BumperCar,"wheels",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 8.15000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
195
wheel2 = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 6.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
196
body = New("Part",BumperCar,"car",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
197
glass = New("Part",BumperCar,"glass",{BrickColor = BrickColor.new("Pastel light blue"),Material = Enum.Material.Glass,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.18500664, 10.45000019, -35.7631157, 0.001, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,})
198
inside = New("Part",BumperCar,"inside",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 8.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
199
grille = New("Part",BumperCar,"grille",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.1,0.1,0.1),})
200
plate = New("Part",BumperCar,"plate",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -44.7851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
201
rl = New("Part",BumperCar,"rl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.1751157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,0,0),})
202
hl = New("Part",BumperCar,"hl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
203
ep = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(18, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 12.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
204
hitbox = New("Part",BumperCar,"hitbox",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 16),CFrame = CFrame.new(-5.16500664, 10.05000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
205
hitbox2 = New("Part",BumperCar,"hitbox2",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 11.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
206
207
FrontPart = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(6, 6, 6),CFrame = CFrame.new(-5.16500664, 7.55000019, -31.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),Transparency = 1,})
208
209
210
211
212
213
214
215
216
217
218
219
220
local mesh2 = Instance.new("FileMesh")
221
mesh2.Parent = body
222
mesh2.MeshId = "rbxassetid://1432737948" 
223
local mesh = Instance.new("FileMesh")
224
mesh.Parent = wheel
225
mesh.MeshId = "rbxassetid://1432629613" 
226
local mesh3 = Instance.new("FileMesh")
227
mesh3.Parent = glass
228
mesh3.MeshId = "rbxassetid://1432810983"
229
local mesh4 = Instance.new("FileMesh")
230
mesh4.Parent = inside
231
mesh4.MeshId = "rbxassetid://1432877497"
232
local mesh5 = Instance.new("FileMesh")
233
mesh5.Parent = grille
234
mesh5.MeshId = "rbxassetid://1432898984"
235
local mesh6 = Instance.new("FileMesh")
236
mesh6.Parent = plate
237
mesh6.MeshId = "rbxassetid://1432917470"
238
local mesh7 = Instance.new("FileMesh")
239
mesh7.Parent = rl
240
mesh7.MeshId = "rbxassetid://1432942116"
241
local mesh8 = Instance.new("FileMesh")
242
mesh8.Parent = hl
243
mesh8.MeshId = "rbxassetid://1432958104"
244
local Light = Instance.new("SpotLight",hl)
245
Light.Angle = 90;
246
Light.Brightness = 100;
247
Light.Face = Enum.NormalId.Left;
248
Light.Range = 30;
249
local lt2 = Instance.new('PointLight',rl)
250
lt2.Range = 8
251
lt2.Brightness = 100
252
lt2.Color = Color3.new(1,0,0)
253
lt2.Enabled = true
254
lt2.Shadows = true
255
ep.Transparency = 1
256
particle = Instance.new("ParticleEmitter",ep)
257
particle.Enabled = false
258
particle.EmissionDirection = "Bottom"
259
particle.Lifetime = NumberRange.new(2.5,2.501)
260
particle.Rate = 1500
261
particle.Texture = "rbxassetid://241629053"
262
particle.Color = ColorSequence.new(Color3.new(0,0,1))
263
264
particle.Size = NumberSequence.new(1.4,1.41)
265
local all,last = {}
266
function scan(p)
267
	for _,v in pairs(p:GetChildren()) do
268
		if (v:IsA("BasePart")) then
269
			if (last) then
270
				local w = Instance.new("Weld")
271
				w.Part0,w.Part1 = last,v
272
				w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
273
				w.Parent = last
274
			end
275
			table.insert(all,v)
276
			last = v
277
		end
278
		scan(v)
279
	end
280
end
281
scan(BumperCar)
282
283
284
for _,v in pairs(all) do v.Anchored = false v.CanCollide = false  end 
285
wheel2.Transparency = 1
286
 wheel2.CanCollide = true
287
hitbox.CanCollide = true
288
hitbox.Transparency = 1
289
hitbox2.CanCollide = true
290
hitbox2.Transparency = 1
291
BumperCar.Parent = Character
292
293
local Services = {
294
295
296
SoundService = game:GetService("SoundService");
297
Players = game:GetService("Players");
298
Debris = game:GetService("Debris");
299
Workspace = game:GetService("Workspace");
300
Lighting = game:GetService("Lighting");
301
HttpService = game:GetService("HttpService");
302
InsertService = game:GetService("InsertService");
303
	
304
}   
305
306
local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
307
Humanoid.Animator:Destroy()
308
Character.Animate:Destroy()
309
310
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
311
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
312
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
313
314
315
316
SWW = Instance.new("Weld")
317
SWW.Name = "SWW"
318
SWW.Part0 = Torso 
319
SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
320
SWW.C1 = cn(0, 0, 0) 
321
SWW.Part1 = SwHandle
322
SWW.Parent = Torso 
323
324
RSH, LSH = nil, nil 
325
326
RW = Instance.new("Weld") 
327
LW = Instance.new("Weld")
328
329
RH = Torso["Right Hip"]
330
LH = Torso["Left Hip"]
331
332
RSH = Torso["Right Shoulder"] 
333
LSH = Torso["Left Shoulder"] 
334
335
RSH.Parent = nil 
336
LSH.Parent = nil 
337
338
RW.Name = "RW"
339
RW.Part0 = Torso 
340
RW.C0 = cn(1.5, 0.5, 0)
341
RW.C1 = cn(0, 0.5, 0) 
342
RW.Part1 = RightArm
343
RW.Parent = Torso 
344
345
LW.Name = "LW"
346
LW.Part0 = Torso 
347
LW.C0 = cn(-1.5, 0.5, 0)
348
LW.C1 = cn(0, 0.5, 0) 
349
LW.Part1 = LeftArm
350
LW.Parent = Torso 
351
352
function clerp(a, b, t) 
353
	local qa = {
354
		QuaternionFromCFrame(a)
355
	}
356
	local qb = {
357
		QuaternionFromCFrame(b)
358
	} 
359
	local ax, ay, az = a.x, a.y, a.z 
360
	local bx, by, bz = b.x, b.y, b.z
361
	local _t = 1 - t
362
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) 
363
end 
364
365
function QuaternionFromCFrame(cf) 
366
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
367
	local trace = m00 + m11 + m22 
368
	if trace > 0 then 
369
		local s = math.sqrt(1 + trace) 
370
		local recip = 0.5 / s 
371
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 
372
	else 
373
		local i = 0 
374
		if m11 > m00 then
375
			i = 1
376
		end
377
		if m22 > (i == 0 and m00 or m11) then 
378
			i = 2 
379
		end 
380
		if i == 0 then 
381
			local s = math.sqrt(m00 - m11 - m22 + 1) 
382
			local recip = 0.5 / s 
383
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip 
384
		elseif i == 1 then 
385
			local s = math.sqrt(m11 - m22 - m00 + 1) 
386
			local recip = 0.5 / s 
387
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip 
388
		elseif i == 2 then 
389
			local s = math.sqrt(m22 - m00 - m11 + 1) 
390
			local recip = 0.5 / s
391
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip 
392
		end 
393
	end 
394
end
395
 
396
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
397
	local xs, ys, zs = x + x, y + y, z + z 
398
	local wx, wy, wz = w * xs, w * ys, w * zs 
399
	local xx = x * xs 
400
	local xy = x * ys 
401
	local xz = x * zs 
402
	local yy = y * ys 
403
	local yz = y * zs 
404
	local zz = z * zs 
405
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) 
406
end
407
 
408
function QuaternionSlerp(a, b, t) 
409
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] 
410
	local startInterp, finishInterp; 
411
	if cosTheta >= 0.0001 then 
412
		if (1 - cosTheta) > 0.0001 then 
413
			local theta = math.acos(cosTheta) 
414
			local invSinTheta = 1 / math.sin(theta) 
415
			startInterp = math.sin((1 - t) * theta) * invSinTheta 
416
			finishInterp = math.sin(t * theta) * invSinTheta  
417
		else 
418
			startInterp = 1 - t 
419
			finishInterp = t 
420
		end 
421
	else 
422
		if (1 + cosTheta) > 0.0001 then 
423
			local theta = math.acos(-cosTheta) 
424
			local invSinTheta = 1 / math.sin(theta) 
425
			startInterp = math.sin((t - 1) * theta) * invSinTheta 
426
			finishInterp = math.sin(t * theta) * invSinTheta 
427
		else 
428
			startInterp = t - 1 
429
			finishInterp = t 
430
		end 
431
	end 
432
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp 
433
end
434
435
function swait(num)
436
	if num == 0 or num == nil then
437
		game:service'RunService'.Stepped:wait(0)
438
	else
439
		for i = 0, num do
440
			game:service'RunService'.Stepped:wait(0)
441
		end
442
	end
443
end
444
445
local RbxUtility = LoadLibrary("RbxUtility")
446
local Create = RbxUtility.Create
447
448
function RemoveOutlines(part)
449
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
450
end
451
	
452
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
453
	local Part = Create("Part"){
454
		formFactor = FormFactor,
455
		Parent = Parent,
456
		Reflectance = Reflectance,
457
		Transparency = Transparency,
458
		CanCollide = false,
459
		Locked = true,
460
		BrickColor = BrickColor.new(tostring(BColor)),
461
		Name = Name,
462
		Size = Size,
463
		Material = Material,
464
	}
465
	RemoveOutlines(Part)
466
	return Part
467
end
468
	
469
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
470
	local Msh = Create(Mesh){
471
		Parent = Part,
472
		Offset = OffSet,
473
		Scale = Scale,
474
	}
475
	if Mesh == "SpecialMesh" then
476
		Msh.MeshType = MeshType
477
		Msh.MeshId = MeshId
478
	end
479
	return Msh
480
end
481
	
482
function CreateWeld(Parent, Part0, Part1, C0, C1)
483
	local Weld = Create("Weld"){
484
		Parent = Parent,
485
		Part0 = Part0,
486
		Part1 = Part1,
487
		C0 = C0,
488
		C1 = C1,
489
	}
490
	return Weld
491
end
492
493
function rayCast(Position, Direction, Range, Ignore)
494
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
495
end 
496
497
function CreateSound(id, par, vol, pit) 
498
	coroutine.resume(coroutine.create(function()
499
		local sou = Instance.new("Sound", par or workspace)
500
		sou.Volume = vol
501
		sou.Pitch = pit or 1
502
		sou.SoundId = id
503
		wait() 
504
		sou:play() 
505
		game:GetService("Debris"):AddItem(sou, 6)
506
	end))
507
end
508
function CreateSong(id, par, vol, pit) 
509
	coroutine.resume(coroutine.create(function()
510
	 sou2 = Instance.new("Sound", par or workspace)
511
		sou2.Volume = vol
512
		sou2.Pitch = 1
513
		sou2.SoundId = id
514
		wait() 
515
		sou2:play() 
516
		sou2.Looped = true		
517
	end))
518
end
519
520
local function getclosest(obj, distance)
521
	local last, lastx = distance + 1
522
	for i, v in pairs(workspace:GetChildren()) do
523
		if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
524
			local t = v.Torso
525
			local dist = (t.Position - obj.Position).magnitude
526
			if dist <= distance then
527
				if dist < last then
528
					last = dist
529
					lastx = v
530
				end
531
			end
532
		end
533
	end
534
	return lastx
535
end
536
537
function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
538
	for i, v in pairs(hit:GetChildren()) do 
539
		if v:IsA("Humanoid") and hit.Name ~= Character.Name then
540
			local find = v:FindFirstChild("Hitz")
541
			if not find then
542
				if v.Parent:findFirstChild("Head") then
543
					local BillG = Create("BillboardGui"){
544
						Parent = v.Parent.Head,
545
						Size = UDim2.new(1, 0, 1, 0),
546
						Adornee = v.Parent.Head,
547
						StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
548
					}
549
					local TL = Create("TextLabel"){
550
						Parent = BillG,
551
						Size = UDim2.new(3, 3, 3, 3),
552
						BackgroundTransparency = 1,
553
						Text = tostring(damage).."-",
554
						TextColor3 = Color1.Color,
555
						TextStrokeColor3 = Color2.Color,
556
						TextStrokeTransparency = 0,
557
						TextXAlignment = Enum.TextXAlignment.Center,
558
						TextYAlignment = Enum.TextYAlignment.Center,
559
						FontSize = Enum.FontSize.Size18,
560
						Font = "ArialBold",
561
					}
562
					coroutine.resume(coroutine.create(function()
563
						wait(1)
564
						for i = 0, 1, .1 do
565
							wait(.1)
566
							BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
567
						end
568
						BillG:Destroy()
569
					end))
570
				end
571
				v.Health = v.Health - damage
572
				local bool = Create("BoolValue"){
573
					Parent = v,
574
					Name = 'Hitz',
575
				}
576
				if HSound ~= nil and HPitch ~= nil then
577
					CreateSound(HSound, hit, 1, HPitch) 
578
				end
579
				game:GetService("Debris"):AddItem(bool, cooldown)
580
			end
581
		end
582
	end
583
end
584
585
586
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
587
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
588
	prt.Anchored = true
589
	prt.CFrame = cframe
590
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
591
	game:GetService("Debris"):AddItem(prt, 10)
592
	if Type == 1 or Type == nil then
593
		table.insert(Effects, {
594
			prt,
595
			"Block1",
596
			delay,
597
			x3,
598
			y3,
599
			z3,
600
			msh
601
		})
602
	elseif Type == 2 then
603
		table.insert(Effects, {
604
			prt,
605
			"Block2",
606
			delay,
607
			x3,
608
			y3,
609
			z3,
610
			msh
611
		})
612
	elseif Type == 3 then
613
		table.insert(Effects, {
614
			prt,
615
			"Block3",
616
			delay,
617
			x3,
618
			y3,
619
			z3,
620
			msh
621
		})
622
	end
623
end
624
625
function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
626
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
627
	prt.Anchored = true
628
	prt.CFrame = cframe
629
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
630
	game:GetService("Debris"):AddItem(prt, 10)
631
	table.insert(Effects, {
632
		prt,
633
		"Cylinder",
634
		delay,
635
		x3,
636
		y3,
637
		z3,
638
		msh
639
	})
640
end
641
642
function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
643
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
644
	prt.Anchored = true
645
	prt.CFrame = cframe * CFrame.new(x1, y1, z1)
646
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
647
	game:GetService("Debris"):AddItem(prt, 10)
648
	table.insert(Effects, {
649
		prt,
650
		"Cylinder",
651
		delay,
652
		x3,
653
		y3,
654
		z3,
655
		msh
656
	})
657
end
658
659
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
660
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
661
	prt.Anchored = true
662
	prt.CFrame = cframe
663
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
664
	game:GetService("Debris"):AddItem(prt, 10)
665
	table.insert(Effects, {
666
		prt,
667
		"Cylinder",
668
		delay,
669
		x3,
670
		y3,
671
		z3,
672
		msh
673
	})
674
end
675
676
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
677
	local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
678
	prt.Anchored = true
679
	prt.CFrame = cframe
680
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
681
	game:GetService("Debris"):AddItem(prt, 10)
682
	table.insert(Effects, {
683
		prt,
684
		"Cylinder",
685
		delay,
686
		x3,
687
		y3,
688
		z3,
689
		msh
690
	})
691
end
692
693
function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
694
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
695
	prt.Anchored = true
696
	prt.CFrame = cframe
697
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
698
	game:GetService("Debris"):AddItem(prt, 10)
699
	table.insert(Effects, {
700
		prt,
701
		"Cylinder",
702
		delay,
703
		x3,
704
		y3,
705
		z3,
706
		msh
707
	})
708
end
709
710
function BreakEffect(brickcolor, cframe, x1, y1, z1)
711
	local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
712
	prt.Anchored = true
713
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
714
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
715
	local num = math.random(10, 50) / 1000
716
	game:GetService("Debris"):AddItem(prt, 10)
717
	table.insert(Effects, {
718
		prt,
719
		"Shatter",
720
		num,
721
		prt.CFrame,
722
		math.random() - math.random(),
723
		0,
724
		math.random(50, 100) / 100
725
	})
726
end
727
728
729
	
730
731
	for i = 0, 1, 0.05 do
732
		swait()
733
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
734
		Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
735
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
736
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
737
		if Torsovelocity > 2 then
738
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
739
		RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
740
		LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
741
		elseif Torsovelocity < 1 then
742
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
743
		RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
744
		LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
745
		end
746
	end
747
	attack = false
748
749
750
751
game:GetService'RunService'.Stepped:connect(function()
752
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
753
	velocity = RootPart.Velocity.y
754
	sine = sine + change
755
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
756
	if equipped == true or equipped == false then
757
		if RootPart.Velocity.y > -1 and hit == nil then 
758
			Anim = "Jump"
759
			inair = true
760
761
			if attack == false then
762
					s.Pitch = 1
763
	s.Volume = 5
764
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
765
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
766
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-15)), 0.1)
767
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(15)), 0.1)
768
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
769
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
770
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
771
			end			
772
		elseif RootPart.Velocity.y < -1 and hit == nil then 
773
			Anim = "Fall"
774
			inair = true
775
776
			if attack == false then
777
	s.Pitch = .7
778
	s.Volume = 5				
779
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
780
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
781
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(45)), 0.05)
782
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-45)), 0.05)
783
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
784
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
785
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
786
			end
787
		elseif Torsovelocity < 1 and hit ~= nil then
788
			Anim = "Idle"
789
	
790
			inair = false
791
		if attack == false then
792
	s.Pitch = .7
793
	s.Volume = 5			
794
				change = 0.8
795
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
796
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
797
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
798
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
799
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
800
					LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
801
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)			
802
			end --]]
803
804
		elseif Torsovelocity > 1 and hit ~= nil then
805
			Anim = "Walk"
806
inair = false	
807
808
			if attack == false and Runkey == true then
809
	s.Pitch = 1.2
810
	s.Volume = 5
811
	
812
								change = 1
813
								Humanoid.WalkSpeed = 60
814
								Humanoid.JumpPower = 105
815
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-45), math.rad(0) + RootPart.RotVelocity.Y/40, math.rad(2 * math.cos(sine / 1))), .4)
816
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(35 - 1 * math.cos(sine / 4)), math.rad(0),  math.rad(-0) + RootPart.RotVelocity.Y/20), .2)
817
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(25 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-45)), 0.2)
818
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(25 + 1 * math.cos(sine / 4)), math.rad(0), math.rad(45)), 0.2)
819
					RH.C0 = clerp(RH.C0, cn(.6, -1, 0) * RHCF * angles(math.rad(6), math.rad(0), math.rad(45 + .05 * math.cos(sine / 25))), .4)
820
					LH.C0 = clerp(LH.C0, cn(-.6, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-45 + .05 * math.cos(sine / 25))), .4)
821
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4)	
822
			end
823
			if attack == false and Runkey == false then
824
	s.Pitch = .8
825
	s.Volume = 5
826
			change = 0.65
827
			Humanoid.WalkSpeed = 30
828
			Humanoid.JumpPower = 50
829
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(.5 * math.cos(sine / 1))), .3)
830
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .1)
831
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
832
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
833
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
834
					LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
835
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
836
			end
837
838
	function onClimbing(speed)
839
		if attack == false then
840
		attack = true
841
		Climbanim= true
842
		Humanoid.WalkSpeed = 14
843
while Climbanim == true do
844
	for i = 0, 0, 0.1 do
845
        swait()
846
	
847
	change = 0.5	
848
	
849
	
850
	
851
	if RootPart.Velocity.y > .01 then
852
			s.Pitch = .9
853
	s.Volume = 5
854
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
855
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
856
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
857
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
858
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
859
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
860
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
861
	end	
862
			
863
			
864
			
865
			
866
	if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5  then
867
			s.Pitch = .7
868
	s.Volume = 5
869
					  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
870
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
871
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
872
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
873
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
874
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
875
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
876
				end				
877
			
878
			
879
		if RootPart.Velocity.y < -1 then
880
				s.Pitch = .9
881
	s.Volume = 5
882
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
883
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
884
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
885
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
886
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
887
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
888
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)				end			
889
			
890
	end	
891
	if  Torsovelocity > 1  then
892
	Climbanim = false
893
	end
894
end	
895
attack = false	
896
	end
897
	end
898
	Humanoid.Climbing:connect(onClimbing)
899
					
900
			
901
			
902
		end
903
	end
904
905
	
906
	if #Effects > 0 then
907
		for e = 1, #Effects do
908
			if Effects[e] ~= nil then
909
				local Thing = Effects[e]
910
				if Thing ~= nil then
911
					local Part = Thing[1]
912
					local Mode = Thing[2]
913
					local Delay = Thing[3]
914
					local IncX = Thing[4]
915
					local IncY = Thing[5]
916
					local IncZ = Thing[6]
917
					if Thing[1].Transparency <= 1 then
918
						if Thing[2] == "Block1" then
919
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
920
							local Mesh = Thing[1].Mesh
921
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
922
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
923
						elseif Thing[2] == "Block2" then
924
							Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
925
							local Mesh = Thing[7]
926
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
927
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
928
						elseif Thing[2] == "Block3" then
929
							Thing[1].CFrame = Thing[1].CFrame  * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.15,0)
930
							local Mesh = Thing[7]
931
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
932
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]							
933
						elseif Thing[2] == "Cylinder" then
934
							local Mesh = Thing[1].Mesh
935
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
936
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
937
						elseif Thing[2] == "Blood" then
938
							local Mesh = Thing[7]
939
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
940
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
941
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
942
						elseif Thing[2] == "Elec" then
943
							local Mesh = Thing[1].Mesh
944
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
945
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
946
						elseif Thing[2] == "Disappear" then
947
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
948
						elseif Thing[2] == "Shatter" then
949
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
950
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
951
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
952
							Thing[6] = Thing[6] + Thing[5]
953
						end
954
					else
955
						Part.Parent = nil
956
						table.remove(Effects, e)
957
					end
958
				end
959
			end
960
		end
961
	end
962
end)
963
964
965
	Effects = {
966
Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
967
	
968
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
969
	prt.Anchored = true
970
	prt.CFrame = cframe
971
	local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
972
	game:GetService("Debris"):AddItem(prt, 10)
973
	if Type == 1 or Type == nil then
974
		table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
975
	else
976
		if Type == 2 then
977
			table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
978
		else
979
			table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
980
		end
981
	end
982
end
983
}
984
, 
985
Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
986
	
987
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
988
	prt.Anchored = true
989
	prt.CFrame = cframe
990
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
991
	game:GetService("Debris"):AddItem(prt, 10)
992
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
993
end
994
}
995
, 
996
Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
997
	
998
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
999
	prt.Anchored = true
1000
	prt.CFrame = cframe
1001
	local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1002
	game:GetService("Debris"):AddItem(prt, 10)
1003
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
1004
end
1005
}
1006
, 
1007
Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1008
	
1009
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1010
	prt.Anchored = true
1011
	prt.CFrame = cframe
1012
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
1013
	game:GetService("Debris"):AddItem(prt, 10)
1014
	table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
1015
end
1016
}
1017
, 
1018
Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1019
	
1020
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1021
	prt.Anchored = true
1022
	prt.CFrame = cframe
1023
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1024
	game:GetService("Debris"):AddItem(prt, 10)
1025
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
1026
end
1027
}
1028
, 
1029
Break = {Create = function(brickcolor, cframe, x1, y1, z1)
1030
	
1031
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1032
	prt.Anchored = true
1033
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1034
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1035
	local num = math.random(10, 50) / 1000
1036
	game:GetService("Debris"):AddItem(prt, 10)
1037
	table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
1038
end
1039
}
1040
}
1041
1042
1043
1044
	RemoveOutlines = function(part)
1045
	
1046
	part.TopSurface = 10
1047
end
1048
1049
	CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1050
	
1051
	local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
1052
	RemoveOutlines(Part)
1053
	return Part
1054
end
1055
1056
	CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1057
	
1058
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
1059
	if Mesh == "SpecialMesh" then
1060
		Msh.MeshType = MeshType
1061
		Msh.MeshId = MeshId
1062
	end
1063
	return Msh
1064
end
1065
1066
	CreateWeld = function(Parent, Part0, Part1, C0, C1)
1067
	
1068
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
1069
	return Weld
1070
end
1071
1072
1073
1074
1075
WSHM = {'White',"Pastel light red"}
1076
WSH = WSHM[math.random(1,#WSHM)]
1077
1078
1079
IcePartFunk = function(HPart,aria,Min,Max)
1080
	
1081
IcePart = Instance.new("Part",HPart)
1082
IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
1083
IcePart.CanCollide = false
1084
IuW = Instance.new("Weld")
1085
IuW.Name = "GuW"
1086
IuW.Part0 = HPart 
1087
IuW.C0 = cn(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))*angles( math.random(-180, 180),math.random(-180, 180),math.random(-180, 180))
1088
IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0) 
1089
IuW.Part1 = IcePart
1090
IuW.Parent = HPart 
1091
IcePart.Transparency = .85
1092
IcePart.Material= "Neon"
1093
WSH = WSHM[math.random(1,#WSHM)]
1094
IcePart.BrickColor = BrickColor.new(""..WSH)
1095
1096
RemoveOutlines(IcePart)
1097
game:GetService("Debris"):AddItem(IuW, 4)
1098
game:GetService("Debris"):AddItem(IcePart, 6)
1099
1100
1101
end
1102
--[[
1103
GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
1104
	
1105
IcePart2 = Instance.new("Part",HPart)
1106
IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
1107
IcePart2.CanCollide = false
1108
RemoveOutlines(IcePart2)
1109
IcePart2.Anchored = true
1110
1111
1112
1113
IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))
1114
1115
1116
1117
1118
1119
1120
IcePart2.Transparency = .85
1121
IcePart2.Material= "Neon"
1122
1123
IcePart2.BrickColor = BrickColor.new(""..color)
1124
1125
1126
1127
game:GetService("Debris"):AddItem(IcePart2, 6)
1128
1129
1130
end
1131
--]]
1132
GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
1133
	
1134
IcePart2 = Instance.new("Part",HPart)
1135
IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
1136
IcePart2.CanCollide = false
1137
RemoveOutlines(IcePart2)
1138
IcePart2.Anchored = true
1139
game:GetService("Debris"):AddItem(IcePart2, .4)
1140
IcePart2.Transparency = .3
1141
IcePart2.Material= "Neon"
1142
IcePart2.BrickColor = BrickColor.new(""..color)
1143
1144
IcePart2.CFrame=CFrame.new(Hit.Position+ Vector3.new(math.random(-aria, aria),math.random(-aria, 0),math.random(-aria, aria)))*angles(math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)))
1145
for i = 0,num do
1146
if num > 1 then
1147
GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)	
1148
end
1149
end
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
end
1162
1163
1164
1165
1166
1167
SpikeMeshId = 1033714
1168
local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
1169
1170
1171
local Part = Instance.new("Part", Parent)
1172
Part.Name = Name
1173
Part.BrickColor = BrickColor.new(Color)
1174
Part.Size = Size
1175
Part.Material = Material
1176
Part.Transparency = Transparency
1177
Part.CanCollide = false
1178
RemoveOutlines(Part)
1179
1180
local Mesh = Instance.new("SpecialMesh", Part)
1181
Mesh.MeshType = "Sphere"
1182
Mesh.Scale = Scale
1183
1184
return Mesh and Part
1185
1186
end
1187
1188
1189
1190
1191
1192
1193
1194
1195
	CFuncs = {
1196
Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1197
	
1198
	local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
1199
	RemoveOutlines(Part)
1200
	return Part
1201
end
1202
}
1203
, 
1204
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1205
	
1206
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
1207
	if Mesh == "SpecialMesh" then
1208
		Msh.MeshType = MeshType
1209
		Msh.MeshId = MeshId
1210
	end
1211
	return Msh
1212
end
1213
}
1214
, 
1215
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1216
	
1217
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
1218
	if Mesh == "SpecialMesh" then
1219
		Msh.MeshType = MeshType
1220
		Msh.MeshId = MeshId
1221
	end
1222
	return Msh
1223
end
1224
}
1225
, 
1226
Weld = {Create = function(Parent, Part0, Part1, C0, C1)
1227
	
1228
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
1229
	return Weld
1230
end
1231
}
1232
, 
1233
Sound = {Create = function(id, par, vol, pit)
1234
	
1235
	coroutine.resume(coroutine.create(function()
1236
		
1237
		local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
1238
		wait()
1239
		S:play()
1240
		game:GetService("Debris"):AddItem(S, 6)
1241
	end
1242
))
1243
end
1244
}
1245
, 
1246
ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
1247
	
1248
	local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
1249
	return fp
1250
end
1251
}
1252
}
1253
1254
1255
1256
1257
1258
	Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1259
	
1260
	if hit.Parent == nil then
1261
		return 
1262
	end
1263
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1264
	for _,v in pairs(hit.Parent:children()) do
1265
		if v:IsA("Humanoid") then
1266
			h.MaxHealth = 100
1267
			h = v
1268
		end
1269
	end
1270
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
1271
		if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1272
			return 
1273
		end
1274
		local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
1275
		game:GetService("Debris"):AddItem(c, 0.5)
1276
		if HitSound ~= nil and HitPitch ~= nil then
1277
			CreateSound(HitSound, hit, 1, HitPitch)
1278
		end
1279
		local Damage = math.random(minim, maxim)
1280
		local blocked = false
1281
		local block = hit.Parent:findFirstChild("Block")
1282
		if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1283
			blocked = true
1284
			block.Value = block.Value - 1
1285
			print(block.Value)
1286
		end
1287
		if blocked == false then
1288
			h.Health = h.Health - Damage
1289
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1290
		else
1291
			h.Health = h.Health - Damage / 2
1292
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1293
		end
1294
if hit.Parent:FindFirstChild("Torso") ~= nil then	
1295
lasthit = hit.Parent.Torso
1296
end
1297
		if Type == "Knockdown" then
1298
			local hum = hit.Parent.Humanoid
1299
			hum.PlatformStand = true
1300
			coroutine.resume(coroutine.create(function(HHumanoid)
1301
		
1302
		swait(.2)
1303
		HHumanoid.PlatformStand = false
1304
	end
1305
), hum)
1306
			local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1307
			local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
1308
			local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
1309
			game:GetService("Debris"):AddItem(bodvol, 0.1)
1310
			game:GetService("Debris"):AddItem(rl, 0.1)
1311
		elseif Type == "Normal" then
1312
					local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
1313
					if knockback > 0 then
1314
						vp.Parent = hit.Parent.Torso
1315
					end
1316
					game:GetService("Debris"):AddItem(vp, 0.5)
1317
					elseif Type == "Impale" then
1318
1319
local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))	
1320
Spike.Anchored = true
1321
Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
1322
Spike.Position = hit.Parent.Torso.Position 
1323
1324
Services.Debris:AddItem(Spike, 4)
1325
1326
1327
1328
1329
	
1330
1331
CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)	
1332
			hit.Parent.Humanoid.PlatformStand = true
1333
			
1334
		
1335
		swait(1)
1336
		hit.Parent.Humanoid.PlatformStand = false
1337
				elseif Type == "Up" then
1338
							local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
1339
							game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
1340
							local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
1341
							game:GetService("Debris"):AddItem(bodyVelocity, .1)
1342
				
1343
				
1344
				
1345
	elseif Type == "UltSlice" then			
1346
				
1347
BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0,          0.01,2)	
1348
BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0,          0.01,2)	
1349
BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0,           0.01,2)	
1350
BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0,           0.01,2)	
1351
BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0,           0.01,2)	
1352
BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0,          0.01,2)	
1353
BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0,           0.01,2)					
1354
				
1355
								
1356
		elseif Type == "Slice" then
1357
									local bp2 = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Head.Position, Parent = hit.Parent.Torso})
1358
									game:GetService("Debris"):AddItem(bp2, 1)
1359
	
1360
if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then	
1361
			for i = 1,10 do
1362
Effects.Break.Create	(BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
1363
			
1364
	
1365
			end	
1366
			end
1367
		
1368
			
1369
			
1370
			
1371
						elseif Type == "Snare" then
1372
									local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
1373
									game:GetService("Debris"):AddItem(bp, 1)
1374
		elseif Type == "Slowness" then
1375
					local	SpeedSave=hit.Parent.Humanoid.WalkSpeed	
1376
							
1377
							for i = 1,25 do
1378
hit.Parent.Humanoid.WalkSpeed = 4		
1379
IcePartFunk(hit.Parent.Torso,.55,0.1,1)
1380
end	
1381
						wait(4)
1382
						hit.Parent.Humanoid.WalkSpeed = SpeedSave	
1383
		elseif Type == "Firedmg" then
1384
			
1385
			for i = 1,math.random(1, 6) do
1386
				if hit.Parent:FindFirstChild("Torso") ~= nil then	
1387
										BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
1388
						BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
1389
						BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
1390
						
1391
			
1392
			
1393
			wait(.1)
1394
			end
1395
			end
1396
			
1397
						elseif Type == "Freeze" then
1398
									local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
1399
									game:GetService("Debris"):AddItem(bp, 4)
1400
for i=1,25 do
1401
	IcePartFunk(hit.Parent.Torso,1,1.5,2)	
1402
	end														
1403
								elseif Type == "Freeze2" then
1404
											local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
1405
											local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
1406
											hit.Parent.Torso.Anchored = true
1407
											coroutine.resume(coroutine.create(function(Part)
1408
		
1409
		swait(1.5)
1410
		Part.Anchored = false
1411
	end
1412
), hit.Parent.Torso)
1413
											game:GetService("Debris"):AddItem(BodPos, 3)
1414
											game:GetService("Debris"):AddItem(BodGy, 3)
1415
										end
1416
											local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
1417
											game:GetService("Debris"):AddItem(debounce, Delay)
1418
											c = Instance.new("ObjectValue")
1419
											c.Name = "creator"
1420
											c.Value = Player
1421
											c.Parent = h
1422
											game:GetService("Debris"):AddItem(c, 0.5)
1423
										end
1424
									end
1425
1426
	ShowDamage = function(Pos, Text, Time, Color)
1427
	
1428
	local Rate = 0.033333333333333
1429
	if not Pos then
1430
		local Pos = Vector3.new(0, 0, 0)
1431
	end
1432
	local Text = Text or ""
1433
	local Time = Time or 2
1434
	if not Color then
1435
		local Color = Color3.new(1, 0, 1)
1436
	end
1437
	local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1438
	EffectPart.Anchored = true
1439
	local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
1440
	local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
1441
	game.Debris:AddItem(EffectPart, Time + 0.1)
1442
	EffectPart.Parent = game:GetService("Workspace")
1443
	delay(0, function()
1444
		
1445
		local Frames = Time / Rate
1446
		for Frame = 1, Frames do
1447
			wait(Rate)
1448
			local Percent = Frame / Frames
1449
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1450
			TextLabel.TextTransparency = Percent
1451
		end
1452
		if EffectPart and EffectPart.Parent then
1453
			EffectPart:Destroy()
1454
		end
1455
	end
1456
)
1457
end
1458
1459
	MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
1460
	
1461
	for _,c in pairs(workspace:children()) do
1462
		local hum = c:findFirstChildOfClass("Humanoid")
1463
		if hum ~= nil then
1464
			local head = c:findFirstChild("Head")
1465
			if head ~= nil then
1466
				local targ = head.Position - Part.Position
1467
				local mag = targ.magnitude
1468
				if mag <= magni and c.Name ~= Player.Name then
1469
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.001, "http://www.roblox.com/asset/?id=0", 1.2)
1470
				end
1471
			end
1472
		end
1473
	end
1474
end
1475
	MagniKILL = function(Part, magni, knock, Type)
1476
	
1477
	for _,c in pairs(workspace:children()) do
1478
		local hum = c:findFirstChildOfClass("Humanoid")
1479
		if hum ~= nil then
1480
			local head = c:findFirstChild("Head")
1481
			if head ~= nil then
1482
				local targ = head.Position - Part.Position
1483
				local mag = targ.magnitude
1484
				if mag <= magni and c.Name ~= Player.Name then
1485
					hum.Health = 0
1486
				end
1487
			end
1488
		end
1489
	end
1490
end
1491
	EffectModel = Instance.new("Model", Character)
1492
	EffectModel.Name = "Effects"
1493
1494
	BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
1495
	
1496
	local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1497
	prt.Anchored = true
1498
	prt.CFrame = cframe
1499
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1500
	game:GetService("Debris"):AddItem(prt, 10)
1501
	if Type == 1 or Type == nil then
1502
		table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
1503
	else
1504
		if Type == 2 then
1505
			table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
1506
	else
1507
		if Type == 3 then
1508
			table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})			
1509
		end
1510
	end
1511
end
1512
end
1513
	CreateSound = function(id, par, vol, pit)
1514
	
1515
	coroutine.resume(coroutine.create(function()
1516
		
1517
		local sou = Instance.new("Sound", par or workspace)
1518
		sou.Volume = vol
1519
		sou.Pitch = pit or 1
1520
		sou.SoundId = id
1521
		swait()
1522
		sou:play()
1523
		game:GetService("Debris"):AddItem(sou, 6)
1524
	end
1525
))
1526
end
1527
1528
	Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1529
	
1530
	local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1531
	prt.Anchored = true
1532
	prt.CFrame = cframe
1533
	prt.Material = "Neon"
1534
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1535
	game:GetService("Debris"):AddItem(prt, 10)
1536
	coroutine.resume(coroutine.create(function(Part, Mesh)
1537
		
1538
		for i = 0, 6, delay do
1539
			swait()
1540
			Part.Transparency = i
1541
			Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
1542
		end
1543
		Part.Parent = nil
1544
	end
1545
), prt, msh)
1546
end
1547
1548
	 shoottraildd = function(mouse, partt, SpreadAmount)
1549
	
1550
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
1551
	local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
1552
	local MainPos2 = mouse + SpreadVectors
1553
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1554
	local speed = 100
1555
	local num = 1
1556
	coroutine.resume(coroutine.create(function()
1557
		
1558
		repeat
1559
			swait()
1560
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1561
			local mag = (MainPos - pos).magnitude
1562
			Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, -0, 0, -0, 10)
1563
			MainPos = MainPos + MouseLook.lookVector * speed
1564
			num = num - 1
1565
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
1566
			if hit ~= nil then
1567
				num = 0
1568
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1569
				refpart.Anchored = true
1570
				refpart.CFrame = CFrame.new(pos)
1571
				game:GetService("Debris"):AddItem(refpart, 2)
1572
			end
1573
			do
1574
				if num <= 0 then
1575
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1576
					refpart.Anchored = true
1577
					refpart.CFrame = CFrame.new(pos)
1578
					if hit ~= nil then
1579
						
1580
					
1581
						
1582
						GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
1583
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
1584
--						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
1585
--						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
1586
						MagniDamage(refpart, 6, 10, 25, 0, "Slice")
1587
					end
1588
					game:GetService("Debris"):AddItem(refpart, 0)
1589
				end
1590
			end
1591
		until num <= 0
1592
	end
1593
))
1594
end
1595
1596
	shoottraildd2 = function(mouse, partt, SpreadAmount)
1597
	
1598
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
1599
	local MainPos = partt.Position
1600
	local MainPos2 = mouse + SpreadVectors
1601
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1602
	local speed = 1000
1603
	local num = 1
1604
	coroutine.resume(coroutine.create(function()
1605
		
1606
		repeat
1607
			swait()
1608
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1609
			local mag = (MainPos - pos).magnitude
1610
			Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15)
1611
			MainPos = MainPos + MouseLook.lookVector * speed
1612
			num = num - 1
1613
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
1614
			if hit ~= nil then
1615
				num = 0
1616
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1617
				refpart.Anchored = true
1618
				refpart.CFrame = CFrame.new(pos)
1619
				game:GetService("Debris"):AddItem(refpart, 2)
1620
			end
1621
			do
1622
				if num <= 0 then
1623
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1624
					refpart.Anchored = true
1625
					refpart.CFrame = CFrame.new(pos)
1626
					if hit ~= nil then
1627
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
1628
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
1629
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
1630
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
1631
						MagniKILL(refpart, 80, 0, "Normal")
1632
					end
1633
					game:GetService("Debris"):AddItem(refpart, 0)
1634
				end
1635
			end
1636
		until num <= 0
1637
	end
1638
))
1639
	end
1640
	
1641
	shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
1642
	
1643
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
1644
	local MainPos = partt.Position
1645
	local MainPos2 = mouse + SpreadVectors
1646
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1647
	local speed = 200
1648
	local num = 0
1649
	coroutine.resume(coroutine.create(function()
1650
		
1651
		repeat
1652
			swait()
1653
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1654
			local mag = (MainPos - pos).magnitude
1655
			Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
1656
			MainPos = MainPos + MouseLook.lookVector * speed
1657
			num = num - 1
1658
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
1659
			if hit ~= nil then
1660
				num = 0
1661
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1662
				refpart.Anchored = true
1663
				refpart.CFrame = CFrame.new(pos)
1664
				BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
1665
				game:GetService("Debris"):AddItem(refpart, 2)
1666
			end
1667
			do
1668
				if num <= 0 then
1669
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1670
					refpart.Anchored = true
1671
					refpart.CFrame = CFrame.new(pos)
1672
					if hit ~= nil then
1673
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
1674
						BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
1675
						BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
1676
						
1677
							
1678
						MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
1679
						
1680
					end
1681
					game:GetService("Debris"):AddItem(refpart, 0)
1682
				end
1683
			end
1684
		until num <= 0
1685
	end
1686
))
1687
	end
1688
	
1689
	 shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
1690
	
1691
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
1692
	local MainPos = partt.Position
1693
	local MainPos2 = mouse + SpreadVectors
1694
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1695
	local speed = 150
1696
	local num = 1
1697
	coroutine.resume(coroutine.create(function()
1698
		
1699
		repeat
1700
			swait()
1701
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1702
			local mag = (MainPos - pos).magnitude
1703
			Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
1704
			MainPos = MainPos + MouseLook.lookVector * speed
1705
			num = num - 1
1706
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
1707
			if hit ~= nil then
1708
				num = 0
1709
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1710
				refpart.Anchored = true
1711
				refpart.CFrame = CFrame.new(pos)
1712
				game:GetService("Debris"):AddItem(refpart, 2)
1713
			end
1714
			do
1715
				if num <= 0 then
1716
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1717
					refpart.Anchored = true
1718
					refpart.CFrame = CFrame.new(pos)
1719
					if hit ~= nil then
1720
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
1721
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
1722
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
1723
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
1724
						MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
1725
					end
1726
					game:GetService("Debris"):AddItem(refpart, 0)
1727
				end
1728
			end
1729
		until num <= 0
1730
	end
1731
))
1732
end
1733
	
1734
	
1735
	
1736
	
1737
	
1738
1739
1740
HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
1741
	
1742
Hitpart3 = Instance.new("Part",HPart3)
1743
RemoveOutlines(Hitpart3)
1744
Hitpart3.Size = Vector3.new(1,1,1)
1745
Hitpart3.CanCollide = false
1746
HuW3 = Instance.new("Weld")
1747
HuW3.Name = "GuW"
1748
HuW3.Part0 = HPart3 
1749
HuW3.C0 = cn(Xv, Yv, Zv)
1750
HuW3.C1 = cn(0, 0, 0) 
1751
HuW3.Part1 = Hitpart3
1752
HuW3.Parent = HPart3
1753
Hitpart3.Transparency = 1
1754
game:GetService("Debris"):AddItem(Hitpart3, 20)
1755
end
1756
1757
HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
1758
	
1759
Hitpart2 = Instance.new("Part",HPart2)
1760
RemoveOutlines(Hitpart2)
1761
Hitpart2.Size = Vector3.new(1,1,1)
1762
Hitpart2.CanCollide = false
1763
HuW2 = Instance.new("Weld")
1764
HuW2.Name = "GuW"
1765
HuW2.Part0 = HPart2 
1766
HuW2.C0 = cn(Xv, Yv, Zv)
1767
HuW2.C1 = cn(0, 0, 0) 
1768
HuW2.Part1 = Hitpart2
1769
HuW2.Parent = HPart2
1770
Hitpart2.Transparency = 1
1771
game:GetService("Debris"):AddItem(Hitpart2, 20)
1772
end
1773
1774
1775
HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
1776
	
1777
Hitpart = Instance.new("Part",HPart)
1778
RemoveOutlines(Hitpart)
1779
Hitpart.Size = Vector3.new(1,1,1)
1780
Hitpart.CanCollide = false
1781
HuW = Instance.new("Weld")
1782
HuW.Name = "GuW"
1783
HuW.Part0 = HPart 
1784
HuW.C0 = cn(Xv, Yv, Zv)
1785
HuW.C1 = cn(0, 0, 0) 
1786
HuW.Part1 = Hitpart
1787
HuW.Parent = HPart 
1788
Hitpart.Transparency = 1
1789
game:GetService("Debris"):AddItem(Hitpart2, 20)
1790
MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
1791
1792
end
1793
HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
1794
	
1795
Hitpart4 = Instance.new("Part",HPart)
1796
RemoveOutlines(Hitpart4)
1797
Hitpart4.Size = Vector3.new(1,1,1)
1798
Hitpart4.CanCollide = false
1799
HuW4 = Instance.new("Weld")
1800
HuW4.Name = "HuW4"
1801
HuW4.Part0 = HPart 
1802
HuW4.C0 = cn(Xv, Yv, Zv)
1803
HuW4.C1 = cn(0, 0, 0) 
1804
HuW4.Part1 = Hitpart4
1805
HuW4.Parent = HPart 
1806
Hitpart4.Transparency = 1
1807
game:GetService("Debris"):AddItem(Hitpart4, 1.5)
1808
MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
1809
1810
end
1811
1812
1813
HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
1814
	
1815
Hitboxpart = Instance.new("Part",Character)
1816
RemoveOutlines(Hitboxpart)
1817
Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
1818
Hitboxpart.CanCollide = false
1819
Hitboxpart.Transparency = 1
1820
Hitboxpart.Anchored = true
1821
Hitboxpart.CFrame = Pose
1822
game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
1823
MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
1824
1825
end
1826
1827
1828
wait2 = false
1829
1830
1831
combo = 1
1832
1833
1834
1835
1836
duljump = false
1837
duljump2 = false
1838
jumpatck = false
1839
		mouse.KeyDown:connect(function(k)
1840
if k == "0" then	
1841
CFuncs['Sound'].Create("rbxassetid://891338458",Character,6,1)
1842
Runkey = true
1843
end 
1844
if k == "x" then
1845
airtime:play()
1846
end
1847
if k == "c" then
1848
CFuncs['Sound'].Create("rbxassetid://892075913",Character,6,1)
1849
end
1850
if k == "q" and attack == false then 
1851
attack = true
1852
Humanoid.WalkSpeed = 0
1853
IKM = true
1854
body.BrickColor = BrickColor.new("New Yeller")
1855
body.Color = Color3.new(1,1,0)
1856
body.Reflectance = 0
1857
particle.LightEmission = 0.3
1858
particle.Texture = "rbxassetid://241629053"
1859
particle.Color = ColorSequence.new(Color3.new(1,1,0))
1860
particle.Enabled = true
1861
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
1862
wait(0.1)
1863
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
1864
wait(1)
1865
particle.Enabled = false
1866
wait(2)
1867
Humanoid.WalkSpeed = 30
1868
attack = false
1869
end
1870
1871
if k == "t" and attack == false then 
1872
attack = true
1873
IKM = false
1874
Humanoid.WalkSpeed = 0
1875
body.BrickColor = BrickColor.new("Really red")
1876
body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
1877
body.Reflectance = 0.5
1878
particle.LightEmission = 0.3
1879
particle.Texture = "rbxassetid://241629053"
1880
particle.Color = ColorSequence.new(Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)))
1881
particle.Enabled = true
1882
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
1883
wait(0.1)
1884
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
1885
wait(1)
1886
particle.Enabled = false
1887
wait(2)
1888
Humanoid.WalkSpeed = 30
1889
attack = false
1890
end
1891
1892
if k == "y" and attack == false then 
1893
attack = true
1894
IKM = true
1895
Humanoid.WalkSpeed = 0
1896
body.BrickColor = BrickColor.new("Really red")
1897
body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
1898
body.Reflectance = 0.5
1899
particle.LightEmission = 0.9
1900
particle.Texture = "rbxassetid://280516525"
1901
particle.Color = ColorSequence.new(ColorsArray)
1902
particle.Enabled = true
1903
CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)
1904
wait(0.1)
1905
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
1906
wait(1)
1907
particle.Enabled = false
1908
wait(2)
1909
Humanoid.WalkSpeed = 30
1910
attack = false
1911
end
1912
1913
if k == "r" and attack == false then
1914
attack = true
1915
Humanoid.WalkSpeed = 0
1916
IKM = false
1917
body.BrickColor = BrickColor.new("Really Blue")
1918
body.Color = Color3.new(0,0,1)
1919
body.Reflectance = 0
1920
particle.LightEmission = 0.3
1921
particle.Texture = "rbxassetid://241629053"
1922
particle.Color = ColorSequence.new(Color3.new(0,0,1))
1923
particle.Enabled = true
1924
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
1925
wait(0.1)
1926
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
1927
wait(1)
1928
particle.Enabled = false
1929
wait(2)
1930
Humanoid.WalkSpeed = 30
1931
attack = false
1932
end
1933
1934
 if k == "e" and attack == false then	
1935
attack = true
1936
	
1937
Humanoid.WalkSpeed = 0	
1938
1939
							CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 5, 1)
1940
1941
for i = 0, 2, 0.1 do
1942
        swait()
1943
1944
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
1945
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1946
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
1947
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
1948
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
1949
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
1950
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
1951
		
1952
1953
		
1954
end	
1955
1956
for i = 0, 4, 0.1 do
1957
        swait()
1958
1959
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
1960
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1961
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(25)), 0.05)
1962
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-25)), 0.05)
1963
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
1964
					LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
1965
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
1966
		
1967
1968
		
1969
end	
1970
for i = 0, 1 do
1971
for i = 0, 1, 0.1 do
1972
        swait()
1973
1974
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
1975
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1976
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
1977
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
1978
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
1979
					LH.C0 = clerp(LH.C0, cn(-1, -1 ,0)* LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
1980
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
1981
		
1982
1983
		
1984
end	
1985
for i = 0, 1, 0.1 do
1986
        swait()
1987
1988
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
1989
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1990
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
1991
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
1992
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
1993
					LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
1994
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
1995
		
1996
1997
		
1998
end		
1999
end
2000
2001
Humanoid.WalkSpeed = 30	
2002
2003
attack = false
2004
2005
2006
2007
2008
end
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
end)	
2027
hitwait = false 
2028
function onTouch(part)
2029
2030
local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
2031
local model = part.Parent
2032
local torso = part.Parent:FindFirstChild("Torso")
2033
local head = part.Parent:findFirstChild("Head")
2034
local leftleg = part.Parent:findFirstChild("Left Leg")
2035
local rightleg = part.Parent:findFirstChild("Right Leg")
2036
local leftarm = part.Parent:findFirstChild("Left Arm")
2037
local rightarm = part.Parent:findFirstChild("Right Arm")
2038
2039
	if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then
2040
	
2041
hitwait = true			
2042
2043
2044
	
2045
2046
if (humanoid ~=nil) and humanoid.Health >0.01 and  Torsovelocity > 1 then
2047
2048
	 if IKM == true then
2049
Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)	
2050
Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)		
2051
model:BreakJoints() 
2052
CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
2053
local sel = math.random(3)
2054
if sel == 1 then
2055
CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
2056
end
2057
if sel == 2 then
2058
CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
2059
end
2060
if sel == 3 then
2061
CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
2062
end
2063
	
2064
else
2065
Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)	
2066
Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)	
2067
MagniDamage(FrontPart, 6.5, 30, 35, .3, "Knockdown")
2068
CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
2069
local sel = math.random(3)
2070
if sel == 1 then
2071
CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
2072
end
2073
if sel == 2 then
2074
CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
2075
end
2076
if sel == 3 then
2077
CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
2078
end
2079
	end
2080
2081
attack = true
2082
Humanoid.WalkSpeed = 0	
2083
							local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
2084
2085
							game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
2086
							
2087
for i = 0, .5, 0.1 do
2088
        swait()
2089
2090
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
2091
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
2092
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
2093
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
2094
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
2095
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
2096
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)		
2097
		
2098
2099
		
2100
end	
2101
2102
	
2103
Humanoid.WalkSpeed = 30	
2104
end
2105
attack = false
2106
wait(.08)
2107
hitwait = false	
2108
	end
2109
	
2110
end
2111
FrontPart.Touched:connect(onTouch)
2112
2113
2114
2115
				mouse.KeyUp:connect(function(k)
2116
if k == "0"then	
2117
Runkey = false
2118
2119
end 
2120
2121
2122
			
2123
		
2124
2125
2126
				end)
2127
				
2128
humHsave = Humanoid.Health 				
2129
function GainCharge(Humanoid)
2130
if	Humanoid.Health == 0 then		
2131
			equipped = false
2132
			end
2133
if blocking == true then
2134
2135
humDsave = Humanoid.Health
2136
humDsave = humHsave - humDsave
2137
if humDsave >0.01 then
2138
2139
CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)	
2140
BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1,              0.02,2)	
2141
BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1,          0.02,2)	
2142
BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1,           0.02,2)	
2143
BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1,           0.02,2)	
2144
BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1,            0.02,2)	
2145
humDsave = humDsave/3
2146
end
2147
if humDsave <0 then
2148
2149
2150
Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
2151
--[[
2152
BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0,             0.1,2)	
2153
BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0,          0.1,2)	
2154
BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0,           0.1,2)	
2155
BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0,          0.1,2)	
2156
BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0,           0.1,2)	
2157
--]]
2158
humDsave = humDsave*2.5
2159
end
2160
2161
humHsave = humHsave - humDsave
2162
2163
2164
2165
2166
end
2167
2168
end
2169
2170
 Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) 				
2171
				
2172
				
2173
	OnDeath = function()			
2174
2175
		equipped = false
2176
		
2177
			
2178
				
2179
		end		
2180
			
2181
Humanoid.Died:connect(function()OnDeath(Character)end)
2182
2183
					
2184
				
2185
				print('This fucking masterpiece was totally not created by xiaxiaokid.')
2186
local music=Instance.new('Sound',inside)
2187
music.Name='ok music'
2188
music.Volume=7
2189
music.Pitch=1
2190
music.Looped=true
2191
music.SoundId = "rbxassetid://737286463"
2192
local gui=Instance.new('ScreenGui',Player.PlayerGui)
2193
gui.Name='you make me cri'
2194
local topFrame=Instance.new('Frame',gui)
2195
topFrame.Name='TopFrame'
2196
topFrame.Size=UDim2.new(1,0,1,0)
2197
topFrame.BorderSizePixel=0
2198
topFrame.BackgroundTransparency=1
2199
local choiceFrame=Instance.new('Frame',topFrame)
2200
choiceFrame.Size=UDim2.new(.4,0,.05,0)
2201
choiceFrame.Draggable=true
2202
choiceFrame.BackgroundTransparency=.7
2203
choiceFrame.Position=UDim2.new(.5,0,.775,0)
2204
choiceFrame.BackgroundColor3=Color3.new(0,0,0)
2205
choiceFrame.BorderColor3=Color3.new(0,0,0)
2206
local innerFrame3=Instance.new('Frame',choiceFrame)
2207
innerFrame3.Size=UDim2.new(.5,0,1,0)
2208
innerFrame3.Position=UDim2.new(.5,0,0,0)
2209
innerFrame3.Draggable=true
2210
innerFrame3.BackgroundTransparency=.9
2211
innerFrame3.BackgroundColor3=Color3.new(0,0,0)
2212
innerFrame3.BorderColor3=Color3.new(0,0,0)
2213
local innerFrame4=Instance.new('Frame',choiceFrame)
2214
innerFrame4.Size=UDim2.new(.5,0,1,0)
2215
innerFrame4.Draggable=false
2216
innerFrame4.BackgroundTransparency=.5
2217
innerFrame4.Position=UDim2.new(.5,0,1,1)
2218
innerFrame4.BackgroundColor3=Color3.new(0,0,0)
2219
innerFrame4.BorderColor3=Color3.new(0,0,0)
2220
local musicID=Instance.new('TextBox',innerFrame4)
2221
musicID.Size=UDim2.new(.8,0,.7,0)
2222
musicID.Position=UDim2.new(.1,0,.15,0)
2223
musicID.BackgroundTransparency=.7
2224
musicID.Visible=true
2225
musicID.Text="Music ID (press enter to use the audio)"
2226
musicID.TextScaled=true
2227
musicID.TextStrokeTransparency=0
2228
musicID.TextColor3=Color3.new(0,255,255)
2229
musicID.BackgroundColor3=Color3.new(0,0,0)
2230
musicID.BorderColor3=Color3.new(0,0,0)
2231
musicID.FocusLost:connect(function(ent)
2232
if ent then
2233
music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
2234
end
2235
end)
2236
local bt3=Instance.new('TextButton',innerFrame3)
2237
bt3.Draggable=false
2238
bt3.BackgroundTransparency=.9
2239
bt3.BackgroundColor3=Color3.new(0,0,0)
2240
bt3.Size=UDim2.new(.5,0,1,0)
2241
bt3.Text="Play"
2242
bt3.TextStrokeTransparency=0
2243
bt3.TextColor3=Color3.new(0,255,255)
2244
bt3.TextScaled=true
2245
bt3.Font="SciFi"
2246
bt3.MouseButton1Click:connect(function()
2247
if not music.IsPlaying then
2248
musicID.Visible=false
2249
music:play''
2250
innerFrame4.Visible=false
2251
end
2252
end)
2253
local bt4=Instance.new('TextButton',innerFrame3)
2254
bt4.Draggable=false
2255
bt4.BackgroundTransparency=.9
2256
bt4.BackgroundColor3=Color3.new(0,0,0)
2257
bt4.Size=UDim2.new(.5,0,1,0)
2258
bt4.Position=UDim2.new(.5,0,0,0)
2259
bt4.Text="Stop"
2260
bt4.TextStrokeTransparency=0
2261
bt4.TextColor3=Color3.new(0,255,255)
2262
bt4.TextScaled=true
2263
bt4.Font="SciFi"
2264
bt4.MouseButton1Click:connect(function()
2265
if music.IsPlaying then
2266
music:stop''
2267
musicID.Visible=true
2268
innerFrame4.Visible=true
2269
end
2270
end)
2271
while true do
2272
swait()
2273
Humanoid.Name = "fnwihjfbewuhgbewjhgbrjhge"
2274
Humanoid.MaxHealth = math.huge
2275
Humanoid.Health = math.huge
2276
end