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