Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- script.Parent = InternalData.RealOwner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
- local function createObject (connections, index)
- local proxy = newproxy (true);local meta = getmetatable (proxy);
- local runbind = function (self, i, ...) connections[i]:Fire (...); end;
- while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
- meta.__index = function (self, i)
- if (i == 'TriggerEvent') then return runbind end;
- return connections[i] and connections[i].Event or index[i];
- end;
- meta.__newindex = index;meta.__metatable = false;return proxy
- end;
- local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- local UserInputService = createObject({"InputBegan","InputEnded"},{})
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= InternalData.RealOwner then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- elseif Input.Sound then
- if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;
- local Sounds = {};
- local Event = script:WaitForChild("UserInput");
- local UserInputService = game:GetService("UserInputService");
- local Mouse = Player:GetMouse();
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- Event.OnClientEvent:connect(function(Args)
- if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
- end)
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- for x,Sound in pairs(Sounds) do
- if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
- end
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit = Mouse.Hit;Target = Mouse.Target;
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],InternalData.RealOwner.Character)
- end
- InternalData.NewOwner = setmetatable({},{
- __index = function (self,Index)
- local Type = type(InternalData.RealOwner[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
- elseif Index == "FakePlayer" then
- return true
- end
- return InternalData.RealOwner[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealOwner) end
- })
- --LoadLibrary("RbxUtility").Create
- InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
- if Library == "RbxUtility" then
- return setmetatable({},{
- __tostring = function() return "RbxUtility" end;
- __index = function(self, Index)
- if Index:lower() == "create" then
- return function(Type)
- return function(Data)
- Data = Data or {}
- local Inst = Instance.new(Type)
- for x,y in pairs(Data) do
- if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
- if y == owner then y = InternalData.RealOwner end
- Inst[x] = y
- end
- return Inst
- end
- end
- end
- return InternalData.LoadLibrary(Library)[Index]
- end
- })
- end
- return InternalData.LoadLibrary(Library)
- end
- InternalData.RealInstance = Instance;Instance = setmetatable({},{
- __index = function (self,Index)
- if Index:lower() == 'new' then
- return function (Type, Parent)
- if Parent == owner then Parent = InternalData.RealOwner end
- if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
- local Real = InternalData.RealInstance.new(Type,Parent)
- if not Type then return end
- if Type == "BillboardGui" then
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- elseif Type:lower() == "sound" then
- Real.Parent = owner.Character;
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if Index:lower() == "playbackloudness" then
- return InternalData.SoundLoudness[Real] or 0
- elseif type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
- else
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- end
- return InternalData.RealInstance[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealInstance) end;
- });
- InternalData.RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- if InternalData.RealGame[Index] then
- local Type = type(InternalData.RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return InternalData.NewOwner end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["debris"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- if Index2:lower() == "additem" then
- return function (self,Item,Time)
- if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
- return RealService:AddItem(Item,Time)
- end
- end
- return function (self,...) return RealService[Index2](RealService,...) end
- end
- return RealService[Index2]
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
- })
- end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return InternalData.RealGame:GetService(Service)
- end
- end
- return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return InternalData.RealGame[Index]
- end
- end
- return nil
- end;
- __tostring = function(self) return tostring(InternalData.game) end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
- wait(1/25)
- -- Main Things
- local player = game.Players.LocalPlayer
- local character = player.Character
- local mouse = player:GetMouse()
- -- Other Things
- local run = false
- local stopvelocity = false
- local speedup = 0
- local hover = false
- local timepass = 0
- -- Customization Options
- local forcefield = false
- local everyone_dies = false
- local have_music = true
- local have_light = true
- local speakingtext = true
- doeffect = 1
- -- Customization Run
- if have_music == true then
- local music = Instance.new("Sound")
- music.SoundId = "https://www.roblox.com/asset/?id=243139642"
- music.Volume = 1
- music.Playing = true
- music.Looped = true
- music.Pitch = 1.2
- music.Parent = character:WaitForChild("Head")
- end
- if have_light == true then
- light = Instance.new("PointLight")
- light.Range = 15
- light.Brightness = 1000
- light.Shadows = true
- light.Enabled = false
- light.Parent = character:WaitForChild("Head")
- end
- if speakingtext == true then
- local bgui = Instance.new("BillboardGui",character)
- bgui.Size = UDim2.new(0,100,0,40)
- bgui.StudsOffset = Vector3.new(0,2,0)
- bgui.Adornee = character.Head
- local text = Instance.new("TextLabel", bgui)
- text.BackgroundTransparency = 1
- text.BorderSizePixel = 0
- text.Text = "Rainbow's Fury!"
- text.Font = "ArialBold"
- text.FontSize = "Size24"
- text.TextStrokeTransparency = 0
- text.TextStrokeColor3 = Color3.new(0,0,0)
- text.TextColor3 = Color3.new(255,255,255)
- coroutine.resume(coroutine.create(function()
- while true do
- for i=1, 255 do
- wait()
- text.TextColor3 = Color3.new((math.random(0, 255) / i),(math.random(0, 255) / i),(math.random(0, 255) / i))
- end
- text.TextColor3 = Color3.new(255, 255, 255)
- wait()
- end
- end))
- text.Size = UDim2.new(1,0,0.5,0)
- player.Chatted:connect(function(chat)
- for i=1,string.len(chat) do
- text.Text = string.sub(chat, 1, i)
- wait()
- end
- wait(2)
- text.Text = ""
- end)
- wait(0.2)
- for i=1,10 do
- wait()
- text.Transparency = text.Transparency + (0.05 * i)
- end
- text.Text = ""
- text.FontSize = "Size28"
- for i=1,10 do
- text.Transparency = text.Transparency - (0.05 * i)
- wait()
- end
- end
- -- God Strength
- local humanoid = character:FindFirstChild("Humanoid")
- if humanoid == nil then
- return
- else
- if forcefield == true then
- local forcefield = Instance.new("ForceField")
- forcefield.Parent = character
- end
- coroutine.resume(coroutine.create(function()
- repeat
- humanoid.MaxHealth = "inf"
- humanoid.Health = humanoid.MaxHealth
- if run == false then
- humanoid.WalkSpeed = 30
- end
- humanoid.JumpPower = 100
- humanoid.PlatformStand = false
- game.Workspace.Gravity = 196.2
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" then
- v.Anchored = false
- end
- if v.ClassName == "Accessory" then
- for i,g in pairs(v:GetChildren()) do
- if g.ClassName == "Part" then
- g.Anchored = false
- if stopvelocity == true then
- g.Velocity = Vector3.new(0,0,0)
- end
- end
- end
- end
- end
- wait()
- if everyone_dies == true then
- if humanoid.Health <= 1 or humanoid == nil then
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
- v:Destroy()
- end
- end
- return
- end
- end
- until humanoid == "nil"
- wait()
- end))
- end
- -- Keys
- mouse.KeyDown:connect(function(key)
- if key == "z" then
- if mouse.Target ~= nil then
- local hitmodel = mouse.Target.Parent
- local hithumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
- if mouse.Target.Parent.ClassName == "Accessory" then
- hithumanoid = mouse.Target.Parent.Parent
- end
- if hithumanoid then
- coroutine.resume(coroutine.create(function()
- repeat
- hithumanoid:UnequipTools()
- hithumanoid.WalkSpeed = 0
- hithumanoid.JumpPower = 0
- hithumanoid.PlatformStand = true
- wait()
- until hithumanoid == "nil"
- wait()
- end))
- end
- end
- elseif key == "r" then
- if mouse.Target ~= nil then
- mouse.Target:Destroy()
- end
- elseif key == "k" then
- if (character.Torso.Position - mouse.Hit.p).magnitude < 1000 then
- local part = Instance.new("Part")
- part.Name = "Block"
- part.Material = "SmoothPlastic"
- part.Anchored = true
- part.CanCollide = true
- part.Size = Vector3.new(3,9,3)
- part.Parent = workspace
- part.Position = mouse.Hit.p
- coroutine.resume(coroutine.create(function()
- wait(5)
- for i=1,10 do
- part.Size = part.Size + Vector3.new(1 * i,(1 * (i * 3)),1 * i)
- part.Transparency = part.Transparency + (0.025 * i)
- wait()
- end
- part.Transparency = 1
- part:Destroy()
- end))
- end
- elseif key == "f" then
- if mouse.Target ~= nil and mouse.Target.ClassName == "Part" then
- coroutine.resume(coroutine.create(function()
- local lookat = mouse.Target
- repeat
- lookat.BrickColor = BrickColor.Random()
- lookat.Material = "Neon"
- wait()
- until lookat == "nil"
- wait()
- end))
- end
- elseif key == "g" then
- if mouse.Target ~= nil and mouse.Target.ClassName == "Part" then
- local spinthing = mouse.Target
- coroutine.resume(coroutine.create(function()
- repeat
- wait()
- local random = math.random(-1,1)
- random = random * math.random(-10,10)
- spinthing.CFrame = spinthing.CFrame * CFrame.fromEulerAnglesXYZ(random, random, random)
- until spinthing == "nil"
- wait()
- end))
- end
- elseif key == "e" then
- local deletehumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
- if mouse.Target.Parent.ClassName == "Accessory" then
- deletehumanoid = mouse.Target.Parent.Parent
- end
- if mouse.Target ~= nil and deletehumanoid then
- mouse.Target.Parent:Destroy()
- end
- elseif key == "x" then
- local healhumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
- if mouse.Target.Parent.ClassName == "Accessory" then
- healhumanoid = mouse.Target.Parent.Parent
- end
- if mouse.Target ~= nil and healhumanoid then
- healhumanoid.Health = healhumanoid.MaxHealth
- healhumanoid.PlatformStand = false
- end
- elseif key == "l" then
- if (character.Torso.Position - mouse.Hit.p).magnitude < 1000 then
- local part = Instance.new("Part")
- part.Name = "Block"
- part.Material = "Neon"
- part.Anchored = true
- part.CanCollide = true
- part.Size = Vector3.new(3,3,3)
- part.Parent = workspace
- part.CFrame = mouse.Hit
- coroutine.resume(coroutine.create(function()
- for i=1,10 do
- part.Size = part.Size + Vector3.new(1 * i,(1 * i),1 * i)
- part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(i), math.rad(i), math.rad(i))
- part.Transparency = part.Transparency + (0.025 * i)
- wait()
- end
- part.Transparency = 1
- part:Destroy()
- end))
- end
- elseif key == "q" then
- local flytarget = mouse.Target
- if mouse.Target ~= "nil" then
- for i=1,50 do
- flytarget.CFrame = flytarget.CFrame + Vector3.new(0,(0.1 * (i / 5)),0)
- wait()
- end
- local flytargethumanoid = flytarget.Parent:FindFirstChild("Humanoid")
- if flytargethumanoid then
- flytarget.Parent:BreakJoints()
- flytargethumanoid.Health = 0
- flytargethumanoid.PlatformStand = true
- flytargethumanoid:ClearAllChildren()
- end
- local explosion = Instance.new("Explosion")
- explosion.Position = flytarget.Position
- explosion.BlastRadius = 20
- explosion.BlastPressure = 250000
- explosion.DestroyJointRadiusPercent = 1
- explosion.Parent = flytarget
- game.Debris:AddItem(flytarget, 2)
- end
- elseif key == "y" then
- local pdude = mouse.Target.Parent
- local pdeletehumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
- if mouse.Target.Parent.ClassName == "Accessory" then
- pdeletehumanoid = mouse.Target.Parent.Parent
- pdude = mouse.Target.Parent.Parent
- end
- if mouse.Target ~= nil and pdeletehumanoid then
- repeat
- local pdude = game.Workspace:FindFirstChild(pdude.Name)
- if pdude then
- pdude:Destroy()
- end
- wait()
- until 1 == 2
- end
- elseif key == "t" then
- if mouse.Target ~= nil and mouse.Target.Parent.ClassName == "Accessory" then
- mouse.Target:Destroy()
- end
- elseif key == "m" then
- local block = Instance.new("Part")
- block.Size = Vector3.new(math.random(1, 3),math.random(1, 3),math.random(1, 3))
- block.BrickColor = BrickColor.Random()
- block.Position = mouse.Hit.p
- block.Parent = workspace
- elseif key == "n" then
- local blowup = Instance.new("Explosion")
- blowup.Position = mouse.Hit.p
- blowup.BlastRadius = 10
- blowup.BlastPressure = 250000
- blowup.DestroyJointRadiusPercent = 1
- blowup.Parent = workspace
- elseif key:byte() == 48 then
- run = true
- doeffect = doeffect + 1
- speedup = 0.01
- elseif key == "b" then
- if light.Enabled == false then
- light.Enabled = true
- else
- light.Enabled = false
- end
- elseif key == "v" then
- if stopvelocity == false then
- stopvelocity = true
- else
- stopvelocity = false
- end
- elseif key == "c" then
- if (character:FindFirstChild("Head").Position - mouse.Hit.p).magnitude < 1500 then
- character.Head.CFrame = mouse.Hit + Vector3.new(0, 5, 0)
- end
- elseif key == "h" then
- if hover == false then
- hover = true
- else
- hover = false
- end
- end --end of ifkeys
- end)
- mouse.KeyUp:connect(function(key)
- if key:byte() == 48 then
- run = false
- doeffect = doeffect - 1
- speedup = 0
- end
- end)
- -- Hold Actions
- coroutine.resume(coroutine.create(function()
- while true do
- if run == true then
- humanoid.WalkSpeed = 70
- repeat
- humanoid.WalkSpeed = humanoid.WalkSpeed + (0.05 + speedup)
- character.Head.Velocity = character.Head.Velocity + Vector3.new(1,0,1) * character.Head.CFrame.lookVector * speedup
- if speedup > 15 then
- speedup = speedup + 0.5
- humanoid.WalkSpeed = humanoid.WalkSpeed + 60
- else
- speedup = speedup + 0.1
- end
- local reffect = Instance.new("Part")
- game.Debris:AddItem(reffect, 5)
- reffect.Size = Vector3.new(math.random(0.6,1),math.random(0.6,1),math.random(0.6,1))
- reffect.Anchored = true
- reffect.CanCollide = false
- reffect.Material = "Plastic"
- reffect.Name = "Run Effect"
- reffect.BrickColor = BrickColor.Random()
- 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)
- local runmesh = Instance.new("SpecialMesh")
- runmesh.MeshType = "FileMesh"
- runmesh.MeshId = "rbxassetid://20329976"
- runmesh.Offset = Vector3.new(0, 0, 0.5)
- runmesh.Parent = reffect
- reffect.Parent = workspace
- coroutine.resume(coroutine.create(function()
- for i=1,10 do
- reffect.Transparency = reffect.Transparency + (0.05 * i)
- runmesh.Offset = runmesh.Offset + Vector3.new(0, 1 + ((speedup) / i), 0)
- runmesh.Scale = runmesh.Scale + Vector3.new((humanoid.WalkSpeed / 1000) * i, (humanoid.WalkSpeed / 1000) * i, (humanoid.WalkSpeed / 1000) * i)
- wait()
- end
- reffect:Destroy()
- end))
- wait()
- until run == false
- humanoid.WalkSpeed = 30
- speedup = 0
- end
- wait()
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- if hover == true then
- repeat
- local effect = Instance.new("Part")
- game.Debris:AddItem(effect, 5)
- effect.Size = Vector3.new(0.1, 0.1, 0.1)
- effect.Anchored = true
- effect.CanCollide = false
- effect.Material = "Plastic"
- effect.Name = "Hover Effect"
- effect.BrickColor = BrickColor.Random()
- 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)
- local ringmesh = Instance.new("SpecialMesh")
- ringmesh.MeshType = "FileMesh"
- ringmesh.MeshId = "rbxassetid://3270017"
- ringmesh.Offset = Vector3.new(0, 0, 0.5)
- ringmesh.Scale = Vector3.new(3,3,3)
- ringmesh.Parent = effect
- effect.Parent = workspace
- character.Head.Velocity = Vector3.new(character.Head.Velocity.x, 50, character.Head.Velocity.z)
- coroutine.resume(coroutine.create(function()
- for i=1,30 do
- effect.Transparency = effect.Transparency + ((0.05 / 3) * i)
- ringmesh.Scale = ringmesh.Scale + Vector3.new((-0.05 * i), (-0.05 * i), (-0.05 * i))
- ringmesh.Offset = ringmesh.Offset + Vector3.new(0, 0, (0.5 * i))
- wait()
- end
- effect:Destroy()
- end))
- wait()
- until hover == false
- end
- wait()
- end
- end))
- -- Rainbow Particle
- coroutine.resume(coroutine.create(function()
- while true do
- for i=1, math.random(1, doeffect) do
- local shine = Instance.new("Part")
- game.Debris:AddItem(shine, 5)
- shine.Size = Vector3.new(math.random(0.6,0.9),math.random(0.6,0.9),math.random(0.6,0.9))
- shine.BrickColor = BrickColor.Random()
- shine.Material = "Neon"
- shine.Anchored = true
- shine.CanCollide = false
- shine.Name = "Idle Effect"
- 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)))
- shine.Parent = workspace
- coroutine.resume(coroutine.create(function()
- for i=1,40 do
- shine.Transparency = shine.Transparency + ((0.05 / 4) * i)
- shine.Size = shine.Size - Vector3.new(((0.05 / 4) * i), ((0.05 / 4) * i), ((0.05 / 4) * i))
- shine.CFrame = shine.CFrame + shine.CFrame.lookVector * (0.3 * (i / (i / 3)))
- shine.CFrame = shine.CFrame + Vector3.new(0,(0.1 * i), 0)
- shine.CFrame = shine.CFrame * CFrame.Angles(math.rad(i * 4), math.rad(i * 4), math.rad(i * 4))
- wait()
- end
- shine:Destroy()
- end))
- end
- wait()
- end
- end))
Add Comment
Please, Sign In to add comment