HenloMyDude

super noob 64 v2

Aug 29th, 2019
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.25 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by youngmacka123");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. --Super Noob 64--
  143.  
  144. --A physics + Character overhall--
  145.  
  146. --Made by youngmacka123, please don't steal.--
  147. ---V2 by youngmacka123---
  148.  
  149. print("Super Noob 64 V2 loaded!")
  150. print("Click to punch")
  151. print("N to mute music")
  152. print("M to unmute music")
  153.  
  154. --Player things--
  155.  
  156. plr = owner
  157. char = owner.Character
  158. hum = char.Humanoid
  159. mouse = plr:GetMouse()
  160. ws = hum.WalkSpeed
  161.  
  162. torso = char["Torso"]
  163. rightarm = char["Right Arm"]
  164. leftarm = char["Left Arm"]
  165. head = char["Head"]
  166. leftleg = char["Left Leg"]
  167. rightleg = char["Right Leg"]
  168. bc = BrickColor
  169.  
  170. Left_Shoulder = torso:WaitForChild("Left Shoulder")
  171. Right_Shoulder = torso:WaitForChild("Right Shoulder")
  172. Left_Hip = torso:WaitForChild("Left Hip")
  173. Right_Hip = torso:WaitForChild("Right Hip")
  174. Neck = torso:WaitForChild("Neck")
  175.  
  176. --Apply Physics--
  177.  
  178. ws = 26
  179.  
  180. hammer = Instance.new("Part")
  181. hammer.Parent = char
  182. hammer.Name = "NoobHammer"
  183. hammer.Anchored = false
  184. hammer.CanCollide = false
  185. hammer.Size = Vector3.new(7, 21, 11)
  186. hammer.Position = rightarm.Position
  187. hammer.BrickColor = BrickColor.new("New Yeller")
  188. hammer.Transparency = 1
  189.  
  190. whammer = Instance.new("Weld")
  191. whammer.Parent = hammer
  192. whammer.Part0 = hammer
  193. whammer.Part1 = torso
  194. whammer.C0 = CFrame.new(0, -1, 1)
  195. whammer.C1 = CFrame.Angles(200,0,0)
  196.  
  197. --Change Character--
  198.  
  199. torso.BrickColor = BrickColor.new("Bright blue")
  200. rightarm.BrickColor = BrickColor.new("Bright yellow")
  201. leftarm.BrickColor = BrickColor.new("Bright yellow")
  202. rightleg.BrickColor = BrickColor.new("Br. yellowish green")
  203. leftleg.BrickColor = BrickColor.new("Br. yellowish green")
  204. head.BrickColor = BrickColor.new("Bright yellow")
  205. head.face.Texture = "http://www.roblox.com/asset/?id=65724729"
  206.  
  207. for i,v in pairs(char:children()) do
  208. if v:IsA("Hat") then
  209. v:Destroy()
  210. end
  211. end
  212. for i,v in pairs(char:children()) do
  213. if v:IsA("Accessory") then
  214. v:Destroy()
  215. end
  216. end
  217. for i,v in pairs(char:children()) do
  218. if v:IsA("Hair") then
  219. v:Destroy()
  220. end
  221. end
  222. for i,v in pairs(char:children()) do
  223. if v:IsA("Shirt") then
  224. v:Destroy()
  225. end
  226. end
  227. for i,v in pairs(char:children()) do
  228. if v:IsA("Pants") then
  229. v:Destroy()
  230. end
  231. end
  232. for i,v in pairs(char:children()) do
  233. if v:IsA("Graphic Shirt") then
  234. v:Destroy()
  235. end
  236. end
  237. for i,v in pairs(char:children()) do
  238. if v:IsA("GraphicShirt") then
  239. v:Destroy()
  240. end
  241. end
  242.  
  243. for _,v in pairs(char:children()) do
  244. if v:IsA("Shirt") then
  245. v.ShirtTemplate = "rbxassetid://0"
  246. elseif v:IsA("Pants") then
  247. v.PantsTemplate = "rbxassetid://0"
  248. elseif v:IsA("ShirtGraphic") then
  249. v:Remove()
  250. wait(.1)
  251. torso.roblox:Remove()
  252. elseif v:IsA("Accessory") then
  253. v:Remove()
  254. end
  255. end
  256.  
  257. --Music--
  258.  
  259. music = Instance.new("Sound")
  260. music.Parent = head
  261. music.SoundId = "rbxassetid://1399386231"
  262. music.Playing = false
  263. music.Looped = true
  264.  
  265. --Attacks--
  266. charge = false
  267.  
  268. mouse.Button1Down:Connect(function()
  269. if charge==false then
  270. wait(0.0000000000000000000000000005)
  271.  
  272. charge = true
  273.  
  274. hitbox = Instance.new("Part")
  275. hitbox.Parent = rightarm
  276. hitbox.Size = rightarm.Size
  277. hitbox.Anchored = false
  278. hitbox.CanCollide = false
  279. hitbox.Transparency = 1
  280. hitbox.Locked = false
  281. hitweld = Instance.new("Weld")
  282. hitweld.Parent = hitbox
  283. hitweld.Part0 = hitbox
  284. hitweld.Part1 = leftarm
  285. hitbox.Touched:connect(function(hit)
  286. hum = hit.Parent:FindFirstChild("Humanoid")
  287.  
  288. hum.Health = hum.Health - 25
  289. end)
  290.  
  291. punchsound = Instance.new("Sound")
  292. punchsound.Parent = head
  293. punchsound.Playing = true
  294. punchsound.SoundId = "rbxassetid://367706115"
  295. weld1 = Instance.new("Weld")
  296. weld1.Parent = leftarm
  297. weld1.Part0 = leftarm
  298. weld1.Part1 = torso
  299. weld1.C0 = CFrame.new(1.5,0,0)
  300. weld1.C1 = CFrame.Angles(math.rad(-5),0,0)
  301. weld1.C1 = CFrame.Angles(math.rad(10),0,0)
  302. wait(0.05)
  303. weld1.C1 = CFrame.Angles(math.rad(15),0,0)
  304. wait(0.05)
  305. weld1.C1 = CFrame.Angles(math.rad(20),0,0)
  306. wait(0.05)
  307. weld1.C1 = CFrame.Angles(math.rad(25),0,0)
  308. wait(0.05)
  309. weld1.C1 = CFrame.Angles(math.rad(30),0,0)
  310. wait(0.05)
  311. weld1.C1 = CFrame.Angles(math.rad(35),0,0)
  312. wait(0.05)
  313. weld1.C1 = CFrame.Angles(math.rad(40),0,0)
  314. wait(0.05)
  315. weld1.C1 = CFrame.Angles(math.rad(45),0,0)
  316. wait(0.05)
  317. weld1.C1 = CFrame.Angles(math.rad(50),0,0)
  318. wait(0.05)
  319. weld1.C1 = CFrame.Angles(math.rad(55),0,0)
  320. wait(0.05)
  321. weld1.C1 = CFrame.Angles(math.rad(60),0,0)
  322. wait(0.05)
  323. weld1.C1 = CFrame.Angles(math.rad(65),0,0)
  324. wait(0.05)
  325. weld1.C1 = CFrame.Angles(math.rad(70),0,0)
  326. wait(0.05)
  327. weld1.C1 = CFrame.Angles(math.rad(65),0,0)
  328. wait(0.05)
  329. weld1.C1 = CFrame.Angles(math.rad(60),0,0)
  330. wait(0.05)
  331. weld1.C1 = CFrame.Angles(math.rad(55),0,0)
  332. wait(0.05)
  333. weld1.C1 = CFrame.Angles(math.rad(50),0,0)
  334. wait(0.05)
  335. weld1.C1 = CFrame.Angles(math.rad(45),0,0)
  336. wait(0.05)
  337. weld1.C1 = CFrame.Angles(math.rad(40),0,0)
  338. wait(0.05)
  339. weld1.C1 = CFrame.Angles(math.rad(35),0,0)
  340. wait(0.05)
  341. weld1.C1 = CFrame.Angles(math.rad(25),0,0)
  342. wait(0.05)
  343. weld1.C1 = CFrame.Angles(math.rad(20),0,0)
  344. wait(0.05)
  345. weld1.C1 = CFrame.Angles(math.rad(15),0,0)
  346. wait(0.05)
  347. weld1.C1 = CFrame.Angles(math.rad(10),0,0)
  348. wait(0.05)
  349. weld1.C1 = CFrame.Angles(math.rad(-5),0,0)
  350. charge = false
  351. hitbox:Destroy()
  352. hitweld:Destroy()
  353. punchsound:Destroy()
  354. weld1:Destroy()
  355. end
  356. end)
  357.  
  358. --Mute and unmute--
  359.  
  360. mouse.KeyDown:connect(function(Press)
  361. Press=Press:lower()
  362. if Press=='m' then
  363. if music.Playing==false then
  364. music.Playing = true
  365. end
  366. end
  367. end)
  368.  
  369. mouse.KeyDown:connect(function(Press)
  370. Press=Press:lower()
  371. if Press=='n' then
  372. if music.Playing==true then
  373. music.Playing = false
  374. end
  375. end
  376. end)
Add Comment
Please, Sign In to add comment