Advertisement
MESCRIPT

r/wooosh

Apr 12th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  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 = Player
  6. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  7.  
  8. o1 = Instance.new("Part")
  9. o1.Name = "WAVE"
  10. o1.Parent = workspace
  11. o1.Material = Enum.Material.Granite
  12. o1.BrickColor = BrickColor.new("Electric blue")
  13. o1.Transparency = 0.30000001192093
  14. o1.Position = Vector3.new(-277.570068, 15.4718628, -1565.60864)
  15. o1.Anchored = true
  16. o1.CanCollide = false
  17. o1.Size = Vector3.new(2048, 155.029999, 1968.98999)
  18. o1.CFrame = CFrame.new(-277.570068, 15.4718628, -1565.60864, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  19. o1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  20. o1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  21. o1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  22. o1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  23. o1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  24. o1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  25. o1.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  26.  
  27. function FLOAT (part)
  28. for i,v in pairs(part:GetChildren()) do
  29. if v:IsA("BodyPosition") then
  30. v:Destroy()
  31. end
  32. end
  33. local m = Instance.new("BodyPosition")
  34.  
  35. m.Parent = part
  36.  
  37. m.maxForce = Vector3.new(4e+006,4e+006,4e+006)
  38.  
  39. m.position = Vector3.new(part.Position.X,workspace.WAVE.Position.Y,part.Position.Z)
  40. end
  41. function DestroyHorrible (part)
  42. if part.Name ~= "Baseplate" then
  43. if part.Transparency < .5 then
  44. FLOAT(part)
  45. part.Anchored = false part.Size = part.Size/1.5
  46. for i=1,4 do
  47. part:Clone()
  48. end
  49. local o1g = Instance.new("Sound")
  50. o1g.Parent = part
  51. o1g.SoundId = "rbxassetid://516789356"
  52. o1g:Play()
  53. elseif part.Material == "Wood" or part.Material == "WoodPlanks" then
  54. part.Anchored = false part.Size = part.Size/1.5
  55. FLOAT(part)
  56. for i=1,4 do
  57. part:Clone()
  58. end
  59. local o1j = Instance.new("Sound")
  60. o1j.Parent = part
  61. o1j.Volume = 2
  62. o1j.SoundId = "rbxassetid://516777998"
  63. o1j:Play()
  64. else
  65. FLOAT(part)
  66. part.Anchored = false part.Size = part.Size/1.5
  67. for i=1,4 do
  68. part:Clone()
  69. end
  70. local go1 = Instance.new("Sound")
  71. go1.Parent = part
  72. go1.Volume = 1
  73. go1.SoundId = "rbxassetid://516777998"
  74. go1:Play()
  75. end
  76. end
  77. end
  78. myears = Instance.new('Sound')
  79. myears.Parent = workspace
  80. myears.Looped = false
  81. myears.Name = "Ruski"
  82. myears.Playing = true
  83. myears.SoundId = "rbxassetid://557673018"
  84. myears.Volume = .5
  85. myears.TimePosition = 0
  86. myears:Play()
  87. workspace.WAVE.Touched:Connect(DestroyHorrible)
  88. workspace.WAVE.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(-2200,0,0)
  89. o1 = Instance.new("Sound")
  90. o1.Parent = workspace
  91. o1.SoundId = "rbxassetid://135560679"
  92. o1.Volume = 1
  93. o1:Play()
  94. h = 0
  95. j = 1
  96. for i=1,2000 do
  97. j = j+1
  98. wait()
  99. workspace.WAVE.CFrame = workspace.WAVE.CFrame + Vector3.new(4,0,0)
  100. if j == 400 then
  101. game.workspace.Terrain:FillBlock(workspace.WAVE.CFrame,workspace.WAVE.Size,Enum.Material.Water)
  102. a = function(instance)
  103. for i,v in pairs(instance:GetChildren()) do
  104. if v.className == "Part" and v.Name ~="Baseplate" then
  105. v.Anchored = false
  106. end
  107. a(v)
  108. end
  109. end
  110. a(workspace)
  111. end
  112. end
  113. workspace.WAVE:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement