View difference between Paste ID: VyU2hA9x and VfguTg7i
SHOW: | | - or go back to the newest paste.
1-
-- // God Of Destruction Beerus \\ --
1+
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
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 \\ --
6
  -- // Created by batnam123 \\ --
7
8
local Player = game.Players.LocalPlayer
9
local jun = Player
10
local mouse = jun:GetMouse()
11
local rs = game:GetService("RunService")
12
local cam = game.Workspace.CurrentCamera
13
14
local LS = jun.Character.Torso["Left Shoulder"]
15
local RS = jun.Character.Torso["Right Shoulder"]
16
17
local LSC0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
18
local LSC1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
19
20
local mad = false
21
local angered = false
22
local fpower = false
23
local tail = false
24
local studio = false
25
local destroyed = false
26
local running = false
27
28
local Colors = {
29
	Skin = "Royal purple";
30
	Face = 1;
31
	Text = "Royal purple"
32
}
33
34
35
local Sounds = {
36
	
37
	-- // Music
38
	Theme = 951257407;
39
	Mad = 559990619;
40
	Hakai = 159882578;
41
}
42
43
local Keys = {
44
	Up = "q"; -- // Ascend
45
	Down = "e"; -- // Deascend
46
	Aura = "r"; -- Aura Toggle
47
	Tail = "f"; -- Tail Control Toggle
48
	Hakai = "v" -- Destroy Move
49
}
50
51
52
function ResetWelds()
53
	LS.C0 = LSC0
54
	LS.C1 = LSC1
55
end
56
57
58
local fold = jun.Character.Torso
59
local vol = 10
60
          -- [[ Music ]] --
61
local theme = Instance.new("Sound", fold)
62
theme.Volume = vol
63
theme.Looped = true
64
theme.SoundId = "rbxassetid://"..Sounds.Theme
65
66
67
local mad1 = Instance.new("Sound", fold)
68
mad1.Volume = vol
69
mad1.Looped = true
70
mad1.SoundId = "rbxassetid://"..Sounds.Mad
71
72
local hakai = Instance.new("Sound", fold)
73
hakai.Volume = vol
74
hakai.Looped = false
75
hakai.SoundId = "rbxassetid://"..Sounds.Hakai
76
77
if rs:IsStudio() then
78
 studio = true
79
else
80
	studio = false
81
end
82
83
function Music_Off()
84
	theme:Stop()
85
	mad1:Stop()
86
	hakai:Stop()
87
end
88
89
90
91
function DestroyDMG(hit)
92
	local h = hit.Parent:FindFirstChild("Humanoid")
93
	local total = math.huge
94
	if h ~= nil then
95
        local hax = h.Parent:FindFirstChild("ForceField")
96
	if hax == nil and h.Health > 0 and hit.Parent.Name ~= jun.Name then
97
        h.Health = h.Health - total
98
	end
99
	end
100
end
101
102
jun.Character.Humanoid.Health = math.huge
103
jun.Character.Humanoid.MaxHealth = math.huge
104
105
 -- [[ Stuff ]] --
106
107
function Clothing()
108
	for u, c in pairs(jun.Character:GetChildren()) do
109
if c:IsA('Shirt') or c:IsA('Pants') then
110
c:Remove()
111
end
112
end
113
	local s = Instance.new("Shirt", jun.Character)
114
	s.ShirtTemplate = "rbxassetid://530626082" --  "rbxassetid://539796446"
115
	
116
    local p = Instance.new("Pants", jun.Character)
117
	p.PantsTemplate = "rbxassetid://539796446" --"rbxassetid://530626082"
118
end
119
120
function Skin()
121
	if studio == false then
122
		Clothing()
123
	local Color = Colors.Skin
124
	local BodyCo = jun.Character['Body Colors']
125
	BodyCo.HeadColor = BrickColor.new(Color)
126
	BodyCo.TorsoColor = BrickColor.new(Color)
127
	BodyCo.LeftArmColor = BrickColor.new(Color)
128
	BodyCo.RightArmColor = BrickColor.new(Color)
129
	BodyCo.LeftLegColor = BrickColor.new(Color)
130
	BodyCo.RightLegColor = BrickColor.new(Color)
131
elseif studio == true then
132
	print("Skin doesn't work in studio.")
133
	end
134
end
135
136
137
function Tail()
138
local Parts = {}
139
local num = 30
140
local s = .3
141
142
local fold = Instance.new("Folder", jun.Character.Torso)
143
fold.Name = "Tail_Storage"
144
145
for i = 1, num do
146
local x = Instance.new("Part", fold)
147
x.Size = Vector3.new(s,s,s)
148
x.Anchored = true
149
x.CanCollide = false
150
x.CFrame = jun.Character.Torso.CFrame
151
x.TopSurface = "Smooth"
152
x.BottomSurface = "Smooth"
153
x.Material = "SmoothPlastic"
154
x.BrickColor = BrickColor.new(Colors.Skin)
155
156
table.insert(Parts, x)
157
end
158
159
rs.RenderStepped:connect(function()
160
local out = .95
161
local out2 = .75
162
163
local flow = cam.CoordinateFrame.lookVector
164
local f1 = flow.X
165
166
local o = .03
167
168
local ang = CFrame.Angles(-o,f1,0)
169
local ang2 = CFrame.Angles(-o,0,0)
170
local new = CFrame.new(0,0,0.15)
171
172
for i = 1, #Parts do
173
 if i == 1 then
174
Parts[i].CFrame = Parts[i].CFrame:lerp(jun.Character.Torso.CFrame * CFrame.new(0,-.8,0), out)
175
else
176
if tail == true then
177
Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i-1].CFrame * new * ang, out2)
178
elseif tail == false then
179
Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i-1].CFrame * new * ang2, out2)
180
end
181
end
182
end
183
end)
184
end
185
186
function Hair()
187
	Skin()
188
for u, c in pairs(jun.Character:GetChildren()) do
189
if c:IsA('Accessory') or c:IsA('Hat') then
190
c:Remove()
191
end
192
end
193
194
jun.Character.Head.face.Texture = "rbxassetid://672580902"
195
local x = Instance.new("Part", jun.Character)
196
x.Name = "Ears"
197
x.CanCollide = false
198
x.Anchored = false
199
x.Size = Vector3.new(1, 1.6, 1) 
200
x.BottomSurface = "Smooth"
201
x.TopSurface = "Smooth"
202
x.Locked = true
203
x.BrickColor = BrickColor.new(Colors.Skin)
204
205
206
local Weld = Instance.new("Weld", jun.Character.Torso)
207
Weld.Part0 = jun.Character.Head
208
Weld.Part1 = x
209
Weld.C0 = CFrame.new(0,.6,0) * CFrame.Angles(0,0,0)
210
		
211
local M = Instance.new("SpecialMesh", x)
212
M.MeshType = "FileMesh"
213
M.MeshId = "rbxassetid://1072759"
214
M.TextureId = ""
215
216
end
217
218
function Billboard()
219
	local Rank = "The God Of Destruction" -- Rank of Name
220
local text = "Beerus" -- // Name Of Person
221
local TrueFont = Enum.Font.SciFi
222
local TrueSize = Enum.FontSize.Size96
223
224
local Bill = Instance.new("BillboardGui",jun.Character.Head)
225
Bill.Size = UDim2.new(15,0,2.2,0)
226
Bill.Name = "Health Display"
227
Bill.StudsOffset = Vector3.new(0,3,0)
228
Bill.AlwaysOnTop = true
229
Bill.Enabled = true
230
231
-- [[ Main Frame ]] --
232
local Main = Instance.new("Frame", Bill)
233
Main.BackgroundColor3 = Color3.new(0, 0, 0)
234
Main.BackgroundTransparency = 1
235
Main.Size = UDim2.new(1,0,1,0)
236
237
-- [[ Text  ]] --
238
local T1 = Instance.new("TextLabel", Main)
239
T1.BackgroundTransparency = 1
240
T1.Size = UDim2.new(1,0,.5,0)
241
T1.Font = TrueFont
242
T1.Text = text
243
T1.TextScaled = true
244
T1.TextColor3 = BrickColor.new(Colors.Text).Color
245
T1.FontSize = TrueSize
246
T1.TextYAlignment = Enum.TextYAlignment.Center
247
248
local T2 = Instance.new("TextLabel", T1)
249
T2.BackgroundTransparency = 1
250
T2.Size = UDim2.new(1,0,1,0)
251
T2.Position = UDim2.new(0,0,1,0)
252
T2.Font = TrueFont
253
T2.Text = Rank
254
T2.TextScaled = true
255
T2.TextColor3 = BrickColor.new(Colors.Text).Color
256
T2.FontSize = TrueSize
257
T2.TextYAlignment = Enum.TextYAlignment.Center
258
theme:Play()
259
260
Hair()
261
Tail()
262
end
263
264
265
Billboard()
266
267
function Mad()
268
	Music_Off()
269
	mad1:Play()
270
	mad = true
271
	
272
	 -- // Aura
273
	local p = Instance.new("ParticleEmitter", jun.Character.Torso)
274
	p.Name = "Aura"
275
	p.Texture = "rbxassetid://358965396"
276
	p.EmissionDirection = "Top"
277
	p.LockedToPart = true
278
	p.Color = ColorSequence.new(BrickColor.new(Colors.Skin).Color)
279
	p.LightEmission = 1
280
	p.Size = NumberSequence.new(0,10)
281
	p.Transparency = NumberSequence.new(.55)
282
	p.Lifetime = NumberRange.new(1)
283
	p.Rate = 5
284
	p.Speed = NumberRange.new(1)
285
end
286
287
function Destroy()
288
	if destroyed == false then
289
		destroyed = true
290
	for i = 1, 5 do wait()
291
		LS.C0 = LS.C0 * CFrame.Angles(0,0,-.3)
292
	end
293
	hakai:Play()
294
	local connect = jun.Character["Left Arm"].Touched:connect(DestroyDMG)
295
	repeat wait() until hakai.TimePosition >= 0.75
296
	connect:disconnect()
297
	ResetWelds()
298
	destroyed = false
299
	end
300
end
301
302
function Base()
303
	Music_Off()
304
	theme:Play()
305
	mad = false
306
	angered = false
307
	fpower = false
308
	if jun.Character.Torso:FindFirstChild("Aura") ~= nil then
309
		jun.Character.Torso:FindFirstChild("Aura"):Remove()
310
	end
311
end
312
313
mouse.KeyDown:connect(function(key)
314
	if key == Keys.Hakai then
315
		Destroy()
316
	end
317
	if key == Keys.Up and mad == false then
318
	   Mad()
319
	elseif key == Keys.Down then
320
		Base()
321
	end
322
	if key == Keys.Tail and tail == false then
323
		tail = true
324
	elseif key == Keys.Tail and tail == true then
325
		tail = false
326
	end
327
        if key:byte() == 48 and running == false then
328
         jun.Character.Humanoid.WalkSpeed = 100
329
         running = true
330
        end
331
end)
332
333
mouse.KeyUp:connect(function(key)
334
if key:byte() == 48 and running == true then
335
         jun.Character.Humanoid.WalkSpeed = 16
336
         running = false
337
        end
338
end)