View difference between Paste ID: U9hLHH5u and Rm2Beanx
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");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
5
	script.Parent = InternalData.RealOwner.Character
6
	local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
7
	local function createObject (connections, index)
8
    	local proxy = newproxy (true);local meta = getmetatable (proxy);
9
    	local runbind = function (self, i, ...) connections[i]:Fire (...); end;
10
		while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
11
    	meta.__index = function (self, i)
12
        	if (i == 'TriggerEvent') then return runbind end;
13
        	return connections[i] and connections[i].Event or index[i];
14
    	end;
15
    	meta.__newindex = index;meta.__metatable = false;return proxy
16
	end;
17
	local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
18
	local UserInputService = createObject({"InputBegan","InputEnded"},{})
19
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
20
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
21
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
22
	Event.OnServerEvent:Connect(function(FiredBy,Input)
23
		if FiredBy ~= InternalData.RealOwner then return end
24
		if Input.MouseEvent then
25
			Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
26
		elseif Input.Sound then
27
			if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
28
		else
29
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
30
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
31
			for _,Action in pairs(ContextActionService.Actions) do
32
				for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
33
			end
34
			Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
35
		end
36
	end)
37
	InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
38
	Event.Parent = NLS([[
39
		local Player = owner;
40
		local Sounds = {};
41
		local Event = script:WaitForChild("UserInput");
42
		local UserInputService = game:GetService("UserInputService");
43
		local Mouse = Player:GetMouse();
44
		local Input = function(Input,gameProcessedEvent)
45
			if gameProcessedEvent then return end
46
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
47
		end
48
		Event.OnClientEvent:connect(function(Args)
49
			if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
50
		end)
51
		UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
52
		local Hit,Target
53
		while wait(1/30) do
54
			for x,Sound in pairs(Sounds) do
55
				if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
56
			end
57
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
58
				Hit = Mouse.Hit;Target = Mouse.Target;
59
				Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
60
			end
61
		end
62
	]],InternalData.RealOwner.Character)
63
end
64
InternalData.NewOwner = setmetatable({},{
65
	__index = function (self,Index)
66
			local Type = type(InternalData.RealOwner[Index])
67
			if Type == "function" then
68
				if Index:lower() == "getmouse" or Index:lower() == "mouse" then
69
				return function (self)return InternalData["Mouse"] end
70
				end
71
			return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
72
		elseif Index == "FakePlayer" then
73
			return true
74
		end
75
		return InternalData.RealOwner[Index]
76
	end;
77
	__tostring = function(self) return tostring(InternalData.RealOwner) end
78
})
79
--LoadLibrary("RbxUtility").Create
80
InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
81
	if Library == "RbxUtility" then
82
		return setmetatable({},{
83
			__tostring = function() return "RbxUtility" end;
84
			__index = function(self, Index)
85
				if Index:lower() == "create" then
86
					return function(Type)
87
						return function(Data)
88
							Data = Data or {}
89
							local Inst = Instance.new(Type)
90
							for x,y in pairs(Data) do
91
								if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
92
								if y == owner then y = InternalData.RealOwner end
93
								Inst[x] = y
94
							end
95
							return Inst
96
						end
97
					end
98
				end
99
				return InternalData.LoadLibrary(Library)[Index]
100
			end
101
		})
102
	end
103
	return InternalData.LoadLibrary(Library)
104
end
105
InternalData.RealInstance = Instance;Instance = setmetatable({},{
106
	__index = function (self,Index)
107
		if Index:lower() == 'new' then
108
			return function (Type, Parent)
109
				if Parent == owner then Parent = InternalData.RealOwner end
110
				if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
111
				local Real = InternalData.RealInstance.new(Type,Parent)
112
				if not Type then return end
113
				if Type == "BillboardGui" then
114
					local ToReturn = setmetatable({},{
115
						__index = function (self,Index)
116
							if type(Real[Index]) == "function" then
117
								if Index:lower() == "clone" then
118
									return function (self)
119
										local Real = Real:Clone()
120
										local ToReturn = setmetatable({RealObject = Real},{
121
											__index = function (self,Index)
122
												if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
123
												return Real[Index]
124
											end;
125
											__newindex = function (self,Index,Value)
126
												if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
127
												if Value == owner then Value = InternalData.RealOwner end
128
												Real[Index] = Value
129
											end;
130
											__tostring = function(self) return tostring(Real) end;
131
										})
132
										InternalData.RealObjs[ToReturn] = Real;return ToReturn;
133
									end
134
								end
135
								return function (self,...) return Real[Index](Real,...)end
136
							end
137
							return Real[Index]
138
						end;
139
						__newindex = function (self,Index,Value)
140
							if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
141
							if Value == owner then Value = InternalData.RealOwner end
142
							Real[Index] = Value
143
						end;
144
						__tostring = function(self) return tostring(Real) end;
145
					})
146
					InternalData.RealObjs[ToReturn] = Real;return ToReturn;
147
				elseif Type:lower() == "sound" then
148
					Real.Parent = owner.Character;
149
					local ToReturn = setmetatable({RealObject = Real},{
150
						__index = function (self,Index)
151
							if Index:lower() == "playbackloudness" then
152
								return InternalData.SoundLoudness[Real] or 0
153
							elseif type(Real[Index]) == "function" then
154
								if Index:lower() == "clone" then
155
									return function (self)
156
										local Real = Real:Clone()
157
										local ToReturn = setmetatable({},{
158
											__index = function (self,Index)
159
												if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
160
												return Real[Index]
161
											end;
162
											__newindex = function (self,Index,Value)
163
												if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
164
												if Value == owner then Value = InternalData.RealOwner end
165
												Real[Index] = Value
166
											end;
167
											__tostring = function(self) return tostring(Real) end;
168
										})
169
										InternalData.RealObjs[ToReturn] = Real;return ToReturn;
170
									end
171
								end
172
								return function (self,...) return Real[Index](Real,...)end
173
							end
174
							return Real[Index]
175
						end;
176
						__newindex = function (self,Index,Value)
177
							if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
178
							if Value == owner then Value = InternalData.RealOwner end
179
							Real[Index] = Value
180
						end;
181
						__tostring = function(self) return tostring(Real) end;
182
					})
183
					InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
184
				else
185
					local ToReturn = setmetatable({RealObject = Real},{
186
						__index = function (self,Index)
187
							if type(Real[Index]) == "function" then
188
								if Index:lower() == "clone" then
189
									return function (self)
190
										local Real = Real:Clone()
191
										local ToReturn = setmetatable({},{
192
											__index = function (self,Index)
193
												if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
194
												return Real[Index]
195
											end;
196
											__newindex = function (self,Index,Value)
197
												if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
198
												if Value == owner then Value = InternalData.RealOwner end
199
												Real[Index] = Value
200
											end;
201
											__tostring = function(self) return tostring(Real) end;
202
										})
203
										InternalData.RealObjs[ToReturn] = Real;return ToReturn;
204
									end
205
								end
206
								return function (self,...) return Real[Index](Real,...)end
207
							end
208
							return Real[Index]
209
						end;
210
						__newindex = function (self,Index,Value)
211
							if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
212
							if Value == owner then Value = InternalData.RealOwner end
213
							Real[Index] = Value
214
						end;
215
						__tostring = function(self) return tostring(Real) end;
216
					})
217
					InternalData.RealObjs[ToReturn] = Real;return ToReturn;
218
				end
219
			end
220
		end
221
		return InternalData.RealInstance[Index]
222
	end;
223
	__tostring = function(self) return tostring(InternalData.RealInstance) end;
224
});
225
InternalData.RealGame = game;game = setmetatable({},{
226
	__index = function (self,Index)
227
		if InternalData.RealGame[Index] then
228
			local Type = type(InternalData.RealGame[Index])
229
			if Type == "function" then
230
				if Index:lower() == "getservice" or Index:lower() == "service" then
231
					return function (self,Service)
232
						local FakeServices = {
233
							["players"] = function()
234
								return setmetatable({},{
235
									__index = function (self2,Index2)
236
										local RealService = InternalData.RealGame:GetService(Service)
237
										local Type2 = type(RealService[Index2])
238
										if Type2 == "function" then
239
											return function (self,...) return RealService[Index2](RealService,...)end
240
										else
241
											if Index2:lower() == "localplayer" then return InternalData.NewOwner end
242
											return RealService[Index2]
243
										end
244
									end;
245
									__tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
246
								})
247
							end;
248
							["contextactionservice"] = function() return InternalData["ContextActionService"] end;
249
							["userinputservice"] = function() return InternalData["UserInputService"] end;
250
							["debris"] = function()
251
								return setmetatable({},{
252
									__index = function(self2,Index2)
253
										local RealService = InternalData.RealGame:GetService(Service)
254
										local Type2 = type(RealService[Index2])
255
										if Type2 == "function" then
256
											if Index2:lower() == "additem" then
257
												return function (self,Item,Time)
258
													if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
259
													return RealService:AddItem(Item,Time)
260
												end
261
											end
262
											return function (self,...) return RealService[Index2](RealService,...) end
263
										end
264
										return RealService[Index2]
265
									end;
266
									__tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
267
								})
268
							end;
269
							["runservice"] = function()
270
								return setmetatable({},{
271
									__index = function(self2,Index2)
272
										local RealService = InternalData.RealGame:GetService(Service)
273
										local Type2 = type(RealService[Index2])
274
										if Type2 == "function" then
275
											return function (self,...) return RealService[Index2](RealService,...) end
276
										else
277
											local RunServices = {
278
												["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
279
												["renderstepped"] = function() return RealService["Stepped"] end
280
											}
281
											if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
282
											return RealService[Index2]
283
										end
284
									end;
285
									__tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
286
								})
287
							end
288
						}
289
						if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
290
						return InternalData.RealGame:GetService(Service)
291
					end
292
				end
293
				return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
294
			else
295
				if game:GetService(Index) then return game:GetService(Index) end
296
				return InternalData.RealGame[Index]
297
			end
298
		end
299
		return nil
300
	end;
301
	__tostring = function(self) return tostring(InternalData.game) end
302
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
303
304
--[[Floaty thing by SezHu.
305
 
306
If you want a creation like this of your own, shoot me a friend request me on Discord! (Sezzie
307
#1875) Prices start at 250 robux.]]--
308
 
309
 
310
local songs = {
311
    243281095,    --Destroid
312
    1117396305,  --Oh, it's you.
313
    1014613357,   --Fortress of Lies
314
    692796920,   --Soul Food
315
        1137575800,   --Burn Marks
316
        388853531,
317
        1388205829,   --D r o w z y
318
        566546592,   --S a y o n a r a
319
        1446511374,   --Oracle
320
    } --Add your songs by replacing the IDs with your song ID.
321
 
322
 
323
local quotes = {
324
    "Something to relax to..",
325
    "Yawn..",
326
    "Oh Wow'~",
327
    "Going up~",
328
    "Wait am i playing roblox?",
329
        "I Forgot",
330
        ">w>",
331
    } --Feel free to replace the quotes with stuff of your own.
332
 
333
 
334
local function soundbork(obj)
335
   if obj:IsA("Sound") and obj.Name ~= "playlist" then
336
--obj:Destroy() Remove the two dashes to silence all music but your own.
337
      return
338
   end
339
 
340
 
341
   local children = obj:GetChildren()
342
   for i = 1, #children do
343
    soundbork(children[i])
344
   end
345
   
346
   return
347
end
348
 
349
--//Constants\\--
350
 
351
Effects = { }
352
local Player = game.Players.localPlayer
353
local Mouse = Player:GetMouse()
354
local Character = Player.Character
355
local Humanoid = Character.Humanoid
356
local Head = Character.Head
357
local RootPart = Character.HumanoidRootPart
358
local Torso = Character.Torso
359
local LeftArm = Character["Left Arm"]
360
local RightArm = Character["Right Arm"]
361
local LeftLeg = Character["Left Leg"]
362
local RightLeg = Character["Right Leg"]
363
local Camera = game.Workspace.CurrentCamera
364
local RootJoint = RootPart.RootJoint
365
local Equipped = false
366
local Attack = false
367
local Anim = 'Idle'
368
local Idle = 0
369
local Combo = 1
370
local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
371
local Velocity = RootPart.Velocity.y
372
local Sine = 0
373
local Change = 1
374
local aoeconstant = 10
375
local maincol = "Pink"
376
local maincol2 = "White"
377
local randString = songs[math.random(#songs)]
378
local circleinthesky = false
379
Character.Humanoid.Name = "help"
380
humanoid = Character.help
381
Instance.new("ForceField",Character).Visible = false
382
 
383
 
384
 
385
 
386
 
387
local RbxUtility = LoadLibrary("RbxUtility")
388
local Create = RbxUtility.Create
389
 
390
humanoid.WalkSpeed = 3
391
humanoid.JumpPower = 0
392
humanoid.Animator.Parent = nil
393
Character.Animate.Parent = nil
394
 
395
local newMotor = function(part0, part1, c0, c1)
396
    local w = Create('Motor'){
397
        Parent = part0,
398
        Part0 = part0,
399
        Part1 = part1,
400
        C0 = c0,
401
        C1 = c1,
402
    }
403
    return w
404
end
405
 
406
 
407
skillcolorscheme = BrickColor.new(maincol).Color
408
 
409
local hue = 0
410
 
411
spawn(function()
412
while true do
413
    hue = hue + .0005
414
    if hue >= 1 then hue = 0 end
415
        maincol2 = Color3.fromHSV(hue,1,1)
416
    game["Run Service"].RenderStepped:wait()
417
end
418
end)
419
 
420
 
421
 
422
 
423
 
424
 
425
local scrn = Instance.new('ScreenGui', Player.PlayerGui)
426
function makeframe(par, trans, pos, size, color)
427
    local frame = Instance.new('Frame', par)
428
    frame.BackgroundTransparency = trans
429
    frame.BorderSizePixel = 0
430
    frame.Position = pos
431
    frame.Size = size
432
    frame.BackgroundColor3 = color
433
    return frame
434
end
435
 
436
--framesk1 = makeframe(scrn, .95, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
437
 
438
function clerp(a, b, t)
439
    return a:lerp(b, t)
440
end
441
 
442
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
443
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
444
 
445
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
446
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
447
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
448
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
449
RootJoint.C1 = CFrame.new(0, 0, 0)
450
RootJoint.C0 = CFrame.new(0, 0, 0)
451
Torso.Neck.C1 = CFrame.new(0, 0, 0)
452
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
453
 
454
local rarmc1 = RW.C1
455
local larmc1 = LW.C1
456
local rlegc1 = RH.C1
457
local llegc1 = LH.C1
458
 
459
local resetc1 = false
460
 
461
function PlayAnimationFromTable(table, speed, bool)
462
    RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
463
    Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
464
    RW.C0 = clerp(RW.C0, table[3], speed)
465
    LW.C0 = clerp(LW.C0, table[4], speed)
466
    RH.C0 = clerp(RH.C0, table[5], speed)
467
    LH.C0 = clerp(LH.C0, table[6], speed)
468
    if bool == true then
469
        if resetc1 == false then
470
            resetc1 = true
471
            RootJoint.C1 = RootJoint.C1
472
            Torso.Neck.C1 = Torso.Neck.C1
473
            RW.C1 = rarmc1
474
            LW.C1 = larmc1
475
            RH.C1 = rlegc1
476
            LH.C1 = llegc1
477
        end
478
    end
479
end
480
 
481
ArtificialHB = Create("BindableEvent"){
482
    Parent = script,
483
    Name = "Heartbeat",
484
}
485
 
486
script:WaitForChild("Heartbeat")
487
 
488
frame = 1 / 35
489
tf = 0
490
allowframeloss = false
491
tossremainder = false
492
lastframe = tick()
493
script.Heartbeat:Fire()
494
 
495
game:GetService("RunService").Heartbeat:connect(function(s, p)
496
    tf = tf + s
497
    if tf >= frame then
498
        if allowframeloss then
499
            script.Heartbeat:Fire()
500
            lastframe = tick()
501
        else
502
            for i = 1, math.floor(tf / frame) do
503
                script.Heartbeat:Fire()
504
            end
505
            lastframe = tick()
506
        end
507
        if tossremainder then
508
            tf = 0
509
        else
510
            tf = tf - frame * math.floor(tf / frame)
511
        end
512
    end
513
end)
514
 
515
function swait(num)
516
    if num == 0 or num == nil then
517
        ArtificialHB.Event:wait()
518
    else
519
        for i = 0, num do
520
            ArtificialHB.Event:wait()
521
        end
522
    end
523
end
524
 
525
 
526
 
527
local m = Create("Model"){
528
    Parent = Character,
529
    Name = "WeaponModel"
530
}
531
 
532
function RemoveOutlines(part)
533
    part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
534
end
535
   
536
CFuncs = { 
537
    Part = {
538
        Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
539
            local Part = Create("Part"){
540
                Parent = Parent,
541
                Reflectance = Reflectance,
542
                Transparency = Transparency,
543
                CanCollide = false,
544
                Locked = true,
545
                BrickColor = BrickColor.new(tostring(BColor)),
546
                Name = Name,
547
                Size = Size,
548
                Material = Material,
549
            }
550
            RemoveOutlines(Part)
551
            if Size == Vector3.new() then
552
                Part.Size = Vector3.new(0.2, 0.2, 0.2)
553
            else
554
                Part.Size = Size
555
            end
556
            return Part
557
        end;
558
    };
559
   
560
    Mesh = {
561
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
562
            local Msh = Create(Mesh){
563
                Parent = Part,
564
                Offset = OffSet,
565
                Scale = Scale,
566
            }
567
            if Mesh == "SpecialMesh" then
568
                Msh.MeshType = MeshType
569
                Msh.MeshId = MeshId
570
            end
571
            return Msh
572
        end;
573
    };
574
 
575
    Weld = {
576
        Create = function(Parent, Part0, Part1, C0, C1)
577
            local Weld = Create("Weld"){
578
                Parent = Parent,
579
                Part0 = Part0,
580
                Part1 = Part1,
581
                C0 = C0,
582
                C1 = C1,
583
            }
584
            return Weld
585
        end;
586
    };
587
 
588
    Sound = {
589
        Create = function(id, par, vol, pit, looped)
590
            coroutine.resume(coroutine.create(function()
591
                local S = Create("Sound"){
592
                    Volume = vol,
593
                    Pitch = pit or 1,
594
                    SoundId = "rbxassetid://" .. id,
595
                    Parent = par or workspace,
596
                    Looped = looped
597
                }
598
                wait()
599
                S:play()
600
            end))
601
        end;
602
    };
603
   
604
    ParticleEmitter = {
605
        Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
606
            local Particle = Create("ParticleEmitter"){
607
                Parent = Parent,
608
                Color = ColorSequence.new(Color1, Color2),
609
                LightEmission = LightEmission,
610
                Size = Size,
611
                Texture = Texture,
612
                Transparency = Transparency,
613
                ZOffset = ZOffset,
614
                Acceleration = Accel,
615
                Drag = Drag,
616
                LockedToPart = LockedToPart,
617
                VelocityInheritance = VelocityInheritance,
618
                EmissionDirection = EmissionDirection,
619
                Enabled = Enabled,
620
                Lifetime = LifeTime,
621
                Rate = Rate,
622
                Rotation = Rotation,
623
                RotSpeed = RotSpeed,
624
                Speed = Speed,
625
                VelocitySpread = VelocitySpread,
626
            }
627
            return Particle
628
        end;
629
    };
630
   
631
    CreateTemplate = {
632
       
633
    };
634
}
635
 
636
--/v/Don't touch this part. \v\--
637
 
638
playlist=Instance.new("Sound", Torso)
639
playlist.SoundId = "rbxassetid://" ..randString
640
playlist.Volume = 5
641
playlist.Looped = false
642
playlist.Name = "playlist"
643
playlist:Play()
644
 
645
--/^/Don't touch this part. \^\--
646
 
647
function RayCast(Position, Direction, Range, Ignore)
648
    return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
649
end
650
 
651
FindNearestTorso = function(pos)
652
    local list = (game.Workspace:children())
653
    local torso = nil
654
    local dist = 1000
655
    local temp, human, temp2 = nil, nil, nil
656
    for x = 1, #list do
657
        temp2 = list[x]
658
        if temp2.className == "Model" and temp2.Name ~= Character.Name then
659
            temp = temp2:findFirstChild("Torso")
660
            human = temp2:findFirstChild("Humanoid")
661
            if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
662
                local dohit = true
663
                if dohit == true then
664
                    torso = temp
665
                    dist = (temp.Position - pos).magnitude
666
                end
667
            end
668
        end
669
    end
670
    return torso, dist
671
end
672
 
673
RootPart.CFrame =  RootPart.CFrame * CFrame.new(0,5,0)
674
 
675
Harness=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Harness",Vector3.new(0.420000285, 0.490000188, 0.399999768))
676
HarnessWeld=CFuncs.Weld.Create(m,Character["Torso"],Harness,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500001907, -0.0350001119, -0.0871353149, -1, 0, 0, 0, 1, 0, 0, 0, -1))
677
FloatField2=CFuncs.Part.Create(m,Enum.Material.Neon,0,.5,"Lily white","FloatField2",Vector3.new(5, 8, 5))
678
FloatField2Weld=CFuncs.Weld.Create(m,Harness,FloatField2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.58035278e-05, 3.50000337e-05, 6.10351563e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1))
679
flotemesh=CFuncs.Mesh.Create("SpecialMesh",FloatField2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
680
spinny=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny", Vector3.new())  
681
spinny.Anchored=true
682
spinny.CanCollide=false
683
 
684
 
685
transp = .5
686
spawn(function()
687
while true do
688
    transp = transp + .001
689
        FloatField2.Transparency = transp
690
        swait()
691
if transp >= 1 then
692
transp = .5
693
end
694
end
695
end)
696
 
697
 
698
 
699
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
700
    if hit.Parent == nil then
701
        return
702
    end
703
    local h = hit.Parent:FindFirstChild("Humanoid")
704
    for _, v in pairs(hit.Parent:children()) do
705
        if v:IsA("Humanoid") then
706
            h = v
707
        end
708
    end
709
    if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
710
        if hit.Parent:findFirstChild("DebounceHit") ~= nil then
711
            if hit.Parent.DebounceHit.Value == true then
712
                return
713
            end
714
        end
715
        local c = Create("ObjectValue"){
716
            Name = "creator",
717
            Value = game:service("Players").LocalPlayer,
718
            Parent = h,
719
        }
720
        game:GetService("Debris"):AddItem(c, .5)
721
        if HitSound ~= nil and HitPitch ~= nil then
722
            CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
723
        end
724
        local Damage = math.random(minim, maxim)
725
        local blocked = false
726
        local block = hit.Parent:findFirstChild("Block")
727
        if block ~= nil then
728
            if block.className == "IntValue" then
729
                if block.Value > 0 then
730
                    blocked = true
731
                    block.Value = block.Value - 1
732
                    print(block.Value)
733
                end
734
            end
735
        end
736
        if blocked == false then
737
            h.Health = h.Health - Damage
738
            --ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
739
        else
740
            h.Health = h.Health - (Damage / 2)
741
            --ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
742
        end
743
        if Type == "Knockdown" then
744
            local hum = hit.Parent.Humanoid
745
            hum.PlatformStand = true
746
            coroutine.resume(coroutine.create(function(HHumanoid)
747
                swait(1)
748
                HHumanoid.PlatformStand = false
749
            end), hum)
750
            local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
751
            local bodvol = Create("BodyVelocity"){
752
                velocity = angle * knockback,
753
                P = 5000,
754
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
755
                Parent = hit,
756
            }
757
            local rl = Create("BodyAngularVelocity"){
758
                P = 3000,
759
                maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
760
                angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
761
                Parent = hit,
762
            }
763
            game:GetService("Debris"):AddItem(bodvol, .5)
764
            game:GetService("Debris"):AddItem(rl, .5)
765
        elseif Type == "Normal" then
766
            local vp = Create("BodyVelocity"){
767
                P = 10,
768
                maxForce = Vector3.new(math.huge, 0, math.huge),
769
                velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
770
            }
771
            print(hit.Parent)
772
            if knockback > 0 then
773
                vp.Parent = hit.Parent.Torso
774
            end
775
            local hum = hit.Parent.Humanoid
776
            hum.PlatformStand = true
777
local TotalMass = 0
778
for _, part in pairs(hit.Parent:GetChildren()) do
779
     if part:IsA("Part") then
780
          TotalMass = TotalMass + part:GetMass()
781
     end
782
end
783
 
784
 
785
 
786
local ForceOfGravity = -197 * TotalMass
787
local floatybits = Instance.new("BodyForce", hit.Parent.Torso)
788
floatybits.force = Vector3.new(0, -ForceOfGravity, 0)
789
 
790
 
791
 
792
 
793
 
794
 
795
spawn(function()
796
local spinny2=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny2", Vector3.new())  
797
spinny2.Anchored=true
798
spinny2.CanCollide=false
799
for i = 0, 2, .001 do
800
local alg = math.floor(playlist.PlaybackLoudness)/500
801
local alg2 = math.floor(playlist.PlaybackLoudness)/80
802
local efekt2=CFuncs.Part.Create(hit.Parent.Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3))
803
efekt2.Anchored=true
804
efekt2.CanCollide=false
805
spinny2.CFrame = spinny2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
806
spinny2.Position = hit.Parent.Torso.Position
807
efekt2.CFrame=spinny2.CFrame*CFrame.new(aoeconstant-5,0,0)
808
game:GetService("Debris"):AddItem(efekt2, .7)
809
swait()
810
end
811
end)
812
 
813
            local rl = Create("BodyAngularVelocity"){
814
                P = 500,
815
                maxTorque = Vector3.new(10, 10, 10),
816
                angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
817
                Parent = hit,
818
            }                  
819
game:GetService("Debris"):AddItem(rl, 10)
820
game:GetService("Debris"):AddItem(floatybits, 10)
821
game:GetService("Debris"):AddItem(vp, .5)
822
 
823
        elseif Type == "Up" then
824
            local bodyVelocity = Create("BodyVelocity"){
825
                velocity = Vector3.new(0, 20, 0),
826
                P = 5000,
827
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
828
                Parent = hit,
829
            }
830
            game:GetService("Debris"):AddItem(bodyVelocity, .5)
831
        elseif Type == "DarkUp" then
832
            coroutine.resume(coroutine.create(function()
833
                for i = 0, 1, 0.1 do
834
                    swait()
835
                    Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
836
                end
837
            end))
838
            local bodyVelocity = Create("BodyVelocity"){
839
                velocity = Vector3.new(0, 20, 0),
840
                P = 5000,
841
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
842
                Parent = hit,
843
            }
844
            game:GetService("Debris"):AddItem(bodyVelocity, 1)
845
        elseif Type == "Snare" then
846
            local bp = Create("BodyPosition"){
847
                P = 2000,
848
                D = 100,
849
                maxForce = Vector3.new(math.huge, math.huge, math.huge),
850
                position = hit.Parent.Torso.Position,
851
                Parent = hit.Parent.Torso,
852
            }
853
            game:GetService("Debris"):AddItem(bp, 1)
854
        elseif Type == "Freeze" then
855
            local BodPos = Create("BodyPosition"){
856
                P = 50000,
857
                D = 1000,
858
                maxForce = Vector3.new(math.huge, math.huge, math.huge),
859
                position = hit.Parent.Torso.Position,
860
                Parent = hit.Parent.Torso,
861
            }
862
            local BodGy = Create("BodyGyro") {
863
                maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
864
                P = 20e+003,
865
                Parent = hit.Parent.Torso,
866
                cf = hit.Parent.Torso.CFrame,
867
            }
868
            hit.Parent.Torso.Anchored = true
869
            coroutine.resume(coroutine.create(function(Part)
870
                swait(1.5)
871
                Part.Anchored = false
872
            end), hit.Parent.Torso)
873
            game:GetService("Debris"):AddItem(BodPos, 3)
874
            game:GetService("Debris"):AddItem(BodGy, 3)
875
        end
876
        local debounce = Create("BoolValue"){
877
            Name = "DebounceHit",
878
            Parent = hit.Parent,
879
            Value = true,
880
        }
881
        game:GetService("Debris"):AddItem(debounce, Delay)
882
        c = Create("ObjectValue"){
883
            Name = "creator",
884
            Value = Player,
885
            Parent = h,
886
        }
887
        game:GetService("Debris"):AddItem(c, .5)
888
    end
889
end
890
 
891
function ShowDamage(Pos, Text, Time, Color)
892
    local Rate = (1 / 60)
893
    local Pos = (Pos or Vector3.new(0, 0, 0))
894
    local Text = (Text or "")
895
    local Time = (Time or 2)
896
    local Color = (Color or Color3.new(1, 0, 1))
897
    local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
898
    EffectPart.Anchored = true
899
    local BillboardGui = Create("BillboardGui"){
900
        Size = UDim2.new(3, 0, 3, 0),
901
        Adornee = EffectPart,
902
        Parent = EffectPart,
903
    }
904
    local TextLabel = Create("TextLabel"){
905
        BackgroundTransparency = 1,
906
        Size = UDim2.new(1, 0, 1, 0),
907
        Text = Text,
908
        Font = "SourceSansLight",
909
        TextColor3 = Color,
910
        TextScaled = true,
911
        Parent = BillboardGui,
912
    }
913
    game.Debris:AddItem(EffectPart, (Time))
914
    EffectPart.Parent = game:GetService("Workspace")
915
    delay(0, function()
916
        local Frames = (Time / Rate)
917
        for Frame = 1, Frames do
918
            wait(Rate)
919
            local Percent = (Frame / Frames)
920
            EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
921
            TextLabel.TextTransparency = Percent
922
        end
923
        if EffectPart and EffectPart.Parent then
924
            EffectPart:Destroy()
925
        end
926
    end)
927
end
928
 
929
function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
930
    for _, c in pairs(workspace:children()) do
931
        local hum = c:findFirstChild("Humanoid")
932
        if hum ~= nil then
933
            local head = c:findFirstChild("Torso")
934
            if head ~= nil then
935
                local targ = head.Position - Part.Position
936
                local mag = targ.magnitude
937
                if mag <= Magnitude and c.Name ~= Player.Name then
938
                    Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 10, "rbxassetid://" .. HitSound, HitPitch)
939
                end
940
            end
941
        end
942
    end
943
end
944
 
945
EffectModel = Create("Model"){
946
    Parent = Character,
947
    Name = "EffectModel",
948
}
949
 
950
Effects = {
951
    Block = {
952
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
953
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
954
            prt.Anchored = true
955
            prt.CFrame = cframe
956
            msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
957
            game:GetService("Debris"):AddItem(prt, 10)
958
            if Type == 1 or Type == nil then
959
                table.insert(Effects, {
960
                    prt,
961
                    "Block1",
962
                    delay,
963
                    x3,
964
                    y3,
965
                    z3,
966
                    msh
967
                })
968
            elseif Type == 2 then
969
                table.insert(Effects, {
970
                    prt,
971
                    "Block2",
972
                    delay,
973
                    x3,
974
                    y3,
975
                    z3,
976
                    msh
977
                })
978
            elseif Type == 3 then
979
                table.insert(Effects, {
980
                    prt,
981
                    "Block3",
982
                    delay,
983
                    x3,
984
                    y3,
985
                    z3,
986
                    msh,
987
                    Part
988
                })
989
            elseif Type == 4 then
990
                table.insert(Effects, {
991
                    prt,
992
                    "Block2Fire",
993
                    delay,
994
                    x3,
995
                    y3,
996
                    z3,
997
                    msh
998
                })
999
            end
1000
        end
1001
    };
1002
 
1003
    Sphere = {
1004
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
1005
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1006
            prt.Anchored = true
1007
            prt.CFrame = cframe
1008
            if parent == nil then
1009
                prt.Parent = workspace
1010
            else
1011
                prt.Parent = parent
1012
            end
1013
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1014
            game:GetService("Debris"):AddItem(prt, 10)
1015
            table.insert(Effects, {
1016
                prt,
1017
                "Cylinder",
1018
                delay,
1019
                x3,
1020
                y3,
1021
                z3,
1022
                msh
1023
            })
1024
        end
1025
    };
1026
 
1027
    Blood = {
1028
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1029
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1030
            prt.Anchored = true
1031
            prt.CFrame = cframe
1032
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1033
            game:GetService("Debris"):AddItem(prt, 10)
1034
            table.insert(Effects, {
1035
                prt,
1036
                "Blood",
1037
                delay,
1038
                x3,
1039
                y3,
1040
                z3,
1041
                msh
1042
            })
1043
        end
1044
    };
1045
 
1046
    Blast = {
1047
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
1048
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1049
            prt.Anchored = true
1050
            prt.CFrame = cframe
1051
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1052
            game:GetService("Debris"):AddItem(prt, 10)
1053
            table.insert(Effects, {
1054
                prt,
1055
                "Block4",
1056
                delay,
1057
                x3,
1058
                y3,
1059
                z3,
1060
                msh,
1061
                Part
1062
            })
1063
        end
1064
    };
1065
 
1066
    Ring = {
1067
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1068
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1069
            prt.Anchored = true
1070
            prt.CFrame = cframe
1071
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1072
            game:GetService("Debris"):AddItem(prt, 10)
1073
            table.insert(Effects, {
1074
                prt,
1075
                "Cylinder",
1076
                delay,
1077
                x3,
1078
                y3,
1079
                z3,
1080
                msh
1081
            })
1082
        end
1083
    };
1084
 
1085
    Cylinder = {
1086
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1087
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1088
            prt.Anchored = true
1089
            prt.CFrame = cframe
1090
            local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1091
            game:GetService("Debris"):AddItem(prt, 10)
1092
            table.insert(Effects, {
1093
                prt,
1094
                "Cylinder",
1095
                delay,
1096
                x3,
1097
                y3,
1098
                z3,
1099
                msh
1100
            })
1101
        end
1102
    };
1103
 
1104
    Head = {
1105
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1106
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1107
            prt.Anchored = true
1108
            prt.CFrame = cframe
1109
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1110
            game:GetService("Debris"):AddItem(prt, 10)
1111
            table.insert(Effects, {
1112
                prt,
1113
                "Cylinder",
1114
                delay,
1115
                x3,
1116
                y3,
1117
                z3,
1118
                msh
1119
            })
1120
        end
1121
    };
1122
 
1123
    Wave = {
1124
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1125
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1126
            prt.Anchored = true
1127
            prt.CFrame = cframe
1128
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1129
            game:GetService("Debris"):AddItem(prt, 10)
1130
            table.insert(Effects, {
1131
                prt,
1132
                "Cylinder",
1133
                delay,
1134
                x3,
1135
                y3,
1136
                z3,
1137
                msh
1138
            })
1139
        end
1140
    };
1141
 
1142
    Break = {
1143
        Create = function(brickcolor, cframe, x1, y1, z1)
1144
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1145
            prt.Anchored = true
1146
            prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1147
            game:GetService("Debris"):AddItem(prt, 10)
1148
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1149
            local num = math.random(10, 50) / 1000
1150
            table.insert(Effects, {
1151
                prt,
1152
                "Shatter",
1153
                num,
1154
                prt.CFrame,
1155
                math.random() - math.random(),
1156
                0,
1157
                math.random(50, 100) / 100
1158
            })
1159
        end
1160
    };
1161
 
1162
    Elec = {
1163
        Create = function(brickcolor, cff, x, y, z)
1164
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
1165
            prt.Anchored = true
1166
            prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
1167
            prt.CFrame = CFrame.new(prt.Position)
1168
            game:GetService("Debris"):AddItem(prt, 10)
1169
            xval = math.random() / 9
1170
            yval = math.random() / 9
1171
            zval = math.random() / 9
1172
            msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
1173
            eul1 = math.random(-50, 50)
1174
            eul2 = math.random(-50, 50)
1175
            eul3 = math.random(-50, 50)
1176
            euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
1177
            euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
1178
            table.insert(Effects, {
1179
                prt,
1180
                "Elec",
1181
                .05,
1182
                x,
1183
                y,
1184
                z,
1185
                xval,
1186
                yval,
1187
                zval,
1188
                msh,
1189
                euld,
1190
                euld2
1191
            })
1192
        end
1193
    };
1194
 
1195
    Elec2 = {
1196
        Create = function(brickcolor, cff, x, y, z)
1197
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
1198
            prt.Anchored = true
1199
            prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
1200
            prt.CFrame = CFrame.new(prt.Position)
1201
            game:GetService("Debris"):AddItem(prt, 10)
1202
            xval = math.random() / 7
1203
            yval = math.random() / 7
1204
            zval = math.random() / 7
1205
            msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
1206
            eul1 = math.random(-50, 50)
1207
            eul2 = math.random(-50, 50)
1208
            eul3 = math.random(-50, 50)
1209
            euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
1210
            euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
1211
            table.insert(Effects, {
1212
                prt,
1213
                "Elec",
1214
                .1,
1215
                x,
1216
                y,
1217
                z,
1218
                xval,
1219
                yval,
1220
                zval,
1221
                msh,
1222
                euld,
1223
                euld2
1224
            })
1225
        end
1226
    };
1227
 
1228
    Clone = {
1229
        Create = function()
1230
            for _, v in pairs(Torso.Parent:children()) do
1231
                if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
1232
                    local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
1233
                    c.Anchored = true
1234
                    c.CFrame = v.CFrame
1235
                    game:GetService("Debris"):AddItem(c, 5)
1236
                    local cmsh = nil
1237
                    if v.Name == "Head" then
1238
                        cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
1239
                    else
1240
                        cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
1241
                    end
1242
                    table.insert(Effects, {
1243
                        c,
1244
                        "Cylinder",
1245
                        0.05,
1246
                        0.1,
1247
                        0.1,
1248
                        0.1,
1249
                        cmsh
1250
                    })
1251
                end
1252
            end
1253
        end
1254
    };
1255
 
1256
    EffectTemplate = {
1257
 
1258
    };
1259
}
1260
 
1261
 
1262
 
1263
 
1264
 
1265
 
1266
 
1267
Mouse.Button1Down:connect(function()
1268
        if Mouse ~= nil then
1269
            if Mouse.Target ~= nil then
1270
                part = Mouse.Target
1271
                bp = Instance.new("BodyPosition",part)
1272
                bp.MaxForce = Vector3.new(5000,5000,5000)
1273
                bp.Position = part.Position
1274
                dwn = true
1275
            end
1276
        while dwn == true do
1277
            wait() 
1278
            bp.Position = Mouse.hit.p
1279
            if part then
1280
                if part.Parent:FindFirstChildOfClass("Humanoid") then
1281
                    part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
1282
                end
1283
            end
1284
        end
1285
    end
1286
end)
1287
Mouse.Button1Up:connect(function()
1288
    dwn = false
1289
    if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
1290
    if bp then bp:Destroy() end
1291
end)
1292
   
1293
 
1294
Mouse.KeyDown:connect(function(k)
1295
    k = k:lower()
1296
    if k == 'm'  then
1297
ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol2).Color)
1298
playlist:Destroy()
1299
playlist=Instance.new("Sound", Torso)
1300
playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
1301
playlist.Volume = 5
1302
playlist.Looped = false
1303
playlist.Name = "playlist"
1304
playlist:Play()
1305
    elseif k == 'n' and circleinthesky == false then
1306
circleinthesky = true
1307
    elseif k == 'n' and circleinthesky == true then
1308
circleinthesky = false
1309
end
1310
end)
1311
 
1312
 
1313
 
1314
while true do
1315
    swait()
1316
    for i, v in pairs(Character:GetChildren()) do
1317
        if v:IsA("Part") then
1318
            v.Material = "SmoothPlastic"
1319
        elseif v:IsA("Accessory") then
1320
            v:WaitForChild("Handle").Material = "SmoothPlastic"
1321
        end
1322
    end
1323
    for i, v in pairs(Character:GetChildren()) do
1324
        if v:IsA'Model' then
1325
            for _, c in pairs(v:GetChildren()) do
1326
                if c:IsA'Part' then
1327
                    c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1328
                end
1329
            end
1330
        end
1331
    end
1332
    if playlist.IsPlaying == false then
1333
ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5,  BrickColor.new(maincol2).Color)
1334
playlist:Destroy()
1335
playlist=Instance.new("Sound", Torso)
1336
playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
1337
playlist.Volume = 5
1338
playlist.Looped = false
1339
playlist.Name = "playlist"
1340
playlist:Play()
1341
end
1342
    TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
1343
    Velocity = RootPart.Velocity.y
1344
    Sine = Sine + Change
1345
    local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1346
    if RootPart.Velocity.y > 1 and hit == nil then
1347
        Anim = "Jump"
1348
        if Attack == false then
1349
            Change = 1
1350
        PlayAnimationFromTable({
1351
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
1352
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
1353
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
1354
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
1355
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
1356
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
1357
        }, .3, false)
1358
        MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
1359
        end
1360
    elseif RootPart.Velocity.y < -1 and hit == nil then
1361
        Anim = "Fall"
1362
        if Attack == false then
1363
            Change = 1
1364
        PlayAnimationFromTable({
1365
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
1366
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
1367
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
1368
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
1369
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
1370
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
1371
        }, .3, false)
1372
        MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
1373
        end
1374
    elseif TorsoVelocity < 1 and hit ~= nil then
1375
        Anim = "Idle"
1376
        if Attack == false then
1377
            Change = 1
1378
        PlayAnimationFromTable({
1379
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
1380
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .1 * math.cos(Sine/35), 0, 0),
1381
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
1382
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
1383
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
1384
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
1385
        }, .3, false)
1386
        MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
1387
        end
1388
    elseif TorsoVelocity > 2 and hit ~= nil then
1389
        Anim = "Walk"
1390
            if Attack == false then
1391
        PlayAnimationFromTable({
1392
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
1393
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
1394
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
1395
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
1396
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
1397
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
1398
        }, .3, false)
1399
        MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
1400
        end
1401
    end
1402
    if #Effects > 0 then
1403
        for e = 1, #Effects do
1404
            if Effects[e] ~= nil then
1405
                local Thing = Effects[e]
1406
                if Thing ~= nil then
1407
                    local Part = Thing[1]
1408
                    local Mode = Thing[2]
1409
                    local Delay = Thing[3]
1410
                    local IncX = Thing[4]
1411
                    local IncY = Thing[5]
1412
                    if Thing[1].Transparency <= 1 then
1413
                        if Thing[2] == "Block1" then
1414
                            Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1415
                            Mesh = Thing[7]
1416
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1417
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1418
                        elseif Thing[2] == "Ice" then
1419
                            if Thing[6] <= Thing[5] then
1420
                                Thing[6] = Thing[6] + .05
1421
                                Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
1422
                            else
1423
                                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1424
                            end
1425
                        elseif Thing[2] == "Shatter" then
1426
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1427
                            Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1428
                            Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1429
                            Thing[6] = Thing[6] + Thing[5]
1430
                        elseif Thing[2] == "Block2" then
1431
                            Thing[1].CFrame = Thing[1].CFrame
1432
                            Mesh = Thing[7]
1433
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1434
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1435
                        elseif Thing[2] == "Block3" then
1436
                            Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1437
                            Mesh = Thing[7]
1438
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1439
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1440
                        elseif Thing[2] == "Block4" then
1441
                            Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
1442
                            Mesh = Thing[7]
1443
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1444
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1445
                        elseif Thing[2] == "Block2Fire" then
1446
                            Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1447
                            Mesh = Thing[7]
1448
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1449
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1450
                            if Thing[1].Transparency >= .3 then
1451
                                Thing[1].BrickColor = BrickColor.new("Bright red")
1452
                            else
1453
                                Thing[1].BrickColor = BrickColor.new("Bright yellow")
1454
                            end
1455
                        elseif Thing[2] == "Cylinder" then
1456
                            Mesh = Thing[7]
1457
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1458
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1459
                        elseif Thing[2] == "Blood" then
1460
                            Mesh = Thing[7]
1461
                            Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
1462
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1463
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1464
                        elseif Thing[2] == "Elec" then
1465
                            Mesh = Thing[10]
1466
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1467
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1468
                            Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
1469
                            Thing[1].Rotation = Vector3.new(0, 0, 0)
1470
                        elseif Thing[2] == "Disappear" then
1471
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1472
                        end
1473
                    else
1474
                        Part.Parent = nil
1475
                        table.remove(Effects, e)
1476
                    end
1477
                end
1478
            end
1479
        end
1480
    end
1481
local alg = math.floor(playlist.PlaybackLoudness)/500
1482
local alg2 = math.floor(playlist.PlaybackLoudness)/80
1483
 
1484
if circleinthesky == false then
1485
FloatField2.BrickColor = BrickColor.new(maincol2)
1486
spinny.Position = Torso.Position
1487
spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
1488
efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3))  
1489
efekt.Anchored=true
1490
efekt.CanCollide=false
1491
game:GetService("Debris"):AddItem(efekt, .5)
1492
--ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color)
1493
efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,0,0)
1494
 
1495
      elseif circleinthesky == true then
1496
 
1497
FloatField2.BrickColor = BrickColor.new(maincol2)
1498
spinny.Position = Torso.Position
1499
spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
1500
efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(1+alg2,.05,.3))
1501
efekt.Anchored=true
1502
efekt.CanCollide=false
1503
efekt2=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(alg2,.05,.3)) 
1504
efekt2.Anchored=true
1505
efekt2.CanCollide=false
1506
game:GetService("Debris"):AddItem(efekt, 2)
1507
game:GetService("Debris"):AddItem(efekt2, 2)
1508
--ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color)
1509
efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,20,0)
1510
efekt2.CFrame=spinny.CFrame*CFrame.new(aoeconstant-4,10,0) 
1511
end
1512
humanoid.Health = math.huge
1513
soundbork(workspace)
1514
end