Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
- local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
- local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
- Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
- Wrapper.CreateObject = function(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;
- Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
- Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
- Wrapper.Sandbox = function(...)
- local Unwrap = {...};
- for obi = 1,#Unwrap do
- local Object = Unwrap[obi];
- if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
- local Type = typeof(Object);local Replacement = Object;
- if (Type == "function") then
- Replacement = function(...)
- local IsRoblox = not (pcall(function() string.dump(Object) end))
- if IsRoblox then
- return Object(Wrapper.Unsandbox(...))
- end
- return Object(Wrapper.Sandbox(...))
- end
- elseif (Type == "table") then
- Replacement = {};
- setmetatable(Replacement, {
- __index = function(self, i)
- return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
- end,
- __newindex = function(self,i,v)
- Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
- end;
- })
- elseif (Type == "Instance") then
- Replacement = newproxy(true);
- local Mt = getmetatable(Replacement);
- Mt.__namecall = function(self, ...)
- local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
- local Rest = nil;pcall(function()Rest = Object[Name];end);
- for g, x in pairs (Wrapper.InstanceMT["GET"]) do
- if (Object:IsA(g) or g == "Global") then
- for t, v in pairs(x) do
- for str in string.gmatch(t .. ",", "(%w+),") do
- if (Name == str) then
- if typeof(v) == "function" then
- return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
- else
- return v;
- end
- end
- end
- end
- end
- end
- if (Rest == nil) then
- if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
- return Wrapper.Sandbox(Object[Name]);
- elseif (typeof(Rest) == "function") then
- return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
- end
- return Wrapper.Sandbox(Object[Name]);
- end
- Mt.__index = function(self, i)
- local Rest = nil;pcall(function()Rest = Object[i];end)
- for g, x in pairs (Wrapper.InstanceMT["GET"]) do
- if (Object:IsA(g) or g == "Global") then
- for t, v in pairs(x) do
- for str in string.gmatch(t .. ",", "(%w+),") do
- if (i == str) then
- if typeof(v) == "function" then
- return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
- else
- return v;
- end
- end
- end
- end
- end
- end
- if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
- if (Rest == nil) then
- if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
- return Wrapper.Sandbox(Object[i]);
- elseif (typeof(Rest) == "function") then
- local isService,Service = pcall(function() return sGame:GetService(i) end)
- if isService and Service then return Wrapper.Sandbox(Service) end
- return function(self, ...)
- return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
- end
- end
- return Wrapper.Sandbox(Object[i]);
- end
- Mt.__newindex = function(self, i, v)
- for g,x in pairs (Wrapper.InstanceMT["SET"]) do
- if (Object:IsA(g)) then
- for t, v in pairs(x) do
- for str in string.gmatch( t .. ",", "(%w+),") do
- if v(Wrapper.Unsandbox(self, i, v)) == true then
- Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
- end
- end
- end
- end
- end
- Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
- end
- Mt.__tostring = function(self) return tostring(Object) end
- --elseif (Type == "") then -- Etc
- end
- Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
- else
- return Wrapper.Fake[Object] or Object;
- end
- end
- return unpack(Unwrap);
- end
- Wrapper.Unsandbox = function(...)
- local Unsandbox = {...};
- for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
- return unpack(Unsandbox)
- end
- Wrapper.Services = {
- ['contextactionservice'] = Wrapper.ContextActionService;
- ["userinputservice"] = Wrapper.UserInputService;
- }
- Wrapper.InstanceMT = {
- ["GET"] = {
- ["Global"] = {
- ["IsFake,isFake"] = function(self)return true;end;
- };
- ["Player"] = {
- ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
- };
- ["Players"] = {
- ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
- };
- ["DataModel"] = {
- ["getService,GetService"] = function(self,service)
- if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
- return Wrapper.Sandbox(sGame:GetService(service))
- end
- };
- ["RunService"] = {
- ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
- }
- };
- ["SET"] = {
- }
- }
- Wrapper.SoundLoudness = {};
- Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= sOwner then return end
- if Input.MouseEvent then
- Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
- elseif Input.Sound then
- if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
- for _,Action in pairs(Wrapper.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
- Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end);
- Wrapper.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" and Args[2]:IsA("Sound") 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]],sOwner.Character)
- Instance = {
- ["new"] = function(Type,Parent)
- local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
- if Type:lower() == "sound" then
- if not Parent then
- Parent = sOwner.Character
- end
- Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
- end
- return Wrapper.Sandbox(Real)
- end
- }
- 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 Inst[x] = y end
- return Inst
- end;end;
- end
- return sLoadLibrary(Library)[Index]
- end})
- end
- return sLoadLibrary(Library)
- end
- owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
- Game= game;Workspace = workspace;
- --The God of Infinity Hope
- --actuary im edge lord lol
- --Added wait motion and teleport, commands
- script.Parent=nil name="Hope"local col=Color3.new(1,0,0)Mute=false local waitanim=0 Stand=false
- Players=game:FindFirstChildOfClass("Players")
- Lighting=game:FindFirstChildOfClass("Lighting")
- PL=Players.LocalPlayer CCamera=workspace.CurrentCamera
- debri=function(Item,Ltime)game:GetService("Debris"):AddItem(Item,Ltime)end
- function Rainbow(part)part.Color=col spawn(function()while part.Parent and wait()do part.Color=col end end)end
- local ang=90 local Mouse=PL:GetMouse()Active=false
- if PL.Character then if PL.Character:FindFirstChild("HumanoidRootPart")~=nil then MP=PL.Character.HumanoidRootPart.CFrame else MP=CFrame.new(0,3,0)end else MP=CFrame.new(0,3,0)end
- local HP=CFrame.new()local TP=CFrame.new()local LLP=CFrame.new()local RLP=CFrame.new()local LRP=CFrame.new()local RRP=CFrame.new()
- function PlaySound(soundid,volume,speed)spawn(function()local s=Instance.new("Sound",workspace)s.SoundId=soundid s.PlayOnRemove=true s.Volume=volume if speed~=nil then s.PlaybackSpeed=speed end s:Play()wait(5)s.Volume=0 s:Remove()end)end
- function CreateMesh(MeshId,Parent)local mesh=Instance.new("SpecialMesh",Parent)mesh.MeshId=MeshId return mesh end
- function so(Id,Volume,spd)
- if PL:FindFirstChild("Sound")then if PL.Sound:FindFirstChildOfClass("Sound")==nil then Instance.new("Sound",PL.Sound)end local smo=PL.Sound:Clone()local e=smo:FindFirstChildOfClass("Sound")e.SoundId=Id e.Volume=Volume if spd~=nil then e.PlaybackSpeed=spd e:Play()smo.Parent=workspace debri(smo,7)end
- else local m=Instance.new("Model",PL)m.Name="Sound"Instance.new("Sound",m)local smo=m:Clone()local e=smo:FindFirstChildOfClass("Sound")e.SoundId=Id e.Volume=Volume if spd~=nil then e.PlaybackSpeed=spd debri(smo,7)end
- end
- end
- function CreatePart(Material,Color,Anchored,Collide,Size,Shape)
- local part=Instance.new("Part")part.Name=name part.Material=Material if Color=="Rainbow"then Rainbow(part)else part.Color=Color end if Anchored then a(part)end part.CanCollide=Collide part.Size=Size if Shape~=nil then part.Shape=Shape end
- part.Locked=true return part
- end
- function CreateExplosion(BlastPressure,BlastRadius,Position)
- if PL:FindFirstChild("Explosion")then if PL.Explosion:FindFirstChildOfClass("Explosion")==nil then Instance.new("Explosion",PL.Explosion)end local exp=PL.Explosion:Clone()local e=exp:FindFirstChildOfClass("Explosion")e.Position=Position e.BlastRadius=BlastRadius e.BlastPressure=BlastPressure game:GetService("Debris"):AddItem(exp,5)exp.Parent=workspace return e
- else local m=Instance.new("Model",PL)m.Name="Explosion"Instance.new("Explosion",m)local exp=m:Clone()local e=exp:FindFirstChildOfClass("Explosion")e.BlastRadius=BlastRadius e.BlastPressure=BlastPressure e.Position=Position game:GetService("Debris"):AddItem(exp,5)exp.Parent=workspace return e
- end
- end
- function FindHumanoid(Part)
- local humanoid=nil
- if tostring(Part.Parent)~=PL.Name and Part.Parent
- then if Part.Parent:FindFirstChildOfClass("Humanoid")~=nil then humanoid=Part.Parent:FindFirstChildOfClass("Humanoid")else if Part.Parent.Parent then if Part.Parent.Parent:FindFirstChildOfClass("Humanoid")and Part.Parent.Parent.Name~=PL.Name then humanoid=Part.Parent.Parent:FindFirstChildOfClass("Humanoid")end end end
- end
- return humanoid
- end
- function Getidk(Position1,Position2)local part=Instance.new("Part")part.CFrame=CFrame.new(Position1,Position2)debri(part,.1)return part.CFrame end
- function a(part)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)end
- function mov(part,vec3)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=vec3 end
- function shoot(part,position,speed)if typeof(position)=='CFrame' then position=position.p end part.CFrame=CFrame.new(part.Position,position)mov(part,part.Position-(part.CFrame*CFrame.new(0,0,speed)).p)end
- function Animation(table,speed)HP=HP:lerp(table[1],speed)TP=TP:lerp(table[2],speed)RRP=RRP:lerp(table[3],speed)LRP=LRP:lerp(table[4],speed)RLP=RLP:lerp(table[5],speed)LLP=LLP:lerp(table[6],speed)end
- Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },1)
- add=5 flg5=1 cR=255 cG=0 cB=0
- walkW=false walkA=false walkS=false walkD=false keyR=false keyF=false
- sys=coroutine.create(function()
- local c=0
- while wait()do
- if not Active then Stand=false else waitanim=0 end
- waitanim=waitanim+1
- if cR>=255 then flg5=1 end
- if cG>=255 then flg5=2 end
- if cB>=255 then flg5=3 end
- if flg5==1 then cR=cR-add cG=cG+add end
- if flg5==2 then cG=cG-add cB=cB+add end
- if flg5==3 then cB=cB-add cR=cR+add end
- col=Color3.fromRGB(cR,cG,cB)
- if PL:FindFirstChild("Music")then if PL.Music.Playing then if Mute then PL.Music.Volume=0 PL.Music.PlaybackSpeed=0 else PL.Music.Volume=5 PL.Music.PlaybackSpeed=1 end else PL.Music.Looped=true PL.Music.Volume=5 PL.Music.PlaybackSpeed=1 PL.Music.SoundId="rbxassetid://306154368"PL.Music:Play()end
- else if not Mute then local s=Instance.new("Sound",PL)s.SoundId="rbxassetid://306154368"s.Name="Music"s.Volume=5 s.Looped=true s:Play()end end
- if PL.Character then PL.Character:Destroy()end
- local model=Instance.new("Model")model.Name=tostring(PL)
- local Head=Instance.new("Part",model)local mesh=Instance.new("SpecialMesh",Head)Head.Size=Vector3.new(2,1,1)mesh.MeshType="Head"mesh.Scale=Vector3.new(1.25,1.25,1.25)Head.Color=col Head.Transparency=.8 Head.Anchored=true Head.CanCollide=false debri(Head,5)
- local Torso=Instance.new("Part",model)Torso.Material="Neon"Torso.Size=Vector3.new(2,2,1)Torso.Orientation=Vector3.new(0,0,0)Torso.Color=col Torso.Transparency=.8 Torso.Anchored=true Torso.CanCollide=false debri(Torso,5)
- local HRPart=Instance.new("Part",model)HRPart.Material="Neon"HRPart.Size=Vector3.new(2,2,1)HRPart.Orientation=Vector3.new(0,0,0)HRPart.Color=col HRPart.Transparency=1 HRPart.Anchored=true HRPart.CanCollide=false
- local LLeg=Instance.new("Part",model)LLeg.Material="Neon"LLeg.Size=Vector3.new(1,2,1)LLeg.Orientation=Vector3.new(0,0,0)LLeg.Color=col LLeg.Transparency=.8 LLeg.Anchored=true LLeg.CanCollide=false debri(LLeg,5)
- local RLeg=Instance.new("Part",model)RLeg.Material="Neon"RLeg.Size=Vector3.new(1,2,1)RLeg.Orientation=Vector3.new(0,0,0)RLeg.Color=col RLeg.Transparency=.8 RLeg.Anchored=true RLeg.CanCollide=false debri(RLeg,5)
- local LArm=Instance.new("Part",model)LArm.Material="Neon"LArm.Size=Vector3.new(1,2,1)LArm.Orientation=Vector3.new(0,0,0)LArm.Color=col LArm.Transparency=.8 LArm.Anchored=true LArm.CanCollide=false debri(LArm,5)
- local RArm=Instance.new("Part",model)RArm.Material="Neon"RArm.Size=Vector3.new(1,2,1)RArm.Orientation=Vector3.new(0,0,0)RArm.Color=col RArm.Transparency=.8 RArm.Anchored=true RArm.CanCollide=false debri(RArm,5)
- local tt=Instance.new("BillboardGui",Head)tt.Size=UDim2.new(1000,0,2,0)tt.AlwaysOnTop=true tt.StudsOffset=Vector3.new(0,math.sin(c)/3+1.25,0)
- local te=Instance.new("TextLabel",tt)te.Size=UDim2.new(1,0,1,0)te.Text="The God of Infinite Hope"te.BackgroundTransparency=1 te.FontSize="Size24"te.TextScaled=true te.TextColor3=col te.Font="Fantasy"
- HRPart.Name="HumanoidRootPart"Head.Name="Head"Torso.Name="Torso"LLeg.Name="Left Leg"RLeg.Name="Right Leg"LArm.Name="Left Arm"RArm.Name="Right Arm"
- HRPart.CFrame=MP
- CCamera.CameraSubject=HRPart
- Torso.CFrame=MP*TP
- Head.CFrame=Torso.CFrame*HP
- LLeg.CFrame=Torso.CFrame*RRP
- RLeg.CFrame=Torso.CFrame*LRP
- LArm.CFrame=Torso.CFrame*RLP
- RArm.CFrame=Torso.CFrame*LLP
- model.Parent=workspace
- PL:FindFirstChildOfClass("Backpack"):ClearAllChildren()
- c=c+.1
- if not Stand then if walkA or walkD or walkS or walkW then MP=CFrame.new(MP.p,Vector3.new(CCamera.CoordinateFrame.x,MP.y,CCamera.CoordinateFrame.z))waitanim=0 else
- if not Active then if waitanim<120 then Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },.1)else Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,math.sin(c)/5,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.4,.3,.5)*CFrame.Angles(-1.5,0,math.rad(80)),
- CFrame.new(.4,.3,.5)*CFrame.Angles(-1.5,0,math.rad(-80)),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1)
- },.1)end
- end end end
- if walkW and not Stand then MP=MP*CFrame.new(0,0,1)if not Active then Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,0,0)*CFrame.Angles(1,0,0),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,-.5),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.5),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.3),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.3)
- },.1)end end
- if walkS and not Stand then MP=MP*CFrame.new(0,0,-1)if not Active then Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,0,0)*CFrame.Angles(-1,0,0),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,-.5),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.5),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.3),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.3)
- },.1)end end
- if walkA and not Stand then MP=MP*CFrame.new(1,0,0)end
- if walkD and not Stand then MP=MP*CFrame.new(-1,0,0)end
- if keyR and not Stand then MP=MP*CFrame.new(0,1,0)end
- if keyF and not Stand then MP=MP*CFrame.new(0,-1,0)end
- if HRPart then HRPart:Remove()end
- spawn(function()for i=1,10 do local c=model:GetChildren()for i2=1,#c do c[i2].Transparency=.8+i/50 te.TextTransparency=i/10 end wait()end model:Remove()end)
- debri(model,5)
- end
- end)
- coroutine.resume(sys)
- function Check(part)if part.Name~=name and tostring(part.Parent)~=PL.Name then return true else return false end end
- --so("rbxassetid://341336144",5,1)so("rbxassetid://341336159",5,1)
- game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
- if not Gpe then
- if Key.KeyCode==Enum.KeyCode.Z and not Active then
- local shot=coroutine.create(
- function()local pos=MP
- so("rbxassetid://341336159",5,1)
- local idk5=CreatePart("Neon","Rainbow",false,false,Vector3.new(5,5,5),"Ball")idk5.CFrame=pos+Vector3.new(0,15,0)idk5.Parent=workspace
- idk5.Touched:connect(function(pt)if Check(pt)then local pos2=idk5.CFrame idk5:Remove()so("rbxassetid://341336499",5,1)
- local p=CreatePart("Neon","Rainbow",true,false,Vector3.new(0),"Ball")p.CFrame=pos2 p.Parent=workspace
- local ef1=CreatePart("Neon","Rainbow",true,false,Vector3.new(),"Ball")local m1=CreateMesh("rbxassetid://3270017",ef1)ef1.CFrame=pos2*CFrame.Angles(math.rad(math.random(360)),math.rad(math.random(360)),math.rad(math.random(360)))
- local ef2=CreatePart("Neon","Rainbow",true,false,Vector3.new(),"Ball")local m2=CreateMesh("rbxassetid://3270017",ef2)ef2.CFrame=pos2*CFrame.Angles(math.rad(math.random(360)),math.rad(math.random(360)),math.rad(math.random(360)))
- ef1.Parent=workspace ef2.Parent=workspace
- spawn(function()for i=1,25 do p.Size=Vector3.new(i*2+5,i*2+5,i*2+5)p.Transparency=i/25 p.CFrame=pos2 m1.Scale=Vector3.new(i*8,i*8,5)m2.Scale=m1.Scale ef1.Transparency=i/15 ef2.Transparency=i/15 wait()end p:Remove()ef1:Remove()ef2:Remove()end)
- p.Touched:connect(function(pt)if Check(pt)then if pt.Parent then pt:BreakJoints()end end end)
- end end)debri(idk5,30)
- shoot(idk5,Mouse.hit,40)end)
- coroutine.resume(shot)
- elseif Key.KeyCode==Enum.KeyCode.X and not Active then
- local lightning=coroutine.create(function()
- local pos=CFrame.new(Mouse.Hit.p) local d=10
- local part={}
- local exp=CreateExplosion(1/0,25,pos.p)exp.Visible=false
- exp.Hit:connect(function(pt)if Check(pt)then pt.Anchored=false end end)
- local ef=CreatePart("Neon","Rainbow",true,false,Vector3.new(3,3,3),"Ball")ef.Position=pos.p ef.Parent=workspace ef.Anchored=true
- spawn(function()for i=1,30 do ef.Transparency=i/30 ef.Size=Vector3.new(i+3,i+3,i+3)wait()end ef:Remove()end)
- for i=1,50 do
- d=d+.8
- part[i]=Instance.new("Part")part[i].Name=name part[i].Size=Vector3.new(2,10,2)part[i].CFrame=pos part[i].Material="Neon"part[i].Parent=workspace part[i].Anchored=true
- pos=part[i].CFrame*CFrame.new(0,9,0)*CFrame.Angles(math.rad(math.random(d)-math.random(d)),math.rad(math.random(d)-math.random(d)),math.rad(math.random(d)-math.random(d)))
- end
- so("rbxassetid://341336446",2,1)so("rbxassetid://341336459",2,1)
- for i2=1,25 do
- for i=1,50 do
- part[i].Transparency=i2/25
- part[i].Color=col
- end
- wait()
- end
- for i=1,50 do
- part[i]:Remove()
- end end)
- coroutine.resume(lightning)
- elseif Key.KeyCode==Enum.KeyCode.T and not Active then
- so("rbxassetid://2767090",2,1)
- MP=CFrame.new(Mouse.Hit.p)
- end
- end
- end)
- Mouse.KeyDown:connect(function(key)
- if key=="w"then
- walkW=true
- Mouse.KeyUp:connect(function(key)if key=="w" then walkW=false end end)
- end
- if key=="s"then
- walkS=true
- Mouse.KeyUp:connect(function(key)if key=="s" then walkS=false end end)
- end
- if key=="a"then
- walkA=true
- Mouse.KeyUp:connect(function(key)if key=="a" then walkA=false end end)
- end
- if key=="d"then
- walkD=true
- Mouse.KeyUp:connect(function(key)if key=="d" then walkD=false end end)
- end
- if key=="r"then
- keyR=true waitanim=0
- Mouse.KeyUp:connect(function(key)if key=="r" then keyR=false end end)
- end
- if key=="f"then
- keyF=true waitanim=0
- Mouse.KeyUp:connect(function(key)if key=="f" then keyF=false end end)
- end
- end)
- NormalAttack=0
- Mouse.Button1Down:connect(function()
- if not Active then
- Active=true
- if NormalAttack==0 then
- NormalAttack=1
- Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(-1.5,0,0)*CFrame.Angles(.5,0,-1),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },1)
- for i=1,40 do
- Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,0,0)*CFrame.Angles(0,-4,0),
- CFrame.new(-1.7,.5,0)*CFrame.Angles(.5,0,-1.5),
- CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },.075)if i%4==0 then wait()end
- local p=Instance.new("Part")p.CFrame=(MP*TP)*RRP*CFrame.new(0,-7,0)a(p)p.CanCollide=false local m=Instance.new("SpecialMesh",p)m.MeshType="Sphere"
- p.Material="Neon"p.Name=name p.Size=Vector3.new(1,12,1)p.Color=col p.Touched:connect(function(pt)if FindHumanoid(pt)then FindHumanoid(pt).Health=nil end end)
- spawn(function()for i=1,10 do p.Transparency=i/10 wait()end p:Remove()end)
- p.Parent=workspace
- end
- elseif NormalAttack==1 then
- NormalAttack=0
- Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.5,0,0)*CFrame.Angles(.5,0,1),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },1)
- for i=1,40 do
- Animation({
- CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
- CFrame.new(0,0,0)*CFrame.Angles(0,4,0),
- CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),
- CFrame.new(1.7,.5,0)*CFrame.Angles(.5,0,1.5),
- CFrame.new(.5,-2,0)*CFrame.Angles(0,0,0),
- CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,0)
- },.075)if i%4==0 then wait()end
- local p=Instance.new("Part")p.CFrame=(MP*TP)*LRP*CFrame.new(0,-7,0)a(p)p.CanCollide=false local m=Instance.new("SpecialMesh",p)m.MeshType="Sphere"
- p.Material="Neon"p.Name=name p.Size=Vector3.new(1,12,1)p.Color=col p.Touched:connect(function(pt)if FindHumanoid(pt)then FindHumanoid(pt).Health=nil end end)
- spawn(function()for i=1,10 do p.Transparency=i/10 wait()end p:Remove()end)
- p.Parent=workspace
- end
- end
- Active=false
- end
- end)
- function FindCharacter(Text,Number)Text=string.sub(Text,Number+2)local Ret={}local c=Players:GetChildren()local co=1 for i=1,#c do if string.find(tostring(c[i]),Text,0,true)then Ret[co]=c[i]co=co+1 end end return Ret end
- function FiCo(Text,Command)if string.find(Text,Command,0,true)~=nil then return true else return false end end function GAf(Text,Number)return string.sub(Text,Number+2)end
- function ChatCommands(ctext)
- if ctext=="s.mute"then if Mute then Mute=false print("Unmuted Music")else Mute=true print("Muted Music")end end if ctext=="s.to0"then MP=CFrame.new()print("Teleport to 0,0,0")end
- if FiCo(ctext,"s.tpto")then local t=GAf(ctext,6)local ch=FindCharacter(ctext,6)for i=1,#ch do if ch[i].Character then if ch[i].Character:FindFirstChild("HumanoidRootPart")then MP=CFrame.new(ch[i].Character.HumanoidRootPart.Position)end end end end
- end
- spawn(function()while wait()do if PL:FindFirstChildOfClass("PlayerGui"):FindFirstChild(name)==nil then local idk=Instance.new("ScreenGui",PL:FindFirstChildOfClass("PlayerGui"))idk.ResetOnSpawn=false local t=Instance.new("TextBox",idk)t.Size=UDim2.new(.128,0,0,22)
- t.Position=UDim2.new(.5-.064,0,0,0)t.BackgroundTransparency=.5 t.Text="Put commands here"t.BorderSizePixel=0 t.TextXAlignment="Left"
- spawn(function()while wait()do t.BackgroundColor3=col if t.Parent then if t.Parent.Parent then else break end else break end end end)
- t.TextStrokeTransparency=0 t.TextColor3=Color3.new(1,1,1)t.TextScaled=true t.TextSize=15 idk.Name=name
- t.FocusLost:connect(function(ep)if ep then ChatCommands(t.Text)t.Text="Put commands here"end end)
- function commandinputstart(actionName,userInputState,inputObject)
- if userInputState==Enum.UserInputState.Begin then
- wait()t:CaptureFocus()
- end
- end
- game.ContextActionService:BindAction("CommandInputStart",commandinputstart,false,Enum.KeyCode.LeftBracket)
- end end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement