Advertisement
valentino2016

Noot Noot Fe

Mar 12th, 2019
1,482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. --loadstring(game:GetObjects("rbxassetid://382365669")[1].Source)()
  89.  
  90. local msg = Instance.new("Message",workspace)
  91. msg.Text = "Created By SageOfMumsV2 (Pingu) And Xeradius (AzuLX). - Noot Noot Script"
  92. wait(2)
  93. msg:Destroy()
  94. pingudecal = "http://www.roblox.com/asset/?id=382332426"
  95. local didpingu = false
  96. local ScreenGui = Instance.new("ScreenGui",game.Players.owner.PlayerGui)
  97. ScreenGui.Name = "nooties"
  98. local asd = Instance.new("TextButton",ScreenGui)
  99. asd.BackgroundColor3 = Color3.new(0,0,0)
  100. asd.BorderColor3 = Color3.new(0,0,0)
  101. asd.Name = "nooties"
  102. asd.Position = UDim2.new(1,-150,1,-90)
  103. asd.Size = UDim2.new(0,150,0,45)
  104. asd.Font = "SourceSansBold"
  105. asd.FontSize = "Size32"
  106. asd.Text = "Noot Noot!"
  107. asd.TextColor3 = Color3.new(255,255,255)
  108. asd.MouseButton1Down:connect(function()
  109. if didpingu == false then
  110. didpingu = true
  111. for i,v in pairs(game.Players:GetChildren()) do
  112. if v:IsA("Player") then
  113. local nooties = Instance.new("Sound",workspace)
  114. nooties.SoundId = "http://www.roblox.com/asset/?id="
  115. nooties.Volume = 1
  116. nooties.Looped = true
  117. nooties:Play()
  118. end
  119. end
  120. local Sky = Instance.new("Sky",game.Lighting)
  121. Sky.SkyboxBk = pingudecal
  122. Sky.SkyboxDn = pingudecal
  123. Sky.SkyboxFt = pingudecal
  124. Sky.SkyboxLf = pingudecal
  125. Sky.SkyboxRt = pingudecal
  126. Sky.SkyboxUp = pingudecal
  127. local function modelasd()
  128. for i,v in pairs(workspace:GetChildren()) do
  129. if v:IsA("Model") then
  130. for i,a in pairs(v:GetChildren()) do
  131. local top = Instance.new("Decal",a)
  132. top.Face = "Top"
  133. top.Texture = pingudecal
  134. local btm = Instance.new("Decal",a)
  135. btm.Face = "Bottom"
  136. btm.Texture = pingudecal
  137. local lft = Instance.new("Decal",a)
  138. lft.Face = "Left"
  139. lft.Texture = pingudecal
  140. local rft = Instance.new("Decal",a)
  141. rft.Face = "Right"
  142. rft.Texture = pingudecal
  143. local frnt = Instance.new("Decal",a)
  144. frnt.Face = "Front"
  145. frnt.Texture = pingudecal
  146. local bk = Instance.new("Decal",a)
  147. bk.Face = "Back"
  148. bk.Texture = pingudecal
  149. local VTest = Instance.new("ParticleEmitter")
  150. VTest.Parent = a
  151. VTest.Texture = pingudecal
  152. VTest.Speed = NumberRange.new(200)
  153. VTest.Rate = 200
  154. VTest.Size = NumberSequence.new(10000,10000)
  155. VTest.Lifetime = NumberRange.new(1000)
  156. local pepe = coroutine.create(function()
  157. while wait() do
  158. local Explosion = Instance.new("Explosion",a)
  159. Explosion.BlastRadius = 10000
  160. end
  161. end)
  162. coroutine.resume(pepe)
  163. end
  164. end
  165. end
  166. end
  167. local function partasd()
  168. for i,a in pairs(workspace:GetChildren()) do
  169. local top = Instance.new("Decal",a)
  170. top.Face = "Top"
  171. top.Texture = pingudecal
  172. local btm = Instance.new("Decal",a)
  173. btm.Face = "Bottom"
  174. btm.Texture = pingudecal
  175. local lft = Instance.new("Decal",a)
  176. lft.Face = "Left"
  177. lft.Texture = pingudecal
  178. local rft = Instance.new("Decal",a)
  179. rft.Face = "Right"
  180. rft.Texture = pingudecal
  181. local frnt = Instance.new("Decal",a)
  182. frnt.Face = "Front"
  183. frnt.Texture = pingudecal
  184. local bk = Instance.new("Decal",a)
  185. bk.Face = "Back"
  186. bk.Texture = pingudecal
  187. local VTest = Instance.new("ParticleEmitter")
  188. VTest.Parent = a
  189. VTest.Texture = pingudecal
  190. VTest.Speed = NumberRange.new(200)
  191. VTest.Rate = 200
  192. VTest.Lifetime = NumberRange.new(1000)
  193. VTest.Size = NumberSequence.new(10000,10000)
  194. local pepe = coroutine.create(function()
  195. while wait() do
  196. if a.Name ~= "Head" or "Torso" or "Left Arm" or "Right Arm" or "Left Leg" or "Right Leg" then
  197. local Explosion = Instance.new("Explosion",a)
  198. Explosion.BlastRadius = 10000
  199. end
  200. end
  201. end)
  202. coroutine.resume(pepe)
  203. end
  204. end
  205. partasd()
  206. modelasd()
  207. else
  208. warn("Already Ran! Did not execute the script!")
  209. end
  210. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement