Advertisement
MajourScripters

PointCoded's Cube Guardian

Mar 13th, 2016
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.32 KB | None | 0 0
  1. --[[PointCoded's Cube Script]]--
  2. --[[
  3. 1: Any Edits Of This Cube Must Include Some Form Of Formal Credits To The Creator Of The Script(PointCoded)
  4. 2: Edits Are Allowed
  5. 3: I Desided To Leak The Script Because People Were Asking For It And I Didnt Want To Add Anything Else
  6. 4: As Long As You Have Fun With It And Follow The Above Rules I Dont Care What You Do With The Script
  7. 5: Have Fun (Q for boost)
  8. ]]--
  9.  
  10. local Plr = game.Players.LocalPlayer or nil
  11. local Player = Plr
  12. local Char = Plr.Character or nil
  13. local Mouse = Plr:GetMouse() or nil
  14. local Version = "2"
  15.  
  16. local Humanoid = Char.Humanoid or nil
  17. local Torso = Char.Torso or nil
  18. local Head = Char.Head or nil
  19. local Larm = Char["Left Arm"] or nil
  20. local Lleg = Char["Left Leg"] or nil
  21. local Rarm = Char["Right Arm"] or nil
  22. local Rleg = Char["Right Leg"] or nil
  23. local euler=CFrame.fromEulerAnglesXYZ
  24. local vt=Vector3.new
  25. local cf=CFrame.new
  26. Humanoid.MaxHealth = 100000
  27. wait(0.1)
  28. Humanoid.Health = 1000000
  29. Humanoid.WalkSpeed = 25
  30. Humanoid.JumpPower = 90
  31. Humanoid.MaxSlopeAngle = 89.9
  32.  
  33. print("Cube Guardian")
  34. print("Made by PointCoded")
  35. print("Version is: "..Version)
  36.  
  37. Head.Transparency = 1
  38. Torso.Transparency = 1
  39. Larm:remove()
  40. Rarm:remove()
  41. Lleg.Transparency = 1
  42. Rleg.Transparency = 1
  43.  
  44. Humanoid.Jump = true
  45. wait(1)
  46. Humanoid.CameraOffset = Vector3.new(0,3,0)
  47.  
  48. local MainBlock = Instance.new("Part")
  49. MainBlock.Parent = Char
  50. MainBlock.Name = "Main Block"
  51. MainBlock.formFactor = 0
  52. MainBlock.BrickColor = BrickColor.new("Really black")
  53. MainBlock.Size = Vector3.new(8,8,8)
  54. MainBlock.BottomSurface = "Smooth"
  55. MainBlock.TopSurface = "Smooth"
  56. MainBlock.Material = "Neon"
  57. MainBlock.Locked = true
  58. MainBlock.CFrame = Torso.CFrame
  59.  
  60. local Decal = Instance.new("Decal")
  61. Decal.Parent = MainBlock
  62. Decal.Name = "Face"
  63. Decal.Texture = "http://www.roblox.com/asset/?id=131003983"
  64. Decal.Face = "Front"
  65.  
  66. local Box = Instance.new("SelectionBox")
  67. Box.Parent = MainBlock
  68. Box.Name = "Box"
  69. Box.Color3 = Color3.new(255,255,255)
  70. Box.LineThickness = 0.06
  71. Box.SurfaceTransparency = 1
  72. Box.Transparency = 0.5
  73. Box.Adornee = MainBlock
  74.  
  75. local AttachMain = Instance.new("Weld")
  76. AttachMain.Part0 = Torso
  77. AttachMain.Part1 = MainBlock
  78. AttachMain.C1 = AttachMain.C1 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  79. AttachMain.Parent = MainBlock
  80. AttachMain.Name = "Attach Main Block"
  81.  
  82. local Sound1 = Instance.new("Sound")
  83. Sound1.Parent = MainBlock
  84. Sound1.SoundId = "http://www.roblox.com/asset/?id=186130717"
  85. Sound1.Looped = true
  86. Sound1.Name = "Eletric"
  87. Sound1.MaxDistance = 1000
  88. Sound1.MinDistance = 750
  89. Sound1.Pitch = 1
  90. Sound1.Volume = 1
  91. Sound1.PlayOnRemove = false
  92.  
  93. local Sound1 = Instance.new("Sound")
  94. Sound1.Parent = MainBlock
  95. Sound1.SoundId = "http://www.roblox.com/asset/?id=186130717"
  96. Sound1.Name = "Eletric"
  97. Sound1.MaxDistance = 1000
  98. Sound1.MinDistance = 750
  99. Sound1.Pitch = 1
  100. Sound1.Volume = 0.6
  101. Sound1.PlayOnRemove = false
  102.  
  103. local Sound2 = Instance.new("Sound")
  104. Sound2.Parent = MainBlock
  105. Sound2.SoundId = "http://www.roblox.com/asset/?id=236146895"
  106. Sound2.Name = "DumDumDumDum"
  107. Sound2.MaxDistance = 1000
  108. Sound2.MinDistance = 750
  109. Sound2.Pitch = 1
  110. Sound2.Volume = 0.6
  111. Sound2.PlayOnRemove = false
  112.  
  113. local Sound3 = Instance.new("Sound")
  114. Sound3.Parent = MainBlock
  115. Sound3.SoundId = "http://www.roblox.com/asset/?id=184107000"
  116. Sound3.Name = "Whip"
  117. Sound3.MaxDistance = 1000
  118. Sound3.MinDistance = 750
  119. Sound3.Pitch = 1
  120. Sound3.Volume = 0.6
  121. Sound3.PlayOnRemove = false
  122.  
  123. local Sound4 = Instance.new("Sound")
  124. Sound4.Parent = MainBlock
  125. Sound4.SoundId = "http://www.roblox.com/asset/?id=154904310"
  126. Sound4.Name = "Slap"
  127. Sound4.MaxDistance = 1000
  128. Sound4.MinDistance = 750
  129. Sound4.Pitch = 1
  130. Sound4.Volume = 0.6
  131. Sound4.PlayOnRemove = false
  132.  
  133. function Loop(Action)
  134. game:GetService("RunService").RenderStepped:connect(Action)
  135. end
  136. local AttackEnabled = true
  137. MainBlock.Touched:connect(function(hit)
  138.     for i,v in pairs(game.Players:GetPlayers()) do
  139.         if hit.Parent and v.Name == hit.Parent.Name then
  140.             if v.Character:findFirstChild("Main Block") == nil then
  141.                 v.Character.Torso.Name = "Main Block"
  142.                 Sound3:Play()
  143.                 v.Character:BreakJoints()
  144.                 for i = 1,20 do
  145.                     if v.Character then
  146.                         for i,x in pairs(v.Character:GetChildren()) do
  147.                             x:ClearAllChildren()
  148.                             if x:IsA("Part") then
  149.                                 x.Size = Vector3.new(3.5,3.5,3.5)
  150.                             else
  151.                                 x:remove()
  152.                             end
  153.                         end
  154.                     end
  155.                 end
  156.             end
  157.         end
  158.     end
  159. end)
  160. function GUI(Text,Time)
  161.     local S = Instance.new("ScreenGui")
  162.     S.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  163.     local F = Instance.new("Frame")
  164.     F.Parent = S
  165.     F.BackgroundColor3 = Color3.new(0,0,0)
  166.     F.BackgroundTransparency = 0.5
  167.     F.BorderSizePixel = 0
  168.     F.Position = UDim2.new(0, 0, 0, 245)
  169.     F.Size = UDim2.new(0, 1500, 0, 100)
  170.     local T = Instance.new("TextLabel")
  171.     T.Parent = F
  172.     T.BackgroundTransparency = 1
  173.     T.BorderSizePixel = 0
  174.     T.Size = UDim2.new(0,1000, 0, 100)
  175.     T.Font = "SourceSansBold"
  176.     T.FontSize = "Size24"
  177.     T.Text = Text
  178.     T.TextColor3 = Color3.new(255,255,255)
  179.     T.TextStrokeTransparency = 0
  180.     wait(Time)
  181.     S:remove()
  182. end
  183.  
  184.  
  185. Mouse.KeyDown:connect(function(key)
  186.     if key == "q" and AttackEnabled == true then
  187.         AttackEnabled = false
  188.         Char["Main Block"].Box.Color3 = Color3.new(0,75,0)
  189.         Char.Head.Velocity=Char.Head.CFrame.lookVector*420
  190.         Sound2:Play()
  191.         GUI("Boost",5)
  192.         Char["Main Block"].Box.Color3 = Color3.new(255,255,255)
  193.         AttackEnabled = true
  194.     elseif key == "e" and AttackEnabled == true then
  195.         AttackEnabled = false
  196.         Char["Main Block"].Box.Color3 = Color3.new(0,75,0)
  197.         Sound1:Play()
  198.         local P = Instance.new("Part")
  199.         P.Parent = Char
  200.         P.Shape = 0
  201.         P.CanCollide = false
  202.         P.CFrame = Torso.CFrame
  203.         P.Material = "Neon"
  204.         P.TopSurface = "Smooth"
  205.         P.BrickColor = BrickColor.new("Black")
  206.         P.Transparency = 0.4
  207.         Instance.new("ForceField",Char)
  208.         GUI("Phsycic Blast",3)
  209.         for i = 1,20 do
  210.             wait(0.5)
  211.             P.Size = Vector3.new(P.Size.X + 1,P.Size.Y + 1,P.Size.Z + 1)
  212.             P.CFrame = Torso.CFrame
  213.             P.Touched:connect(function(hit)
  214.                 if hit.Parent.Name ~= Player.Name and hit.Parent.Name ~= "Workspace" then
  215.                     hit.Parent:BreakJoints()
  216.                 end
  217.             end)
  218.         end
  219.         P:remove()
  220.         wait(10)
  221.         Char["Main Block"].Box.Color3 = Color3.new(255,255,255)
  222.         AttackEnabled = true
  223.     end
  224. end)
  225.  
  226. Loop(function()
  227.     if Char["Main Block"] then
  228.         Char["Main Block"].Locked = true -- No Btools For u Bish
  229.     end
  230. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement