Advertisement
Guest User

Fake Robux Button V1

a guest
Jul 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.29 KB | None | 0 0
  1. -- This script has been converted to FE by timlikekezenit
  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 by timlikekezenit")
  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. --Converted with ttyyuu12345's model to script plugin v4
  88. function sandbox(var,func)
  89. local env = getfenv(func)
  90. local newenv = setmetatable({},{
  91. __index = function(self,k)
  92. if k=="script" then
  93. return var
  94. else
  95. return env[k]
  96. end
  97. end,
  98. })
  99. setfenv(func,newenv)
  100. return func
  101. end
  102. cors = {}
  103. mas = Instance.new("Model",game:GetService("Lighting"))
  104. Model0 = Instance.new("Model")
  105. Humanoid1 = Instance.new("Humanoid")
  106. Part2 = Instance.new("Part")
  107. CylinderMesh3 = Instance.new("CylinderMesh")
  108. Part4 = Instance.new("Part")
  109. CylinderMesh5 = Instance.new("CylinderMesh")
  110. Script6 = Instance.new("Script")
  111. Model0.Name = " "
  112. Model0.Parent = mas
  113. Humanoid1.Parent = Model0
  114. Humanoid1.Health = 0
  115. Humanoid1.MaxHealth = 0
  116. Part2.Parent = Model0
  117. Part2.BrickColor = BrickColor.new("Dark stone grey")
  118. Part2.Reflectance = 0.5
  119. Part2.Anchored = true
  120. Part2.Size = Vector3.new(5, 1.20000005, 5)
  121. Part2.CFrame = CFrame.new(-26.8999996, 0.600005269, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  122. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  123. Part2.Position = Vector3.new(-26.8999996, 0.600005269, -16.4399662)
  124. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  125. CylinderMesh3.Parent = Part2
  126. Part4.Name = "Head"
  127. Part4.Parent = Model0
  128. Part4.BrickColor = BrickColor.new("Neon green")
  129. Part4.Anchored = true
  130. Part4.Size = Vector3.new(5, 1.20000005, 5)
  131. Part4.CFrame = CFrame.new(-26.8999996, 1.80000603, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  132. Part4.Color = Color3.new(1, 0, 0)
  133. Part4.Position = Vector3.new(-26.8999996, 1.80000603, -16.4399662)
  134. Part4.Color = Color3.new(1, 0, 0)
  135. CylinderMesh5.Parent = Part4
  136. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  137. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  138. Script6.Parent = Part4
  139. table.insert(cors,sandbox(Script6,function()
  140. local ONOES = Instance.new("Sound")
  141. ONOES.SoundId = "rbxassetid://199837904"
  142. ONOES.Volume = 10
  143. ONOES.EmitterSize = math.huge
  144. ONOES.Looped = false
  145. ONOES.archivable = false
  146. ONOES.Parent = workspace
  147.  
  148. --game:GetService("Debris").MaxItems = 350 -- Decrease if you have a laggy computer
  149. local s = Instance.new("Sound")
  150. s.Volume = 10
  151. s.EmitterSize = math.huge
  152. sounds = {"rbxasset://sounds\\rocket shot.wav", "rbxasset://sounds\\collide.wav"}
  153. local workspace = game.Workspace
  154.  
  155. function check(object)
  156.  
  157. if object.className == "Model" and object:findFirstChild("Humanoid") == nil then
  158. for i, v in ipairs(object:getChildren()) do
  159. check(v)
  160. wait()
  161. end
  162. end
  163. if object:IsA("Part") then
  164. local soundclone = s:Clone()
  165. soundclone.SoundId = sounds[math.random(1, 2)]
  166. game:GetService("Debris"):AddItem(object, 300)
  167. soundclone.Pitch = math.random(9, 12)/10
  168. soundclone.Parent = object
  169. delay(0.1, function() soundclone:Play() end)
  170. delay(0, function()
  171. for i = 1, 15*1.5 do
  172. local Model = Instance.new("Model",workspace)
  173. local Cloud1 = Instance.new("Part")
  174. local Cloud2 = Instance.new("Part")
  175. local Cloud1Mesh = Instance.new("SpecialMesh")
  176. local Cloud2Mesh = Instance.new("SpecialMesh")
  177. local Sound = Instance.new("Sound",workspace)
  178. local sky = Instance.new("Sky")
  179. NUKE_COLOR = 24 --Only BrickColor codes.
  180. CLOUD_TRANSPARENCY = 0.25
  181.  
  182. wait(0.001)
  183.  
  184. function radiation(hit)
  185. local h = hit.Parent:findFirstChild("Humanoid")
  186. local DAMAGE = 10
  187. if h~=nil then
  188. h.WalkSpeed = 5
  189. h.Parent["Right Leg"]:Destroy()
  190. h.Parent["Left Arm"]:Destroy()
  191. for i =1,h.MaxHealth do
  192. h.Health = h.Health - DAMAGE
  193. wait(1)
  194. end
  195. end
  196. end
  197. function unanchor (m)
  198. for _,i in pairs (m:GetChildren()) do
  199. if i:IsA("Part","Model","Union","WedgePart","CornerWedgePart") then
  200. -- i.Anchored = false
  201. local Fire = Instance.new("Fire")
  202. Fire.Parent = i
  203. Fire.Size = math.random(5,10)
  204. i.Material = "CorrodedMetal"
  205. i:BreakJoints()
  206. i.BrickColor = BrickColor.new(26)
  207. i.Touched:connect(radiation)
  208.  
  209. else
  210. unanchor(i)
  211. end
  212. end
  213. end
  214. unanchor(game.Workspace)
  215.  
  216. Sound.SoundId = "http://www.roblox.com/asset?id=2248511"
  217. Sound.PlaybackSpeed = 0.2
  218. Sound.Playing = true
  219. Sound.Volume = 10
  220.  
  221. Model.Name = "Mushroom Cloud"
  222. Cloud1.Parent = Model
  223. Cloud1.Anchored = true
  224. Cloud1.CanCollide = false
  225. Cloud1.Locked = true
  226. Cloud1Mesh.Parent = Cloud1
  227. Cloud1Mesh.MeshType = "FileMesh"
  228. Cloud1Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  229. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(95,300,195) --1999
  230. Cloud2.Parent = Model
  231. Cloud2.Anchored = true
  232. Cloud2.CanCollide = false
  233. Cloud2.Locked = true
  234. Cloud2.Position = Cloud2.Position + Vector3.new(0,587,0)
  235. Cloud2Mesh.Parent = Cloud2
  236. Cloud2Mesh.MeshType = "FileMesh"
  237. Cloud2Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  238. Cloud2Mesh.Scale = Cloud2Mesh.Scale + Vector3.new(399,399,649)
  239. Cloud1.Transparency = CLOUD_TRANSPARENCY
  240. Cloud2.Transparency = CLOUD_TRANSPARENCY
  241. Cloud1.BrickColor = BrickColor.new(NUKE_COLOR)
  242. Cloud2.BrickColor = BrickColor.new(NUKE_COLOR)
  243. sky.Parent = game.Lighting
  244. sky.Name = "NukeSky"
  245. sky.CelestialBodiesShown = true
  246. sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
  247. sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
  248. sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
  249. sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
  250. sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
  251. sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
  252. explosion = Instance.new("Explosion")
  253. explosion.Parent = game.Workspace
  254. explosion.BlastRadius = 9999999999999
  255. explosion.BlastPressure = 10000000
  256. game.Lighting.Brightness = 999
  257. game.Lighting.OutdoorAmbient = Color3.new(1,0,0)
  258. wait (1) --Fireball
  259. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --200
  260. wait (0.25)
  261. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --400
  262. wait (0.25)
  263. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --600
  264. wait (0.25)
  265. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --800
  266. wait (0.25)
  267. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1000
  268. wait (0.25)
  269. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1200
  270. wait (0.25)
  271. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1400
  272. wait (0.25)
  273. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1600
  274. wait (0.25)
  275. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,100,0) --1700
  276. wait (30) --End phase of the nuke
  277. game.Lighting.Ambient = Color3.new(0,0,0)
  278. game.Lighting.OutdoorAmbient = Color3.new(127 / 255,127 / 255,127 / 255)
  279. sky:Destroy()
  280. game.Lighting.Brightness = 1
  281. Cloud1.BrickColor = BrickColor.new(1)
  282. Cloud2.BrickColor = BrickColor.new(1)
  283. Cloud1.Transparency = 0.6
  284. Cloud2.Transparency = 0.6
  285. wait (5)
  286. Cloud1.Transparency = 0.7
  287. Cloud2.Transparency = 0.7
  288. wait (5)
  289. Cloud1.Transparency = 0.8
  290. Cloud2.Transparency = 0.8
  291. wait (5)
  292. Cloud1.Transparency = 0.9
  293. Cloud2.Transparency = 0.9
  294. wait (120)
  295. Cloud1:Destroy()
  296. Cloud2:Destroy()
  297. --BrickColor codes: http://wiki.roblox.com/index.php?title=BrickColor_codes
  298. local e = Instance.new("Explosion")
  299. e.Parent = workspace
  300. e.BlastPressure = 1e4*object:getMass()
  301. e.Position = object.Position
  302. object.Anchored = true
  303. object:BreakJoints()
  304. wait(1.5)
  305. end
  306. end)
  307.  
  308. end
  309. end
  310.  
  311. local deb = true
  312. script.Parent.Touched:connect(function(hit)
  313. if not deb then return end
  314. deb = false
  315. ONOES:Play()
  316. script.Parent.Parent.Name = ""
  317. local c = script.Parent.CFrame
  318. for i = 0, 1, 0.05 do
  319. script.Parent.CFrame = c - Vector3.new(0, i, 0)
  320. wait()
  321. end
  322. local m = Instance.new("Message")
  323. m.Text = "TACTICAL NUKE INCOMING!!"
  324. m.Parent = workspace
  325. local color = game.Lighting.Ambient
  326. delay(0, function()
  327. while true do
  328. game.Lighting.Brightness = 2
  329. game.Lighting.Ambient = Color3.new(100, 0, 0)
  330. game.Lighting.ColorShift_Top = Color3.new(1, 0, 0)
  331. game.Lighting.ColorShift_Bottom = Color3.new(1, 0, 0)
  332. wait(1)
  333. game.Lighting.Brightness = 1
  334. game.Lighting.Ambient = color
  335. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  336. game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  337. wait(1)
  338. end
  339. end)
  340. wait(5)
  341. m:remove()
  342. script.Parent.Parent.Name = "OOF"
  343. for i, v in ipairs(workspace:getChildren()) do
  344. check(v)
  345. wait()
  346. end
  347. end)
  348.  
  349. end))
  350. for i,v in pairs(mas:GetChildren()) do
  351. v.Parent = workspace
  352. pcall(function() v:MakeJoints() end)
  353. end
  354. mas:Destroy()
  355. for i,v in pairs(cors) do
  356. spawn(function()
  357. pcall(v)
  358. end)
  359. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement