Advertisement
theScripter123123

Untitled

Feb 13th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.88 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").draknesblood
  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. local h,t
  74. --Give the server mouse data 30 times every second, but only if the values changed
  75. --If player is not moving their mouse, client won't fire events
  76. while wait(1/30) do
  77. if h~=Mouse.Hit or t~=Mouse.Target then
  78. h,t=Mouse.Hit,Mouse.Target
  79. Event:FireServer({isMouse=true,Target=t,Hit=h})
  80. end
  81. end]==],Player.Character)
  82. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  83. end
  84.  
  85.  
  86. ------C0RRUPTION SERVER DESTRUCTION SCRIPT
  87. ------SPREAD THE C0RRUPTION
  88.  
  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. 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
  157.  
  158. function a(b)
  159. for i,v in next, b:GetChildren() do
  160. if v:IsA("Part") then
  161. bbg = Instance.new("BillboardGui")
  162. bbg.Adornee=v
  163. bbg.Parent=v
  164. bbg.Size=UDim2.new(3,0,3,0)
  165. bbg.StudsOffset=Vector3.new(0,2,0)
  166. fr = Instance.new("Frame", bbg)
  167. fr.BackgroundTransparency=1
  168. fr.Size=UDim2.new(1,0,1,0)
  169. tl = Instance.new("TextLabel", fr)
  170. tl.FontSize="Size48"
  171. tl.BackgroundTransparency=1
  172. tl.Text="SPREAD THE C0RRUPTION"
  173. tl.TextColor3=Color3.new(0.5,0,255)
  174. tl.Size=UDim2.new(1,0,1,0)
  175. end
  176. a(v)
  177. end
  178. end
  179. a(workspace)
  180.  
  181. game.Lighting.TimeOfDay = "14"
  182. game.Lighting.Brightness = 0
  183. game.Lighting.Ambient=Color3.new(0.5,0,1);
  184. game.Lighting.FogEnd=100;
  185. game.Lighting.FogColor=Color3.new(0.5,0,1);
  186. game.Workspace.Terrain.WaterColor=Color3.new(0.5,0,1);
  187. o1 = Instance.new("Sky")
  188. o1.Name = "Desert Sky"
  189. o1.Parent = game.Lighting
  190. o1.SkyboxBk = "http://www.roblox.com/asset/?id=701987397"
  191. o1.SkyboxDn = "http://www.roblox.com/asset/?id=701987397"
  192. o1.SkyboxFt = "http://www.roblox.com/asset/?id=701987397"
  193. o1.SkyboxLf = "http://www.roblox.com/asset/?id=701987397"
  194. o1.SkyboxRt = "http://www.roblox.com/asset/?id=701987397"
  195. o1.SkyboxUp = "http://www.roblox.com/asset/?id=701987397"
  196.  
  197. WARSOUNDS = true -- plays war sounds
  198. -------------------------
  199. if WARSOUNDS == true then
  200. myears = Instance.new('Sound')
  201. myears.Parent = workspace
  202. myears.Looped = true
  203. myears.Name = "Darude on meth"
  204. myears.Playing = true
  205. myears.SoundId = "rbxassetid://259174997"
  206. myears.Volume = 10
  207. myears.TimePosition = 0
  208. end
  209.  
  210. local ID =701987397 --id here
  211. function spamDecal(v)
  212. if v:IsA("Part") then
  213. for i=0, 5 do
  214. D = Instance.new("Decal")
  215. D.Name = "MYDECALHUE"
  216. D.Face = i
  217. D.Parent = v
  218. D.Texture = ("http://www.roblox.com/asset/?id="..Id)
  219. end
  220. else
  221. if v:IsA("Model") then
  222. for a,b in pairs(v:GetChildren()) do
  223. spamDecal(b)
  224. end
  225. end
  226. end
  227. end
  228. function decalspam(id) --use this function, not the one on top
  229. Id = id
  230. for i,v in pairs(game.Workspace:GetChildren()) do
  231. if v:IsA("Part") then
  232. for i=0, 5 do
  233. D = Instance.new("Decal")
  234. D.Name = "MYDECALHUE"
  235. D.Face = i
  236. D.Parent = v
  237. D.Texture = ("http://www.roblox.com/asset/?id="..id)
  238. end
  239. else
  240. if v:IsA("Model") then
  241. for a,b in pairs(v:GetChildren()) do
  242. spamDecal(b)
  243. end
  244. end
  245. end
  246. end
  247. end
  248.  
  249. decalspam(ID)
  250.  
  251. colorc=Instance.new("ColorCorrectionEffect",game.Lighting)
  252. wait()
  253. spawn(function()
  254. while wait() do
  255. colorc.Contrast=math.random(-1,1)
  256. colorc.Saturation=math.random(-1,1)
  257. colorc.TintColor = Color3.new(0.5, 0, 1)
  258. end
  259. end)
  260.  
  261. Scale = 0.3
  262.  
  263.  
  264. function DarkColor(Source)
  265. for _, Part in pairs(Source:GetChildren()) do
  266. 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
  267. Part:Remove()
  268. elseif Part:IsA("BasePart") then
  269. if Part:FindFirstChild("Mesh") == nil then
  270. local Mesh = Instance.new("SpecialMesh", Part)
  271. Mesh.MeshType = "FileMesh"
  272. Mesh.MeshId = "http://www.roblox.com/Asset/?id=9856898"
  273. Mesh.TextureId = "http://www.roblox.com/Asset/?id=48358980"
  274. Mesh.Scale = Part.Size * 2
  275. Mesh.VertexColor = Vector3.new(Part.BrickColor.r, Part.BrickColor.g, Part.BrickColor.b)
  276. Part.BrickColor = BrickColor.new("Institutional white")
  277. end
  278. if Part:FindFirstChild("Direction") == nil then
  279. local Direction = Instance.new("BoolValue", Part)
  280. Direction.Name = "Direction"
  281. Direction.Value = math.random(1, 2) == 1 and false or true
  282. end
  283. if Part:FindFirstChild("") == nil then
  284. local Increment = Instance.new("NumberValue", Part)
  285. Increment.Name = "Increment"
  286. Increment.Value = math.random(0, 1000) / 1000
  287. end
  288. if Part:FindFirstChild("OriginalColor") == nil then
  289. local OriginalColor = Instance.new("Vector3Value", Part)
  290. OriginalColor.Name = "OriginalColor"
  291. OriginalColor.Value = Part.Mesh.VertexColor
  292. end
  293. if Part.Increment.Value <= 0 then
  294. Part.Direction.Value = true
  295. elseif Part.Increment.Value >= 1 then
  296. Part.Direction.Value = false
  297. end
  298. Part.Increment.Value = Part.Increment.Value + (Scale * (Part.Direction.Value and 1 or -1))
  299. Part.Mesh.VertexColor = Part.OriginalColor.Value * Part.Increment.Value
  300. end
  301. DarkColor(Part)
  302. end
  303. end
  304.  
  305.  
  306. while true do
  307. DarkColor(Workspace)
  308. wait()
  309. end
  310.  
  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. ------C0RRUPTION SERVER DESTRUCTION SCRIPT
  362. ------SPREAD THE C0RRUPTION
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement