TheYoutuber_Pro

Untitled

Apr 13th, 2022 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.07 KB | None | 0 0
  1. --hmm1x's edit of mokiros fe thing dont bully me im just a idiot
  2. materials = {
  3. "Glass",
  4. "Marble",
  5. "Pebble",
  6. "Neon"
  7. }
  8. if game:GetService("RunService"):IsClient() then error("script must be serverside using c/ nor h/") end
  9. if not owner.Character:FindFirstChild("LUAhEAD") then error("this script requires the hat: 2309346267") end
  10. local Player,game,owner = owner,game
  11. local RealPlayer = Player
  12. do
  13. local function randomstring()
  14. local length = math.random(10,20)
  15. local array = {}
  16. for i = 1,length do
  17. array[i] = string.char(math.random(32,126))
  18. end
  19. return table.concat(array)
  20. end
  21. vers = 1.2
  22. local table = {"lighting cannon is "..math.random(1,2546465).." adopted","krnl is garbage","lua LuaU exists","saint stole all effects from trimphase for his script clover","["..randomstring().."]"}
  23. local value = math.random(1,#table)
  24. local picked_value = table[value]
  25. print("fecc by mokiros, edited by hmm1x")
  26. print("gotta give the smartman credits 😎😎😎")
  27. warn("fun fact of the day: "..tostring(picked_value))
  28. local RealPlayer = RealPlayer
  29. script.Parent = RealPlayer.Character
  30.  
  31. --Fake event to make stuff like Mouse.KeyDown work
  32. local Disconnect_Function = function(this)
  33. this[1].Functions[this[2]] = nil
  34. end
  35. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  36. local FakeEvent_Metatable = {__index={
  37. Connect = function(this,f)
  38. local i = tostring(math.random(0,10000))
  39. while this.Functions[i] do
  40. i = tostring(math.random(0,10000))
  41. end
  42. this.Functions[i] = f
  43. return setmetatable({this,i},Disconnect_Metatable)
  44. end
  45. }}
  46. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  47. print("loading fakeEvent")
  48. local function fakeEvent()
  49. return setmetatable({Functions={}},FakeEvent_Metatable)
  50. end
  51.  
  52. --Creating fake input objects with fake variables
  53. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  54. FakeMouse.keyUp = FakeMouse.KeyUp
  55. FakeMouse.keyDown = FakeMouse.KeyDown
  56. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  57. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  58. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  59. end}
  60. --Merged 2 functions into one by checking amount of arguments
  61. CAS.UnbindAction = CAS.BindAction
  62.  
  63. --This function will trigger the events that have been :Connect()'ed
  64. local function TriggerEvent(self,ev,...)
  65. for _,f in pairs(self[ev].Functions) do
  66. f(...)
  67. end
  68. end
  69. FakeMouse.TriggerEvent = TriggerEvent
  70. UIS.TriggerEvent = TriggerEvent
  71.  
  72. --Client communication
  73. local Event = Instance.new("RemoteEvent")
  74. Event.Name = "UserInput_Event"
  75. Event.OnServerEvent:Connect(function(plr,io)
  76. if plr~=RealPlayer then return end
  77. FakeMouse.Target = io.Target
  78. FakeMouse.Hit = io.Hit
  79. if not io.isMouse then
  80. local b = io.UserInputState == Enum.UserInputState.Begin
  81. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  82. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  83. end
  84. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  85. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  86. end
  87. for _,t in pairs(CAS.Actions) do
  88. for _,k in pairs(t.Keys) do
  89. if k==io.KeyCode then
  90. t.Function(t.Name,io.UserInputState,io)
  91. end
  92. end
  93. end
  94. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  95. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  96. end
  97. end)
  98. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  99. local Mouse = owner:GetMouse()
  100. local UIS = game:GetService("UserInputService")
  101. local input = function(io,RobloxHandled)
  102. if RobloxHandled then return end
  103. --Since InputObject is a client-side instance, we create and pass table instead
  104. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  105. end
  106. UIS.InputBegan:Connect(input)
  107. UIS.InputEnded:Connect(input)
  108. local h,t
  109. --Give the server mouse data every second frame, but only if the values changed
  110. --If player is not moving their mouse, client won't fire events
  111. local HB = game:GetService("RunService").Heartbeat
  112. while true do
  113. if h~=Mouse.Hit or t~=Mouse.Target then
  114. h,t=Mouse.Hit,Mouse.Target
  115. Event:FireServer({isMouse=true,Target=t,Hit=h})
  116. end
  117. --Wait 2 frames
  118. for i=1,2 do
  119. HB:Wait()
  120. end
  121. end]==],script)
  122.  
  123.  
  124. ----Sandboxed game object that allows the usage of client-side methods and services
  125. --Real game object
  126. local RealGame = game
  127. print("realgame object loaded (allows usage of clientside methods, service)")
  128. --Metatable for fake service
  129. local FakeService_Metatable = {
  130. __index = function(self,k)
  131. local s = rawget(self,"_RealService")
  132. if s then
  133. return typeof(s[k])=="function"
  134. and function(_,...)return s[k](s,...)end or s[k]
  135. end
  136. end,
  137. __newindex = function(self,k,v)
  138. local s = rawget(self,"_RealService")
  139. if s then s[k]=v end
  140. end
  141. }
  142. local function FakeService(t,RealService)
  143. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  144. return setmetatable(t,FakeService_Metatable)
  145. end
  146. print("metatable fakeservice loaded")
  147.  
  148. --Fake game object
  149. local FakeGame = {
  150. GetService = function(self,s)
  151. return rawget(self,s) or RealGame:GetService(s)
  152. end,
  153. Players = FakeService({
  154. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  155. },"Players"),
  156. UserInputService = FakeService(UIS,"UserInputService"),
  157. ContextActionService = FakeService(CAS,"ContextActionService"),
  158. RunService = FakeService({
  159. _btrs = {},
  160. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  161. BindToRenderStep = function(self,name,_,fun)
  162. self._btrs[name] = self.Heartbeat:Connect(fun)
  163. end,
  164. UnbindFromRenderStep = function(self,name)
  165. self._btrs[name]:Disconnect()
  166. end,
  167. },"RunService")
  168. }
  169. print("fakegame object loaded")
  170. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  171. FakeGame.service = FakeGame.GetService
  172. FakeService(FakeGame,game)
  173. print("wrapping everything up")
  174. --Changing owner to fake player object to support owner:GetMouse()
  175. game,owner = FakeGame,FakeGame:GetService("Players").LocalPlayer
  176. print("hmm1x's edit of mokiros FECC v"..vers.." loaded")
  177. game:GetService("RunService").Heartbeat:Connect(function()
  178. script.Name = randomstring()
  179. end)
  180. end
  181. game:GetService("Chat").BubbleChatEnabled = true
  182. function chat(part, msg)
  183. game:GetService("Chat"):Chat(part, msg)
  184. end
  185. local w = Instance.new("WorldModel", script)
  186. local wrench = Instance.new("SpawnLocation", w)
  187. w.Name = math.random()
  188. wrench.Name = math.random()
  189. local bill = Instance.new("BillboardGui", wrench)
  190. bill.Size = UDim2.new(1.25, 0, 1.25, 0)
  191. bill.AlwaysOnTop = true
  192. local wimage = Instance.new("ImageLabel", bill)
  193. wimage.Image = "rbxassetid://8834590566"
  194. wimage.ImageColor3 = Color3.new(1, 1, 1)
  195. wimage.BackgroundTransparency = 1
  196. wimage.ImageTransparency = 1
  197. wimage.Size = UDim2.new(1,0, 1,0)
  198. wrench.Size = Vector3.new(5,5,5)
  199. local amongus = Instance.new("SpawnLocation", w)
  200. amongus.Anchored = true
  201. amongus.Enabled = false
  202. amongus.Size = Vector3.new(0,0,0)
  203. amongus.Transparency = false
  204. amongus.CanCollide = false
  205. amongus.Name = math.random()
  206. wrench.Anchored = true
  207. wrench.CanCollide = false
  208. wrench.CanQuery = false
  209. wrench.CanTouch = false
  210. wrench.Enabled = false
  211. wrench.Transparency = 1
  212. local char = owner.Character
  213. local root = char.HumanoidRootPart
  214. game:GetService("RunService").Heartbeat:Connect(function()
  215. game:GetService("TweenService"):Create(wrench,TweenInfo.new(2,Enum.EasingStyle.Circular,Enum.EasingDirection.Out),{Position = root.Position}):Play()
  216. end)
  217. local mo = owner:GetMouse()
  218. local com = owner.Character:WaitForChild("LUAhEAD")
  219. local comp = com:WaitForChild("Handle")
  220. local xp = "rbxassetid://"..9301999294
  221.  
  222.  
  223. local staet = Instance.new("Sound", root)
  224. staet.Volume = 2
  225. staet.SoundId = "rbxassetid://7903232451"
  226. root.Anchored = true
  227. local err = Instance.new("Sound", root)
  228. local victory = Instance.new("Sound", root)
  229. victory.SoundId = "rbxassetid://2389339814"
  230. victory.Volume = 3
  231. err.SoundId = "rbxassetid://"..1642443865
  232. err.Volume = 2
  233. local shutdown = Instance.new("Sound", root)
  234. shutdown.SoundId = "rbxassetid://"..6341220421
  235. shutdown.Volume = 2
  236. local head = owner.Character.Head
  237. local sleep = false
  238. local music = Instance.new("Sound", root)
  239. music.Volume = 3
  240. music.SoundId = "rbxassetid://1845458027"
  241. music.Looped = true
  242. music.Playing = true
  243. music.PlaybackSpeed = 0
  244. local setup = Instance.new("Sound", root)
  245. setup.SoundId = "rbxassetid://"..8708139245
  246. setup.Volume = 2
  247. local disk = Instance.new("Sound", root)
  248. disk.SoundId = "rbxassetid://"..609348868
  249. disk.Volume = 2
  250. chat(head, "Booting, Please stand by..")
  251.  
  252. wait(3)
  253. function hax()
  254. local foe = mo.Target
  255. if foe.Name == "Base" then
  256. return
  257. end
  258. chat(head, "System: Hacked "..foe.Name..".")
  259. local eff = Instance.new("SpawnLocation", script)
  260. eff.Enabled = false
  261. eff.CanCollide = false
  262. local sound = Instance.new("Sound", eff)
  263. sound.Volume = 2
  264. sound.PlaybackSpeed = math.random(1,3)
  265. sound:Play()
  266. sound.SoundId = "rbxassetid://3264923"
  267. eff.Anchored = true
  268. eff.CanQuery = false
  269. eff.CanTouch = false
  270. eff.Color = Color3.new(0.180392, 1, 0)
  271. game:GetService("RunService").Heartbeat:Connect(function()
  272. eff.Material = materials[math.random(1,#materials)]
  273. end)
  274. eff.CFrame = foe.CFrame
  275. eff.Size = foe.Size
  276. local mesh = Instance.new("SpecialMesh", foe)
  277. mesh.Name = math.random()
  278. mesh.Scale = Vector3.new(0,0,0)
  279. mesh.Offset = Vector3.new(9e9,9e9,9e9)
  280. game:GetService("TweenService"):Create(eff,TweenInfo.new(2,Enum.EasingStyle.Circular,Enum.EasingDirection.Out),{Transparency = 1}):Play()
  281. if eff.Transparency == 1 then
  282. eff:Destroy()
  283. end
  284.  
  285. end
  286.  
  287. chat(head, "Welcome!")
  288. staet:Play()
  289. root.Anchored = false
  290. comp:WaitForChild("Mesh").TextureId = "rbxassetid://9301999281"
  291. mo.KeyDown:Connect(function(key)
  292. if key == "b" then
  293. comp:WaitForChild("Mesh").TextureId = "rbxassetid://"..9302985099
  294. shutdown:Play()
  295. chat(head, "The Computer has Shut Downed Automatically. This can be as meaning the computer has virus Disk, Games. Reinstall the windows please.")
  296. root.Anchored = true
  297. wait(2)
  298. local expl = Instance.new("Explosion", root)
  299. expl.Position = root.Position
  300. err:Play()
  301. elseif key == "e" then
  302. err:Play()
  303. chat(head, "Errored")
  304. elseif key == "n" then
  305. shutdown:Play()
  306. chat(head, "Win10: sleep mode = true")
  307. root.Anchored = true
  308. comp:WaitForChild("Mesh").TextureId = "rbxassetid://"..9303129779
  309. elseif key == "v" then
  310. chat(head, "Win 10: sleep mode = false")
  311. root.Anchored = false
  312. staet:Play()
  313. comp:WaitForChild("Mesh").TextureId = "rbxassetid://"..9301999281
  314. elseif key == "x" then
  315. game:GetService("TweenService"):Create(music,TweenInfo.new(2,Enum.EasingStyle.Circular,Enum.EasingDirection.Out),{PlaybackSpeed = 1}):Play()
  316. game:GetService("TweenService"):Create(wimage,TweenInfo.new(2,Enum.EasingStyle.Circular,Enum.EasingDirection.Out),{ImageTransparency = 0.3}):Play()
  317. chat(head, "Win 10: playing music")
  318. elseif key == "c" then
  319. game:GetService("TweenService"):Create(music,TweenInfo.new(2,Enum.EasingStyle.Circular,Enum.EasingDirection.Out),{PlaybackSpeed = 0}):Play()
  320. game:GetService("TweenService"):Create(wimage,TweenInfo.new(2,Enum.EasingStyle.Circular,Enum.EasingDirection.Out),{ImageTransparency = 1}):Play()
  321. chat(head, "Win 10: paused music")
  322. elseif key == "h" then
  323. hax()
  324. elseif key == "j" then
  325. victory:Play()
  326. chat(head, "Disk don't work!, Pull it again to retry!")
  327. elseif key == "u" then
  328. setup:Play()
  329. chat(head, "Pulling in the Disk or USB...")
  330. elseif key == "p" then
  331. disk:Play()
  332. chat(head, "Done!")
  333. end
  334. end)
  335. owner.Chatted:Connect(function(msge)
  336. chat(head, msge)
  337. if msge:sub(1,3) == "id/" then
  338. music.SoundId = "rbxassetid://"..msge:sub(4,155456)
  339.  
  340. chat(head, "Win 10 has changed the ID!")
  341. end
  342. end)
Add Comment
Please, Sign In to add comment