Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end -- // God Of Destruction Beerus \\ --
- -- // Created by batnam123 \\ --
- local Player = game.Players.LocalPlayer
- local jun = Player
- local mouse = jun:GetMouse()
- local rs = game:GetService("RunService")
- local cam = game.Workspace.CurrentCamera
- local LS = jun.Character.Torso["Left Shoulder"]
- local RS = jun.Character.Torso["Right Shoulder"]
- local LSC0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local LSC1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local mad = false
- local angered = false
- local fpower = false
- local tail = false
- local studio = false
- local destroyed = false
- local running = false
- local Colors = {
- Skin = "Royal purple";
- Face = 1;
- Text = "Royal purple"
- }
- local Sounds = {
- -- // Music
- Theme = 951257407;
- Mad = 559990619;
- Hakai = 159882578;
- }
- local Keys = {
- Up = "q"; -- // Ascend
- Down = "e"; -- // Deascend
- Aura = "r"; -- Aura Toggle
- Tail = "f"; -- Tail Control Toggle
- Hakai = "v" -- Destroy Move
- }
- function ResetWelds()
- LS.C0 = LSC0
- LS.C1 = LSC1
- end
- local fold = jun.Character.Torso
- local vol = 10
- -- [[ Music ]] --
- local theme = Instance.new("Sound", fold)
- theme.Volume = vol
- theme.Looped = true
- theme.SoundId = "rbxassetid://"..Sounds.Theme
- local mad1 = Instance.new("Sound", fold)
- mad1.Volume = vol
- mad1.Looped = true
- mad1.SoundId = "rbxassetid://"..Sounds.Mad
- local hakai = Instance.new("Sound", fold)
- hakai.Volume = vol
- hakai.Looped = false
- hakai.SoundId = "rbxassetid://"..Sounds.Hakai
- if rs:IsStudio() then
- studio = true
- else
- studio = false
- end
- function Music_Off()
- theme:Stop()
- mad1:Stop()
- hakai:Stop()
- end
- function DestroyDMG(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- local total = math.huge
- if h ~= nil then
- local hax = h.Parent:FindFirstChild("ForceField")
- if hax == nil and h.Health > 0 and hit.Parent.Name ~= jun.Name then
- h.Health = h.Health - total
- end
- end
- end
- jun.Character.Humanoid.Health = math.huge
- jun.Character.Humanoid.MaxHealth = math.huge
- -- [[ Stuff ]] --
- function Clothing()
- for u, c in pairs(jun.Character:GetChildren()) do
- if c:IsA('Shirt') or c:IsA('Pants') then
- c:Remove()
- end
- end
- local s = Instance.new("Shirt", jun.Character)
- s.ShirtTemplate = "rbxassetid://530626082" -- "rbxassetid://539796446"
- local p = Instance.new("Pants", jun.Character)
- p.PantsTemplate = "rbxassetid://539796446" --"rbxassetid://530626082"
- end
- function Skin()
- if studio == false then
- Clothing()
- local Color = Colors.Skin
- local BodyCo = jun.Character['Body Colors']
- BodyCo.HeadColor = BrickColor.new(Color)
- BodyCo.TorsoColor = BrickColor.new(Color)
- BodyCo.LeftArmColor = BrickColor.new(Color)
- BodyCo.RightArmColor = BrickColor.new(Color)
- BodyCo.LeftLegColor = BrickColor.new(Color)
- BodyCo.RightLegColor = BrickColor.new(Color)
- elseif studio == true then
- print("Skin doesn't work in studio.")
- end
- end
- function Tail()
- local Parts = {}
- local num = 30
- local s = .3
- local fold = Instance.new("Folder", jun.Character.Torso)
- fold.Name = "Tail_Storage"
- for i = 1, num do
- local x = Instance.new("Part", fold)
- x.Size = Vector3.new(s,s,s)
- x.Anchored = true
- x.CanCollide = false
- x.CFrame = jun.Character.Torso.CFrame
- x.TopSurface = "Smooth"
- x.BottomSurface = "Smooth"
- x.Material = "SmoothPlastic"
- x.BrickColor = BrickColor.new(Colors.Skin)
- table.insert(Parts, x)
- end
- rs.RenderStepped:connect(function()
- local out = .95
- local out2 = .75
- local flow = cam.CoordinateFrame.lookVector
- local f1 = flow.X
- local o = .03
- local ang = CFrame.Angles(-o,f1,0)
- local ang2 = CFrame.Angles(-o,0,0)
- local new = CFrame.new(0,0,0.15)
- for i = 1, #Parts do
- if i == 1 then
- Parts[i].CFrame = Parts[i].CFrame:lerp(jun.Character.Torso.CFrame * CFrame.new(0,-.8,0), out)
- else
- if tail == true then
- Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i-1].CFrame * new * ang, out2)
- elseif tail == false then
- Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i-1].CFrame * new * ang2, out2)
- end
- end
- end
- end)
- end
- function Hair()
- Skin()
- for u, c in pairs(jun.Character:GetChildren()) do
- if c:IsA('Accessory') or c:IsA('Hat') then
- c:Remove()
- end
- end
- jun.Character.Head.face.Texture = "rbxassetid://672580902"
- local x = Instance.new("Part", jun.Character)
- x.Name = "Ears"
- x.CanCollide = false
- x.Anchored = false
- x.Size = Vector3.new(1, 1.6, 1)
- x.BottomSurface = "Smooth"
- x.TopSurface = "Smooth"
- x.Locked = true
- x.BrickColor = BrickColor.new(Colors.Skin)
- local Weld = Instance.new("Weld", jun.Character.Torso)
- Weld.Part0 = jun.Character.Head
- Weld.Part1 = x
- Weld.C0 = CFrame.new(0,.6,0) * CFrame.Angles(0,0,0)
- local M = Instance.new("SpecialMesh", x)
- M.MeshType = "FileMesh"
- M.MeshId = "rbxassetid://1072759"
- M.TextureId = ""
- end
- function Billboard()
- local Rank = "The God Of Destruction" -- Rank of Name
- local text = "Beerus" -- // Name Of Person
- local TrueFont = Enum.Font.SciFi
- local TrueSize = Enum.FontSize.Size96
- local Bill = Instance.new("BillboardGui",jun.Character.Head)
- Bill.Size = UDim2.new(15,0,2.2,0)
- Bill.Name = "Health Display"
- Bill.StudsOffset = Vector3.new(0,3,0)
- Bill.AlwaysOnTop = true
- Bill.Enabled = true
- -- [[ Main Frame ]] --
- local Main = Instance.new("Frame", Bill)
- Main.BackgroundColor3 = Color3.new(0, 0, 0)
- Main.BackgroundTransparency = 1
- Main.Size = UDim2.new(1,0,1,0)
- -- [[ Text ]] --
- local T1 = Instance.new("TextLabel", Main)
- T1.BackgroundTransparency = 1
- T1.Size = UDim2.new(1,0,.5,0)
- T1.Font = TrueFont
- T1.Text = text
- T1.TextScaled = true
- T1.TextColor3 = BrickColor.new(Colors.Text).Color
- T1.FontSize = TrueSize
- T1.TextYAlignment = Enum.TextYAlignment.Center
- local T2 = Instance.new("TextLabel", T1)
- T2.BackgroundTransparency = 1
- T2.Size = UDim2.new(1,0,1,0)
- T2.Position = UDim2.new(0,0,1,0)
- T2.Font = TrueFont
- T2.Text = Rank
- T2.TextScaled = true
- T2.TextColor3 = BrickColor.new(Colors.Text).Color
- T2.FontSize = TrueSize
- T2.TextYAlignment = Enum.TextYAlignment.Center
- theme:Play()
- Hair()
- Tail()
- end
- Billboard()
- function Mad()
- Music_Off()
- mad1:Play()
- mad = true
- -- // Aura
- local p = Instance.new("ParticleEmitter", jun.Character.Torso)
- p.Name = "Aura"
- p.Texture = "rbxassetid://358965396"
- p.EmissionDirection = "Top"
- p.LockedToPart = true
- p.Color = ColorSequence.new(BrickColor.new(Colors.Skin).Color)
- p.LightEmission = 1
- p.Size = NumberSequence.new(0,10)
- p.Transparency = NumberSequence.new(.55)
- p.Lifetime = NumberRange.new(1)
- p.Rate = 5
- p.Speed = NumberRange.new(1)
- end
- function Destroy()
- if destroyed == false then
- destroyed = true
- for i = 1, 5 do wait()
- LS.C0 = LS.C0 * CFrame.Angles(0,0,-.3)
- end
- hakai:Play()
- local connect = jun.Character["Left Arm"].Touched:connect(DestroyDMG)
- repeat wait() until hakai.TimePosition >= 0.75
- connect:disconnect()
- ResetWelds()
- destroyed = false
- end
- end
- function Base()
- Music_Off()
- theme:Play()
- mad = false
- angered = false
- fpower = false
- if jun.Character.Torso:FindFirstChild("Aura") ~= nil then
- jun.Character.Torso:FindFirstChild("Aura"):Remove()
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == Keys.Hakai then
- Destroy()
- end
- if key == Keys.Up and mad == false then
- Mad()
- elseif key == Keys.Down then
- Base()
- end
- if key == Keys.Tail and tail == false then
- tail = true
- elseif key == Keys.Tail and tail == true then
- tail = false
- end
- if key:byte() == 48 and running == false then
- jun.Character.Humanoid.WalkSpeed = 100
- running = true
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:byte() == 48 and running == true then
- jun.Character.Humanoid.WalkSpeed = 16
- running = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement