Advertisement
Guest User

Untitled

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