Advertisement
UhhLegoboy

Half Minute Hero

Apr 11th, 2017
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.51 KB | None | 0 0
  1. print("Is it me, or does nobody know what this game is? You also have 30 seconds to slaughter as much people as possible!")
  2. wait(1)
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. --Remove all of your body's junk
  6. for _, child in pairs(char:GetChildren()) do
  7.     if child.ClassName == 'Accessory' then
  8.         child : Destroy()
  9.     end
  10. end
  11. for _, child in pairs(char:GetChildren()) do
  12.     if child.ClassName == 'Shirt' then
  13.         child : Destroy()
  14.     end
  15. end
  16. for _, child in pairs(char:GetChildren()) do
  17.     if child.ClassName == 'ShirtGraphic' then
  18.         child : Destroy()
  19.     end
  20. end
  21. for _, child in pairs(char:GetChildren()) do
  22.     if child.ClassName == 'Pants' then
  23.         child : Destroy()
  24.     end
  25. end
  26. --Skin
  27. BC = char ["Body Colors"]
  28. Skin = BrickColor.new("Pastel brown")
  29.  
  30. BC.HeadColor = Skin
  31. BC.LeftArmColor = Skin
  32. BC.LeftLegColor = Skin
  33. BC.RightLegColor = Skin
  34. BC.RightArmColor = Skin
  35. BC.TorsoColor = Skin
  36.  
  37. --Clothes
  38. local Shirt = Instance.new("Shirt",char)
  39. Shirt.ShirtTemplate = "rbxassetid://588593305"
  40. local Pants = Instance.new("Pants",char)
  41. Pants.PantsTemplate = "rbxassetid://130481661"
  42. local Face = char.Head.face
  43. Face.Texture = "rbxassetid://650962103"
  44.  
  45. --Humanoid
  46. local H = char.Humanoid
  47. H.WalkSpeed = 50
  48. H.JumpPower = 0
  49.  
  50. --Song
  51. local Sound = Instance.new("Sound", char.Head)
  52. Sound.SoundId = "rbxassetid://733273397"
  53. Sound.Looped = true
  54. Sound.Volume = 5
  55. Sound:play()
  56.  
  57. --Spear
  58. local runDummyScript = function(f,scri)
  59. local oldenv = getfenv(f)
  60. local newenv = setmetatable({}, {
  61. __index = function(_, k)
  62. if k:lower() == 'script' then
  63. return scri
  64. else
  65. return oldenv[k]
  66. end
  67. end
  68. })
  69. setfenv(f, newenv)
  70. ypcall(function() f() end)
  71. end
  72. cors = {}
  73. mas = Instance.new("Model",game:GetService("Lighting"))
  74. mas.Name = "CompiledModel"
  75. o1 = Instance.new("Tool")
  76. o2 = Instance.new("Part")
  77. o4 = Instance.new("Script")
  78. o1.Name = "Bamboo Spear"
  79. o1.Parent = mas
  80. o1.TextureId = "rbxassetid://321273485"
  81. o1.ToolTip = "Bamboo Spear"
  82. o2.Name = "Handle"
  83. o2.Parent = o1
  84. o2.Material = Enum.Material.SmoothPlastic
  85. o2.BrickColor = BrickColor.new("Laurel green")
  86. o2.Position = Vector3.new(-0.875, 3.25000095, -10.375)
  87. o2.Size = Vector3.new(0.25, 6.5, 0.25)
  88. o2.CFrame = CFrame.new(-0.875, 3.25000095, -10.375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  89. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  90. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  91. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  92. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  93. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  94. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  95. o2.Color = Color3.new(0.658824, 0.741176, 0.6)
  96. o2.Position = Vector3.new(-0.875, 3.25000095, -10.375)
  97. o4.Parent = o2
  98. table.insert(cors,coroutine.create(function()
  99. wait()
  100. runDummyScript(function()
  101. script.Parent.Touched : connect(function(player)
  102.     if player.Parent.Name == game.Players.LocalPlayer.Name then
  103.         print("Hit")
  104.     else
  105.     player.Parent.Humanoid.Health = player.Parent.Humanoid.Health-20
  106.     end
  107. end)
  108. end,o4)
  109. end))
  110. mas.Parent = workspace
  111. mas:MakeJoints()
  112. local mas1 = mas:GetChildren()
  113. for i=1,#mas1 do
  114.     mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  115.     ypcall(function() mas1[i]:MakeJoints() end)
  116. end
  117. mas:Destroy()
  118. for i=1,#cors do
  119. coroutine.resume(cors[i])
  120. end
  121.  
  122. --Hair
  123. debounce = false
  124.         h = Instance.new("Accessory")
  125.         p = Instance.new("Part")
  126.         h.Name = "Ultra-Fabulous Hair"
  127.         p.Parent = h
  128.         p.Position = char:findFirstChild("Head").Position
  129.         p.Name = "Handle"
  130.         p.formFactor = 0
  131.         p.BottomSurface = 0
  132.         p.TopSurface = 0
  133.         p.Locked = true
  134.         Hat = Instance.new("SpecialMesh", p)
  135.         Hat.MeshId = "http://www.roblox.com/asset/?id=16627529"
  136.         Hat.TextureId = "http://www.roblox.com/asset/?id=232752887"
  137.         Hat.Scale = Vector3.new(1.05, 1.05, 1.05)
  138.         h.Parent = char
  139.         h.AttachmentForward = Vector3.new (0, 0, -1)
  140.         h.AttachmentPos = Vector3.new(0, 0, 0)
  141.         h.AttachmentRight = Vector3.new (1, 0, 0)
  142.         h.AttachmentUp = Vector3.new (0, 1, 0)
  143.         wait(0.01)
  144.         debounce = true
  145.  
  146. local runDummyScript = function(f,scri)
  147. local oldenv = getfenv(f)
  148. local newenv = setmetatable({}, {
  149. __index = function(_, k)
  150. if k:lower() == 'script' then
  151. return scri
  152. else
  153. return oldenv[k]
  154. end
  155. end
  156. })
  157. setfenv(f, newenv)
  158. ypcall(function() f() end)
  159. end
  160. cors = {}
  161. mas = Instance.new("Model",game:GetService("Lighting"))
  162. mas.Name = "CompiledModel"
  163. o1 = Instance.new("ScreenGui")
  164. o2 = Instance.new("TextLabel")
  165. o3 = Instance.new("Script")
  166. o1.Parent = mas
  167. o2.Parent = o1
  168. o2.Position = UDim2.new(0.41720429062843,0,0.10846953839064,0)
  169. o2.Size = UDim2.new(0,200,0,50)
  170. o2.Text = ""
  171. o2.Position = UDim2.new(0.41720429062843,0,0.10846953839064,0)
  172. o2.BackgroundColor3 = Color3.new(1, 1, 1)
  173. o2.BackgroundTransparency = 1
  174. o2.Font = Enum.Font.SourceSans
  175. o2.FontSize = Enum.FontSize.Size48
  176. o2.TextColor3 = Color3.new(1, 1, 1)
  177. o3.Parent = o2
  178. table.insert(cors,coroutine.create(function()
  179. wait()
  180. runDummyScript(function()
  181. wait(0)
  182. local char = game.Players.LocalPlayer.Character
  183. local Time = 30
  184. repeat
  185. Time = Time-1
  186. wait(1)
  187. script.Parent.Text = Time  
  188. until Time <= 0
  189. char : BreakJoints()
  190. script.Parent.Parent : Destroy()
  191.  
  192. end,o3)
  193. end))
  194. mas.Parent = workspace
  195. mas:MakeJoints()
  196. local mas1 = mas:GetChildren()
  197. for i=1,#mas1 do
  198.     mas1[i].Parent = game:GetService("Players").LocalPlayer.PlayerGui
  199.     ypcall(function() mas1[i]:MakeJoints() end)
  200. end
  201. mas:Destroy()
  202. for i=1,#cors do
  203. coroutine.resume(cors[i])
  204. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement