Advertisement
yougotoof

fun

Oct 16th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.31 KB | None | 0 0
  1. for i,v in pairs(game.Players:GetPlayers()) do
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,game,owner = owner,game
  5. local RealPlayer = v
  6. do
  7. print("FE Compatibility code V2 by Mokiros")
  8. local RealPlayer = RealPlayer
  9. script.Parent = RealPlayer.Character
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local Disconnect_Function = function(this)
  13. this[1].Functions[this[2]] = nil
  14. end
  15. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  16. local FakeEvent_Metatable = {__index={
  17. Connect = function(this,f)
  18. local i = tostring(math.random(0,10000))
  19. while this.Functions[i] do
  20. i = tostring(math.random(0,10000))
  21. end
  22. this.Functions[i] = f
  23. return setmetatable({this,i},Disconnect_Metatable)
  24. end
  25. }}
  26. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  27. local function fakeEvent()
  28. return setmetatable({Functions={}},FakeEvent_Metatable)
  29. end
  30.  
  31. --Creating fake input objects with fake variables
  32. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  33. FakeMouse.keyUp = FakeMouse.KeyUp
  34. FakeMouse.keyDown = FakeMouse.KeyDown
  35. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  36. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  37. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  38. end}
  39. --Merged 2 functions into one by checking amount of arguments
  40. CAS.UnbindAction = CAS.BindAction
  41.  
  42. --This function will trigger the events that have been :Connect()'ed
  43. local function TriggerEvent(self,ev,...)
  44. for _,f in pairs(self[ev].Functions) do
  45. f(...)
  46. end
  47. end
  48. FakeMouse.TriggerEvent = TriggerEvent
  49. UIS.TriggerEvent = TriggerEvent
  50.  
  51. --Client communication
  52. local Event = Instance.new("RemoteEvent")
  53. Event.Name = "UserInput_Event"
  54. Event.OnServerEvent:Connect(function(plr,io)
  55. if plr~=RealPlayer then return end
  56. FakeMouse.Target = io.Target
  57. FakeMouse.Hit = io.Hit
  58. if not io.isMouse then
  59. local b = io.UserInputState == Enum.UserInputState.Begin
  60. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  61. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  62. end
  63. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  64. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  65. end
  66. for _,t in pairs(CAS.Actions) do
  67. for _,k in pairs(t.Keys) do
  68. if k==io.KeyCode then
  69. t.Function(t.Name,io.UserInputState,io)
  70. end
  71. end
  72. end
  73. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  74. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  75. end
  76. end)
  77. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  78. local Mouse = owner:GetMouse()
  79. local UIS = game:GetService("UserInputService")
  80. local input = function(io,RobloxHandled)
  81. if RobloxHandled then return end
  82. --Since InputObject is a client-side instance, we create and pass table instead
  83. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  84. end
  85. UIS.InputBegan:Connect(input)
  86. UIS.InputEnded:Connect(input)
  87.  
  88. local h,t
  89. --Give the server mouse data every second frame, but only if the values changed
  90. --If player is not moving their mouse, client won't fire events
  91. local HB = game:GetService("RunService").Heartbeat
  92. while true do
  93. if h~=Mouse.Hit or t~=Mouse.Target then
  94. h,t=Mouse.Hit,Mouse.Target
  95. Event:FireServer({isMouse=true,Target=t,Hit=h})
  96. end
  97. --Wait 2 frames
  98. for i=1,2 do
  99. HB:Wait()
  100. end
  101. end]==],script)
  102.  
  103. ----Sandboxed game object that allows the usage of client-side methods and services
  104. --Real game object
  105. local RealGame = game
  106.  
  107. --Metatable for fake service
  108. local FakeService_Metatable = {
  109. __index = function(self,k)
  110. local s = rawget(self,"_RealService")
  111. if s then
  112. return typeof(s[k])=="function"
  113. and function(_,...)return s[k](s,...)end or s[k]
  114. end
  115. end,
  116. __newindex = function(self,k,v)
  117. local s = rawget(self,"_RealService")
  118. if s then s[k]=v end
  119. end
  120. }
  121. local function FakeService(t,RealService)
  122. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  123. return setmetatable(t,FakeService_Metatable)
  124. end
  125.  
  126. --Fake game object
  127. local FakeGame = {
  128. GetService = function(self,s)
  129. return rawget(self,s) or RealGame:GetService(s)
  130. end,
  131. Players = FakeService({
  132. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  133. },"Players"),
  134. UserInputService = FakeService(UIS,"UserInputService"),
  135. ContextActionService = FakeService(CAS,"ContextActionService"),
  136. RunService = FakeService({
  137. _btrs = {},
  138. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  139. BindToRenderStep = function(self,name,_,fun)
  140. self._btrs[name] = self.Heartbeat:Connect(fun)
  141. end,
  142. UnbindFromRenderStep = function(self,name)
  143. self._btrs[name]:Disconnect()
  144. end,
  145. },"RunService")
  146. }
  147. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  148. FakeGame.service = FakeGame.GetService
  149. FakeService(FakeGame,game)
  150. --Changing owner to fake player object to support owner:GetMouse()
  151. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  152. end
  153. --//Paste script below this line.
  154. local Sound = Instance.new("Sound")
  155. Sound.Parent = workspace
  156. Sound.Volume = 3.5
  157. local Player = game.Players.LocalPlayer
  158. repeat wait() until Player.Character ~= nil
  159. local Character = Player.Character
  160. local Torso = Character:WaitForChild("HumanoidRootPart")
  161.  
  162. math.randomseed(tick())
  163. active = true
  164.  
  165. if Character:FindFirstChild("Brzad") == nil then
  166. local tag = Instance.new("BoolValue",Character)
  167. tag.Name = "Brzad"
  168. spawn(function()
  169. wait(10)
  170. Character["Left Leg"]:Destroy()
  171. Character["Right Leg"]:Destroy()
  172. end)
  173. local Camera = game.Workspace.CurrentCamera
  174.  
  175. local RunService = game:GetService("RunService")
  176.  
  177. local Songs = {
  178. "http://www.roblox.com/asset/?id=147788015", -- Momba trap
  179. "http://www.roblox.com/asset/?id=173038059",
  180. "http://www.roblox.com/asset/?id=149434122",
  181. }
  182. Sound.SoundId = Songs[math.random(1,#Songs)]
  183.  
  184. function TweenFieldOfView(Amount,Bool)
  185. if Bool then
  186. for i = 1,Amount do
  187. Camera.FieldOfView = Camera.FieldOfView + math.random(1,2)
  188. -- RunService.RenderStepped:wait()
  189. local rando = math.random(1,60)
  190. if rando == 60 then
  191. local old = Camera.FieldOfView
  192. Camera.FieldOfView = 10
  193. game.Lighting.FogColor = Color3.new(math.random(1000160,340000160)/255, math.random(1000160,340000160)/255, math.random(1000160,340000160)/255)
  194. game.Lighting.ColorShift_Bottom = Color3.new(math.random(0,270000160)/255, math.random(0,270000160)/255, math.random(0,270000160)/255)
  195. game.Lighting.ColorShift_Top = Color3.new(math.random(0,270000160)/255, math.random(0,270000160)/255, math.random(0,270000160)/255)
  196. game.Lighting.OutdoorAmbient = Color3.new(math.random(0,270000160)/255, math.random(0,270000160)/255, math.random(0,270000160)/255)
  197. wait()
  198. Camera.FieldOfView = old
  199. elseif rando <= 3 then
  200. local old = Camera.FieldOfView
  201. Camera.FieldOfView = Camera.FieldOfView + 30
  202. wait()
  203. Camera.FieldOfView = old
  204. end
  205. wait()
  206. end -- 90
  207. else
  208. for i = 1,Amount do
  209. Camera.FieldOfView = Camera.FieldOfView - math.random(1,2)
  210. -- RunService.RenderStepped:wait()
  211. local rando = math.random(1,20)
  212. wait()
  213. end -- 90
  214. end
  215. end
  216.  
  217. Sound:Play()
  218.  
  219. spawn(function()
  220. while active do
  221. local rando = math.random(-2,2)
  222. if Sound.Pitch < 0.2 then
  223. rando = rando + 2
  224. elseif Sound.Pitch > 2 then
  225. rando = rando - 1
  226. elseif Sound.Pitch > 2.6 then
  227. rando = rando -2
  228. end
  229. Sound.Pitch = Sound.Pitch + rando/50
  230. wait()
  231. end
  232. end)
  233. spawn(function()
  234. while active do
  235. -- 70 = norm
  236. TweenFieldOfView(80,true) -- 90
  237. TweenFieldOfView(60,false) -- 30
  238. TweenFieldOfView(40,true) -- 70
  239. TweenFieldOfView(5,false) -- 40
  240. TweenFieldOfView(50,true) -- 90
  241. TweenFieldOfView(100,false) -- 70
  242. TweenFieldOfView(40,true) -- 70
  243. TweenFieldOfView(5,false) -- 40
  244. TweenFieldOfView(20,false) -- 30
  245. TweenFieldOfView(30,false) -- 30
  246. TweenFieldOfView(5,false) -- 40
  247. TweenFieldOfView(20,false) -- 30
  248. TweenFieldOfView(30,false) -- 30
  249. TweenFieldOfView(5,false) -- 40
  250. TweenFieldOfView(20,false) -- 30
  251. TweenFieldOfView(15,false) -- 30
  252. TweenFieldOfView(5,false) -- 40
  253. TweenFieldOfView(20,false) -- 30
  254. TweenFieldOfView(15,false) -- 30
  255. TweenFieldOfView(5,false) -- 40
  256. TweenFieldOfView(20,false) -- 30
  257. TweenFieldOfView(15,false) -- 30
  258. TweenFieldOfView(5,false) -- 40
  259. TweenFieldOfView(20,false) -- 30
  260. TweenFieldOfView(15,false) -- 30
  261. TweenFieldOfView(5,false) -- 40
  262. TweenFieldOfView(20,false) -- 30
  263. TweenFieldOfView(15,false) -- 30
  264. TweenFieldOfView(5,false) -- 40
  265. TweenFieldOfView(20,false) -- 30
  266. TweenFieldOfView(15,false) -- 30
  267. TweenFieldOfView(5,false) -- 40
  268. TweenFieldOfView(20,false) -- 30
  269. TweenFieldOfView(15,false) -- 30
  270. TweenFieldOfView(5,false) -- 40
  271. TweenFieldOfView(20,false) -- 30
  272. TweenFieldOfView(15,false) -- 30
  273. end
  274. end)
  275.  
  276. spawn(function()
  277.  
  278.  
  279. game.Lighting.Ambient = Color3.new(0,0,0)
  280. game.Lighting.Brightness = 99
  281. game.Lighting.ColorShift_Bottom = Color3.new(270000160/255, 280000160/255, 0)
  282. game.Lighting.ColorShift_Top = Color3.new(270000160/255, 0, 260000160/255)
  283. game.Lighting.OutdoorAmbient = Color3.new(0, 280000160/255, 260000160/255)
  284. game.Lighting.FogColor = Color3.new(270000160/255, 280000160/255, 260000160/255)
  285. game.Lighting.FogEnd = 1e+014
  286. game.Lighting.FogStart = 0
  287.  
  288. while active do
  289. RunService.RenderStepped:wait()
  290. game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+2)
  291. end
  292.  
  293. end)
  294.  
  295. local X_angle = 0
  296. local Y_angle = 0
  297. local Z_angle = 0
  298.  
  299. local X = 0
  300. local Y = 2
  301. local Z = 10
  302.  
  303. spawn(function()
  304. wait(5)
  305. game.Players.LocalPlayer.Character.Archivable = true
  306. local model = Instance.new("Model",game.Players.LocalPlayer.Character)
  307. local index = 4
  308. while active do
  309. index = index * 0.93
  310. for i,v in pairs(v.Character:GetChildren()) do
  311. if v:IsA("BasePart") then
  312. v.Archivable = true
  313. local fun = v:Clone()
  314. fun.Name = "Fun"
  315. fun.CFrame = v.CFrame
  316. fun.Parent = model
  317. fun.CanCollide = true
  318. fun.Anchored = false
  319. end
  320. end
  321. wait(index)
  322. end
  323. end)
  324.  
  325. spawn(function()
  326. wait(40)
  327. active = false
  328. workspace.CurrentCamera.FieldOfView = 90
  329. game.Lighting.Ambient = Color3.new(60/255,60/255,60/255)
  330. game.Lighting.Brightness = 1
  331. game.Lighting.ColorShift_Bottom = Color3.new(0,0,0)
  332. game.Lighting.ColorShift_Top = Color3.new(0,0,0)
  333. game.Lighting.OutdoorAmbient = Color3.new(150/255,150/255,150/255)
  334. game.Lighting.FogStart = 0
  335. game.Lighting.FogEnd = 100000
  336. game.Lighting.FogColor = Color3.new(191/255,191/255,191/255)
  337. game.Players.LocalPlayer.Character.Humanoid.Health=0
  338. end)
  339.  
  340. spawn(function()
  341. wait(10)
  342. while active do
  343. local explode = Instance.new("Explosion",workspace)
  344. explode.Position = game.Players.LocalPlayer.Character.PrimaryPart.Position + Vector3.new(math.random(-100,100),math.random(-10,40),math.random(-100,100))
  345. explode.BlastPressure = 0
  346. wait()
  347. end
  348. end)
  349.  
  350. while active do
  351. Camera.CoordinateFrame = CFrame.new(Torso.Position) --Start at the position of the part
  352. * CFrame.Angles(X_angle, Y_angle, Z_angle) --Rotate by the angle
  353. * CFrame.new(X,Y,Z) --Move the camera backwards 5 units
  354. X_angle = X_angle + math.rad(math.random(0,5))
  355. Y_angle = Y_angle + math.rad(4)
  356. Z_angle = Z_angle + math.rad(math.random(0,5))
  357. local rando = math.random(1,10)
  358. if rando == 10 then
  359. old = Z_angle
  360. Z_angle = Z_angle - math.rad(math.random(10,20))
  361. wait()
  362. Z_angle = old
  363. elseif rando == 1 then
  364. old = Y_angle
  365. Y_angle = Y_angle - math.rad(math.random(10,20))
  366. wait()
  367. Y_angle = old
  368. end
  369.  
  370. --X = X_angle / 2
  371. RunService.RenderStepped:wait()
  372. wait()
  373. end
  374. end
  375. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement