Advertisement
5325325325

Untitled

Nov 29th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 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 = owner
  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 h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. local workspace = workspace:GetChildren()
  87. for i=1,#workspace do
  88. local fire = Instance.new("Fire",workspace[i])
  89. fire.Size = 100
  90. end
  91.  
  92.  
  93. local blur = Instance.new("BlurEffect",game.Lighting)
  94. blur.Size = 20
  95.  
  96. local bloom = Instance.new("BloomEffect",game.Lighting)
  97. bloom.Intensity = 1
  98. bloom.Size = 100
  99. bloom.Threshold = 0.1
  100.  
  101. local cc = Instance.new("ColorCorrectionEffect",game.Lighting)
  102. cc.Contrast = 1
  103. cc.Brightness = 0.55
  104. cc.Saturation = 1
  105. cc.TintColor = Color3.new(255/255,0/255,0/255)
  106.  
  107. local sound = Instance.new("Sound",game.Workspace)
  108. sound.Name = "Purge"
  109. sound.Looped = true
  110. sound.Volume = 10
  111. sound.SoundId = "rbxassetid://232554097"
  112. sound:Play()
  113.  
  114. local sound = Instance.new("Sound",game.Workspace)
  115. sound.Name = "JurassicMelodica"
  116. sound.Looped = true
  117. sound.Volume = 10
  118. sound.SoundId = "rbxassetid://261180562"
  119. sound:Play()
  120.  
  121. local sound = Instance.new("Sound",game.Workspace)
  122. sound.Name = "YandereLaugh"
  123. sound.Looped = true
  124. sound.Volume = 10
  125. sound.SoundId = "rbxassetid://592306650"
  126. sound:Play()
  127.  
  128. local a=Instance.new("Sky",game.Lighting)
  129.  
  130. local b={"Bk","Dn","Ft","Lf","Rt","Up"}
  131.  
  132. for i,v in pairs(b) do
  133.  
  134. a["Skybox"..v]="rbxassetid://479777511"
  135. end
  136. for i, v in pairs(game.Players:GetChildren()) do
  137. local pe = Instance.new("ParticleEmitter",v.Character.Torso)
  138. pe.Texture = "http://www.roblox.com/asset/?id=479777511"
  139. pe.VelocitySpread = 50
  140. end
  141.  
  142. for i, v in pairs(game.Players:GetChildren()) do
  143. local pe = Instance.new("ParticleEmitter",v.Character.Torso)
  144. pe.Texture = "http://www.roblox.com/asset/?id=479777511"
  145. pe.VelocitySpread = 50
  146. end
  147.  
  148. for i,v in pairs(game.Players:GetChildren()) do
  149. game:GetService("Chat"):Chat(v.Character.Head,"WELCOME TO POUND TOWN YOU FILTHY FUCKIN JEWS HAHAHAHA")
  150. end
  151.  
  152. game.Workspace.Camera.FieldOfView = 50
  153.  
  154. for i,v in pairs(game.Players:GetChildren()) do
  155. v.CameraMaxZoomDistance = 10
  156. v.CameraMinZoomDistance = 10
  157. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement