View difference between Paste ID: zKg7TaWC and 6eGd2euh
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
wait(1/25)
305
306
-- Main Things
307
308
local player = game.Players.LocalPlayer
309
local character = player.Character
310
local mouse = player:GetMouse()
311
312
-- Other Things
313
314
local run = false
315
local stopvelocity = false
316
local speedup = 0
317
local hover = false
318
local timepass = 0
319
320
-- Customization Options
321
322
local forcefield = false
323
local everyone_dies = false
324
local have_music = true
325
local have_light = true
326
local speakingtext = true
327
doeffect = 1
328
329
-- Customization Run
330
331
if have_music == true then
332
	local music = Instance.new("Sound")
333
	music.SoundId = "https://www.roblox.com/asset/?id=243139642"
334
	music.Volume = 1
335
	music.Playing = true
336
	music.Looped = true
337
	music.Pitch = 1.2
338
	music.Parent = character:WaitForChild("Head")
339
end
340
341
if have_light == true then
342
	light = Instance.new("PointLight")
343
	light.Range = 15
344
	light.Brightness = 1000
345
	light.Shadows = true
346
	light.Enabled = false
347
	light.Parent = character:WaitForChild("Head") 
348
end
349
350
if speakingtext == true then
351
	local bgui = Instance.new("BillboardGui",character)
352
	bgui.Size = UDim2.new(0,100,0,40)
353
	bgui.StudsOffset = Vector3.new(0,2,0)
354
	bgui.Adornee = character.Head
355
	local text = Instance.new("TextLabel", bgui)
356
	text.BackgroundTransparency = 1
357
	text.BorderSizePixel = 0
358
	text.Text = "Rainbow's Fury!"
359
	text.Font = "ArialBold"
360
	text.FontSize = "Size24"
361
	text.TextStrokeTransparency = 0
362
	text.TextStrokeColor3 = Color3.new(0,0,0)
363
	text.TextColor3 = Color3.new(255,255,255)
364
	coroutine.resume(coroutine.create(function()
365
		while true do
366
			for i=1, 255 do
367
				wait()
368
				text.TextColor3 = Color3.new((math.random(0, 255) / i),(math.random(0, 255) / i),(math.random(0, 255) / i))
369
			end
370
			text.TextColor3 = Color3.new(255, 255, 255)
371
			wait()
372
		end
373
	end))
374
	text.Size = UDim2.new(1,0,0.5,0)
375
	player.Chatted:connect(function(chat)
376
		for i=1,string.len(chat) do
377
			text.Text = string.sub(chat, 1, i)
378
			wait()
379
		end
380
		wait(2)
381
		text.Text = ""
382
	end)
383
	wait(0.2)
384
	for i=1,10 do
385
		wait()
386
		text.Transparency = text.Transparency + (0.05 * i)
387
	end
388
	text.Text = ""
389
	text.FontSize = "Size28"
390
	for i=1,10 do
391
		text.Transparency = text.Transparency - (0.05 * i)
392
		wait()
393
	end
394
end
395
396
-- God Strength
397
398
local humanoid = character:FindFirstChild("Humanoid")
399
if humanoid == nil then
400
	return
401
else
402
	if forcefield == true then
403
		local forcefield = Instance.new("ForceField")
404
		forcefield.Parent = character
405
	end
406
	coroutine.resume(coroutine.create(function()
407
		repeat
408
			humanoid.MaxHealth = "inf"
409
			humanoid.Health = humanoid.MaxHealth
410
			if run == false then
411
				humanoid.WalkSpeed = 30
412
			end
413
			humanoid.JumpPower = 100
414
			humanoid.PlatformStand = false
415
			game.Workspace.Gravity = 196.2
416
			for i,v in pairs(character:GetChildren()) do
417
				if v.ClassName == "Part" then
418
					v.Anchored = false
419
				end
420
				if v.ClassName == "Accessory" then
421
					for i,g in pairs(v:GetChildren()) do
422
						if g.ClassName == "Part" then
423
							g.Anchored = false
424
							if stopvelocity == true then
425
								g.Velocity = Vector3.new(0,0,0)
426
							end
427
						end
428
					end
429
				end
430
			end
431
			wait()
432
			if everyone_dies == true then
433
				if humanoid.Health <= 1 or humanoid == nil then
434
					for i,v in pairs(game.Workspace:GetChildren()) do
435
						if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
436
							v:Destroy()
437
						end
438
					end
439
					return
440
				end
441
			end
442
		until humanoid == "nil" 
443
		wait()
444
	end))
445
end
446
447
-- Keys
448
449
mouse.KeyDown:connect(function(key)
450
	if key == "z" then
451
		if mouse.Target ~= nil then
452
			local hitmodel = mouse.Target.Parent
453
			local hithumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
454
			if mouse.Target.Parent.ClassName == "Accessory" then
455
				hithumanoid = mouse.Target.Parent.Parent
456
			end
457
			if hithumanoid then
458
				coroutine.resume(coroutine.create(function()
459
					repeat 
460
						hithumanoid:UnequipTools()
461
						hithumanoid.WalkSpeed = 0
462
						hithumanoid.JumpPower = 0
463
						hithumanoid.PlatformStand = true
464
						wait()
465
					until hithumanoid == "nil"
466
					wait()
467
				end))
468
			end 
469
		end
470
	elseif key == "r" then
471
		if mouse.Target ~= nil then
472
			mouse.Target:Destroy()
473
		end
474
	elseif key == "k" then
475
		if (character.Torso.Position - mouse.Hit.p).magnitude < 1000 then
476
			local part = Instance.new("Part")
477
			part.Name = "Block"
478
			part.Material = "SmoothPlastic"
479
			part.Anchored = true
480
			part.CanCollide = true
481
			part.Size = Vector3.new(3,9,3)
482
			part.Parent = workspace
483
			part.Position = mouse.Hit.p
484
			coroutine.resume(coroutine.create(function()
485
				wait(5)
486
				for i=1,10 do
487
					part.Size = part.Size + Vector3.new(1 * i,(1 * (i * 3)),1 * i)
488
					part.Transparency = part.Transparency + (0.025 * i)
489
					wait()
490
				end
491
				part.Transparency = 1
492
				part:Destroy()
493
			end))
494
		end
495
	elseif key == "f" then
496
		if mouse.Target ~= nil and mouse.Target.ClassName == "Part" then
497
			coroutine.resume(coroutine.create(function()
498
				local lookat = mouse.Target
499
				repeat
500
					lookat.BrickColor = BrickColor.Random()
501
					lookat.Material = "Neon"
502
					wait()
503
				until lookat == "nil" 
504
				wait()
505
			end))
506
		end
507
	elseif key == "g" then
508
		if mouse.Target ~= nil and mouse.Target.ClassName == "Part" then
509
			local spinthing = mouse.Target
510
			coroutine.resume(coroutine.create(function()
511
				repeat
512
					wait()
513
					local random = math.random(-1,1)
514
					random = random * math.random(-10,10)
515
					spinthing.CFrame = spinthing.CFrame * CFrame.fromEulerAnglesXYZ(random, random, random)
516
				until spinthing == "nil"
517
				wait()
518
			end))
519
		end
520
	elseif key == "e" then
521
		local deletehumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
522
			if mouse.Target.Parent.ClassName == "Accessory" then
523
				deletehumanoid = mouse.Target.Parent.Parent
524
			end
525
		if mouse.Target ~= nil and deletehumanoid then
526
			mouse.Target.Parent:Destroy()
527
		end
528
	elseif key == "x" then
529
		local healhumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
530
			if mouse.Target.Parent.ClassName == "Accessory" then
531
				healhumanoid = mouse.Target.Parent.Parent
532
			end
533
		if mouse.Target ~= nil and healhumanoid then
534
			healhumanoid.Health = healhumanoid.MaxHealth
535
			healhumanoid.PlatformStand = false
536
		end
537
	elseif key == "l" then
538
		if (character.Torso.Position - mouse.Hit.p).magnitude < 1000 then
539
			local part = Instance.new("Part")
540
			part.Name = "Block"
541
			part.Material = "Neon"
542
			part.Anchored = true
543
			part.CanCollide = true
544
			part.Size = Vector3.new(3,3,3)
545
			part.Parent = workspace
546
			part.CFrame = mouse.Hit
547
			coroutine.resume(coroutine.create(function()
548
				for i=1,10 do
549
					part.Size = part.Size + Vector3.new(1 * i,(1 * i),1 * i)
550
					part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(i), math.rad(i), math.rad(i))
551
					part.Transparency = part.Transparency + (0.025 * i)
552
					wait()
553
				end
554
				part.Transparency = 1
555
				part:Destroy()
556
			end))
557
		end
558
	elseif key == "q" then
559
		local flytarget = mouse.Target
560
		if mouse.Target ~= "nil" then
561
			for i=1,50 do
562
				flytarget.CFrame = flytarget.CFrame + Vector3.new(0,(0.1 * (i / 5)),0)
563
				wait()
564
			end
565
			local flytargethumanoid = flytarget.Parent:FindFirstChild("Humanoid")
566
			if flytargethumanoid then
567
				flytarget.Parent:BreakJoints()
568
				flytargethumanoid.Health = 0
569
				flytargethumanoid.PlatformStand = true
570
				flytargethumanoid:ClearAllChildren()
571
			end
572
			local explosion = Instance.new("Explosion")
573
			explosion.Position = flytarget.Position
574
			explosion.BlastRadius = 20
575
			explosion.BlastPressure = 250000
576
			explosion.DestroyJointRadiusPercent = 1
577
			explosion.Parent = flytarget
578
			game.Debris:AddItem(flytarget, 2)
579
		end
580
	elseif key == "y" then
581
		local pdude = mouse.Target.Parent
582
		local pdeletehumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
583
			if mouse.Target.Parent.ClassName == "Accessory" then
584
				pdeletehumanoid = mouse.Target.Parent.Parent
585
				pdude = mouse.Target.Parent.Parent
586
			end
587
		if mouse.Target ~= nil and pdeletehumanoid then
588
			repeat
589
				local pdude = game.Workspace:FindFirstChild(pdude.Name)
590
				if pdude then
591
					pdude:Destroy()
592
				end
593
				wait()
594
			until 1 == 2
595
		end
596
	elseif key == "t" then
597
		if mouse.Target ~= nil and mouse.Target.Parent.ClassName == "Accessory" then
598
			mouse.Target:Destroy()
599
		end
600
	elseif key == "m" then
601
		local block = Instance.new("Part")
602
		block.Size = Vector3.new(math.random(1, 3),math.random(1, 3),math.random(1, 3))
603
		block.BrickColor = BrickColor.Random()
604
		block.Position = mouse.Hit.p
605
		block.Parent = workspace
606
	elseif key == "n" then
607
		local blowup = Instance.new("Explosion")
608
		blowup.Position = mouse.Hit.p
609
		blowup.BlastRadius = 10
610
		blowup.BlastPressure = 250000
611
		blowup.DestroyJointRadiusPercent = 1
612
		blowup.Parent = workspace
613
	elseif key:byte() == 48 then
614
		run = true
615
		doeffect = doeffect + 1
616
		speedup = 0.01
617
	elseif key == "b" then
618
		if light.Enabled == false then
619
			light.Enabled = true
620
		else
621
			light.Enabled = false
622
		end
623
	elseif key == "v" then
624
		if stopvelocity == false then
625
			stopvelocity = true
626
		else
627
			stopvelocity = false
628
		end
629
	elseif key == "c" then
630
		if (character:FindFirstChild("Head").Position - mouse.Hit.p).magnitude < 1500 then
631
			character.Head.CFrame = mouse.Hit + Vector3.new(0, 5, 0) 
632
		end
633
	elseif key == "h" then
634
		if hover == false then
635
			hover = true
636
		else
637
			hover = false
638
		end
639
	end --end of ifkeys
640
end)
641
642
mouse.KeyUp:connect(function(key)
643
	if key:byte() == 48 then
644
		run = false
645
		doeffect = doeffect - 1
646
		speedup = 0
647
	end 
648
end)
649
650
-- Hold Actions
651
652
coroutine.resume(coroutine.create(function()
653
	while true do
654
		if run == true then
655
			humanoid.WalkSpeed = 70
656
			repeat
657
				humanoid.WalkSpeed = humanoid.WalkSpeed + (0.05 + speedup)
658
				character.Head.Velocity = character.Head.Velocity + Vector3.new(1,0,1) * character.Head.CFrame.lookVector * speedup
659
				if speedup > 15 then
660
					speedup = speedup + 0.5
661
					humanoid.WalkSpeed = humanoid.WalkSpeed + 60
662
				else
663
					speedup = speedup + 0.1
664
				end
665
				local reffect = Instance.new("Part")
666
				game.Debris:AddItem(reffect, 5)
667
				reffect.Size = Vector3.new(math.random(0.6,1),math.random(0.6,1),math.random(0.6,1))
668
				reffect.Anchored = true
669
				reffect.CanCollide = false
670
				reffect.Material = "Plastic"
671
				reffect.Name = "Run Effect"
672
				reffect.BrickColor = BrickColor.Random()
673
				reffect.CFrame = (character:FindFirstChild("Head").CFrame - Vector3.new(math.random(-1,1), math.random(4,4.5), math.random(-1,1))) * CFrame.Angles(math.rad(90),0,0)
674
				local runmesh = Instance.new("SpecialMesh")
675
				runmesh.MeshType = "FileMesh"
676
				runmesh.MeshId = "rbxassetid://20329976"
677
				runmesh.Offset = Vector3.new(0, 0, 0.5)
678
				runmesh.Parent = reffect
679
				reffect.Parent = workspace
680
				coroutine.resume(coroutine.create(function()
681
					for i=1,10 do
682
						reffect.Transparency = reffect.Transparency + (0.05 * i)
683
						runmesh.Offset = runmesh.Offset + Vector3.new(0, 1 + ((speedup) / i), 0)
684
						runmesh.Scale = runmesh.Scale + Vector3.new((humanoid.WalkSpeed / 1000) * i, (humanoid.WalkSpeed / 1000) * i, (humanoid.WalkSpeed / 1000) * i)
685
						wait()
686
					end
687
					reffect:Destroy()
688
				end))
689
				wait()
690
			until run == false
691
			humanoid.WalkSpeed = 30
692
			speedup = 0
693
		end
694
		wait()
695
	end
696
end))
697
698
coroutine.resume(coroutine.create(function()
699
	while true do
700
		if hover == true then
701
			repeat
702
				local effect = Instance.new("Part")
703
				game.Debris:AddItem(effect, 5)
704
				effect.Size = Vector3.new(0.1, 0.1, 0.1)
705
				effect.Anchored = true
706
				effect.CanCollide = false
707
				effect.Material = "Plastic"
708
				effect.Name = "Hover Effect"
709
				effect.BrickColor = BrickColor.Random()
710
				effect.CFrame = (character:FindFirstChild("Head").CFrame - Vector3.new(math.random(-0.5,0.5), 4.5, math.random(-0.5,0.5))) * CFrame.Angles(math.rad(90),0,0)
711
				local ringmesh = Instance.new("SpecialMesh")
712
				ringmesh.MeshType = "FileMesh"
713
				ringmesh.MeshId = "rbxassetid://3270017"
714
				ringmesh.Offset = Vector3.new(0, 0, 0.5)
715
				ringmesh.Scale = Vector3.new(3,3,3)
716
				ringmesh.Parent = effect
717
				effect.Parent = workspace
718
				character.Head.Velocity = Vector3.new(character.Head.Velocity.x, 50, character.Head.Velocity.z)
719
				coroutine.resume(coroutine.create(function()
720
					for i=1,30 do
721
						effect.Transparency = effect.Transparency + ((0.05 / 3) * i)
722
						ringmesh.Scale = ringmesh.Scale + Vector3.new((-0.05 * i), (-0.05 * i), (-0.05 * i))
723
						ringmesh.Offset = ringmesh.Offset + Vector3.new(0, 0, (0.5 * i))
724
						wait()
725
					end
726
					effect:Destroy()
727
				end))
728
				wait()
729
			until hover == false
730
		end
731
		wait()
732
	end
733
end))
734
735
-- Rainbow Particle
736
737
coroutine.resume(coroutine.create(function()
738
	while true do
739
		for i=1, math.random(1, doeffect) do
740
			local shine = Instance.new("Part")
741
			game.Debris:AddItem(shine, 5)
742
			shine.Size = Vector3.new(math.random(0.6,0.9),math.random(0.6,0.9),math.random(0.6,0.9))
743
			shine.BrickColor = BrickColor.Random()
744
			shine.Material = "Neon"
745
			shine.Anchored = true
746
			shine.CanCollide = false
747
			shine.Name = "Idle Effect"
748
			shine.CFrame = (character:FindFirstChild("Head").CFrame - Vector3.new(0, 4, 0)) * CFrame.Angles(math.rad(math.random(-360, 360)),math.rad(math.random(-360, 360)),math.rad(math.random(-360, 360)))
749
			shine.Parent = workspace
750
			coroutine.resume(coroutine.create(function()
751
				for i=1,40 do
752
					shine.Transparency = shine.Transparency + ((0.05 / 4) * i)
753
					shine.Size = shine.Size - Vector3.new(((0.05 / 4) * i), ((0.05 / 4) * i), ((0.05 / 4) * i))
754
					shine.CFrame = shine.CFrame + shine.CFrame.lookVector * (0.3 * (i / (i / 3)))
755
					shine.CFrame = shine.CFrame + Vector3.new(0,(0.1 * i), 0)
756
					shine.CFrame = shine.CFrame * CFrame.Angles(math.rad(i * 4), math.rad(i * 4), math.rad(i * 4))
757
					wait()
758
				end
759
				shine:Destroy()
760
			end))
761
		end
762
		wait()
763
	end
764
end))