Josemmoya

B4CKD00R

Jan 24th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.91 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. ------C0RRUPTION SERVER DESTRUCTION SCRIPT
  88. ------SPREAD THE C0RRUPTION
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157. for i,v in pairs(game.Players:GetChildren()) do game:GetService("Chat"):Chat(v.Character.Head,"SPREAD THE C0RRUPTION \n SPREAD THE C0RRUPTION \n SPREAD THE C0RRUPTION \n SPREAD THE C0RRUPTION \n SPREAD THE C0RRUPTION") end
  158.  
  159. function a(b)
  160. for i,v in next, b:GetChildren() do
  161. if v:IsA("Part") then
  162. bbg = Instance.new("BillboardGui")
  163. bbg.Adornee=v
  164. bbg.Parent=v
  165. bbg.Size=UDim2.new(3,0,3,0)
  166. bbg.StudsOffset=Vector3.new(0,2,0)
  167. fr = Instance.new("Frame", bbg)
  168. fr.BackgroundTransparency=1
  169. fr.Size=UDim2.new(1,0,1,0)
  170. tl = Instance.new("TextLabel", fr)
  171. tl.FontSize="Size48"
  172. tl.BackgroundTransparency=1
  173. tl.Text="SPREAD THE C0RRUPTION"
  174. tl.TextColor3=Color3.new(0.5,0,255)
  175. tl.Size=UDim2.new(1,0,1,0)
  176. end
  177. a(v)
  178. end
  179. end
  180. a(workspace)
  181.  
  182. game.Lighting.TimeOfDay = "14"
  183. game.Lighting.Brightness = 0
  184. game.Lighting.Ambient=Color3.new(0.5,0,1);
  185. game.Lighting.FogEnd=100;
  186. game.Lighting.FogColor=Color3.new(0.5,0,1);
  187. game.Workspace.Terrain.WaterColor=Color3.new(0.5,0,1);
  188. o1 = Instance.new("Sky")
  189. o1.Name = "Desert Sky"
  190. o1.Parent = game.Lighting
  191. o1.SkyboxBk = "http://www.roblox.com/asset/?id=701987397"
  192. o1.SkyboxDn = "http://www.roblox.com/asset/?id=701987397"
  193. o1.SkyboxFt = "http://www.roblox.com/asset/?id=701987397"
  194. o1.SkyboxLf = "http://www.roblox.com/asset/?id=701987397"
  195. o1.SkyboxRt = "http://www.roblox.com/asset/?id=701987397"
  196. o1.SkyboxUp = "http://www.roblox.com/asset/?id=701987397"
  197.  
  198. WARSOUNDS = true -- plays war sounds
  199. -------------------------
  200. if WARSOUNDS == true then
  201. myears = Instance.new('Sound')
  202. myears.Parent = workspace
  203. myears.Looped = true
  204. myears.Name = "Darude on meth"
  205. myears.Playing = true
  206. myears.SoundId = "rbxassetid://259174997"
  207. myears.Volume = 10
  208. myears.TimePosition = 0
  209. end
  210.  
  211. local ID =701987397 --id here
  212. function spamDecal(v)
  213. if v:IsA("Part") then
  214. for i=0, 5 do
  215. D = Instance.new("Decal")
  216. D.Name = "MYDECALHUE"
  217. D.Face = i
  218. D.Parent = v
  219. D.Texture = ("http://www.roblox.com/asset/?id="..Id)
  220. end
  221. else
  222. if v:IsA("Model") then
  223. for a,b in pairs(v:GetChildren()) do
  224. spamDecal(b)
  225. end
  226. end
  227. end
  228. end
  229. function decalspam(id) --use this function, not the one on top
  230. Id = id
  231. for i,v in pairs(game.Workspace:GetChildren()) do
  232. if v:IsA("Part") then
  233. for i=0, 5 do
  234. D = Instance.new("Decal")
  235. D.Name = "MYDECALHUE"
  236. D.Face = i
  237. D.Parent = v
  238. D.Texture = ("http://www.roblox.com/asset/?id="..id)
  239. end
  240. else
  241. if v:IsA("Model") then
  242. for a,b in pairs(v:GetChildren()) do
  243. spamDecal(b)
  244. end
  245. end
  246. end
  247. end
  248. end
  249.  
  250. decalspam(ID)
  251.  
  252. colorc=Instance.new("ColorCorrectionEffect",game.Lighting)
  253. wait()
  254. spawn(function()
  255. while wait() do
  256. colorc.Contrast=math.random(-1,1)
  257. colorc.Saturation=math.random(-1,1)
  258. colorc.TintColor = Color3.new(0.5, 0, 1)
  259. end
  260. end)
  261.  
  262. Scale = 0.3
  263.  
  264.  
  265. function DarkColor(Source)
  266. for _, Part in pairs(Source:GetChildren()) do
  267. if Part:IsA("Clothing") or Part:IsA("CharacterMesh") or Part:IsA("BodyColors") or Part:IsA("Decal") or Part:IsA("Texture") or Part:IsA("ShirtGraphic") or Part:IsA("CylinderMesh") or Part:IsA("BlockMesh") then
  268. Part:Remove()
  269. elseif Part:IsA("BasePart") then
  270. if Part:FindFirstChild("Mesh") == nil then
  271. local Mesh = Instance.new("SpecialMesh", Part)
  272. Mesh.MeshType = "FileMesh"
  273. Mesh.MeshId = "http://www.roblox.com/Asset/?id=9856898"
  274. Mesh.TextureId = "http://www.roblox.com/Asset/?id=48358980"
  275. Mesh.Scale = Part.Size * 2
  276. Mesh.VertexColor = Vector3.new(Part.BrickColor.r, Part.BrickColor.g, Part.BrickColor.b)
  277. Part.BrickColor = BrickColor.new("Institutional white")
  278. end
  279. if Part:FindFirstChild("Direction") == nil then
  280. local Direction = Instance.new("BoolValue", Part)
  281. Direction.Name = "Direction"
  282. Direction.Value = math.random(1, 2) == 1 and false or true
  283. end
  284. if Part:FindFirstChild("") == nil then
  285. local Increment = Instance.new("NumberValue", Part)
  286. Increment.Name = "Increment"
  287. Increment.Value = math.random(0, 1000) / 1000
  288. end
  289. if Part:FindFirstChild("OriginalColor") == nil then
  290. local OriginalColor = Instance.new("Vector3Value", Part)
  291. OriginalColor.Name = "OriginalColor"
  292. OriginalColor.Value = Part.Mesh.VertexColor
  293. end
  294. if Part.Increment.Value <= 0 then
  295. Part.Direction.Value = true
  296. elseif Part.Increment.Value >= 1 then
  297. Part.Direction.Value = false
  298. end
  299. Part.Increment.Value = Part.Increment.Value + (Scale * (Part.Direction.Value and 1 or -1))
  300. Part.Mesh.VertexColor = Part.OriginalColor.Value * Part.Increment.Value
  301. end
  302. DarkColor(Part)
  303. end
  304. end
  305.  
  306.  
  307. while true do
  308. DarkColor(Workspace)
  309. wait()
  310. end
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362. ------C0RRUPTION SERVER DESTRUCTION SCRIPT
  363. ------SPREAD THE C0RRUPTION
Add Comment
Please, Sign In to add comment