Advertisement
Guest User

axD

a guest
Aug 25th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.50 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2.  
  3. local Player,game,owner = owner,game
  4.  
  5. local RealPlayer = Player
  6.  
  7. do print("FE Compatibility code V3 by Desered_ROBLOX")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
  8.  
  9. ---[[ Cloud "Visualizer", Rushed out and made by Zuu_Roku, Credits to Cass for being a cool dood]]---
  10.  
  11. print("Made by Zuu_Roku, Commands are !play !snow !rain !multiplier and !volume")
  12.  
  13. print("Credits to Cass / PPATTA for being a cool dood")
  14.  
  15.  
  16. local Player = game.Players.LocalPlayer
  17.  
  18. local Character = Player.Character
  19.  
  20. local H = Character["Head"]
  21.  
  22. local multiplier = 4
  23.  
  24. local Cloud = Instance.new('Part',Character)
  25.  
  26. Cloud.Size = Vector3.new(20,15,20)
  27.  
  28. Cloud.Anchored = true
  29.  
  30. Cloud.CanCollide = false
  31.  
  32. Cloud.Transparency = 0
  33.  
  34.  
  35.  
  36. local CloudMesh = Instance.new('SpecialMesh',Cloud)
  37.  
  38. CloudMesh.Scale = Vector3.new(25,10,25)
  39.  
  40. CloudMesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  41.  
  42. CloudMesh.Offset = Vector3.new(0,10,0)
  43.  
  44.  
  45. local loudness = 0
  46.  
  47.  
  48.  
  49. local S = Instance.new('Sound',Cloud)
  50.  
  51. S.SoundId = "rbxassetid://911100428"
  52.  
  53. S.Looped = true
  54.  
  55. S.Volume = 8
  56.  
  57. S.MaxDistance = 100
  58.  
  59. S:Play()
  60.  
  61.  
  62.  
  63. local Rain = Instance.new('ParticleEmitter',Cloud)
  64.  
  65. Rain.Color = ColorSequence.new(Color3.new(1,1,1),Color3.fromRGB(175,255,255))
  66.  
  67. Rain.Size = NumberSequence.new(.5)
  68.  
  69. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  70.  
  71. Rain.Transparency = NumberSequence.new(0,.6)
  72.  
  73. Rain.Acceleration = Vector3.new(0,-150,0)
  74.  
  75. Rain.Lifetime = NumberRange.new(5,10)
  76.  
  77. Rain.Rate = 100
  78.  
  79. local rad = math.rad
  80.  
  81. local sin = math.sin
  82.  
  83. local tan = math.tan
  84.  
  85. local cos = math.cos
  86.  
  87. Player.Chatted:connect(function(m)
  88.  
  89. if m:match("!play%s%d+") then
  90.  
  91. S:Stop()
  92.  
  93. S.SoundId = "rbxassetid://"..m:match("!play%s(%d+)")
  94.  
  95. S:Play()
  96.  
  97. elseif m:match("!volume%s%d+") then
  98.  
  99. S.Volume = m:match("!volume%s(%d+)")
  100.  
  101. elseif m:match("!pitch%s%d+") then
  102.  
  103. S.Pitch = m:match("!volume%s(%d+)")
  104.  
  105. elseif m:match("!snow") then
  106.  
  107. Rain.Texture = "http://www.roblox.com/asset/?id=605668174"
  108.  
  109. Rain.Acceleration = Vector3.new(0,-10,0)
  110.  
  111. Rain.Lifetime = NumberRange.new(15,20)
  112.  
  113. Rain.Size = NumberSequence.new(.2)
  114.  
  115. elseif m:match("!rain") then
  116.  
  117. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  118.  
  119. Rain.Acceleration = Vector3.new(0,-150,0)
  120.  
  121. Rain.Lifetime = NumberRange.new(5,10)
  122.  
  123. Rain.Size = NumberSequence.new(.5)
  124.  
  125. elseif m:match("!multiplier%s%d+") then
  126.  
  127. multiplier = m:match("!multiplier%s(%d+)")
  128.  
  129. elseif m:match("!rr") then
  130.  
  131. print(Rain.Rate)
  132.  
  133. end
  134. end)
  135.  
  136.  
  137.  
  138. function Weld(x,y)
  139.  
  140. local w = Instance.new("Weld")
  141.  
  142. w.Part0 = x
  143.  
  144. w.Part1 = y
  145.  
  146. w.Name = tostring(y.Name).."_Weld"
  147.  
  148. w.Parent = x
  149.  
  150. return w
  151.  
  152. end
  153.  
  154.  
  155.  
  156. function Clerp(start,destination,increment)
  157.  
  158. local function slerp(a,b,c)return (1-c)*a+(c*b)end
  159.  
  160. local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
  161.  
  162. local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
  163.  
  164. for i,v in pairs(c1)do c1[i] = slerp(v,c2[i],increment)end
  165.  
  166. return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
  167.  
  168. end
  169.  
  170.  
  171.  
  172. while true do
  173.  
  174. Rain.Rate = (S.PlaybackLoudness + 50) * multiplier
  175.  
  176. game:GetService('RunService').RenderStepped:wait()
  177.  
  178. local HP = H.CFrame.p
  179.  
  180. local sizer = S.PlaybackLoudness/50 + 15
  181.  
  182. Cloud.Size = Vector3.new(sizer,15,sizer)
  183.  
  184. CloudMesh.Scale = Vector3.new(sizer,10,sizer)
  185.  
  186. Cloud.CFrame = Clerp(Cloud.CFrame, CFrame.new(HP + Vector3.new(0,4,0))*CFrame.Angles(0,rad(90),0), .1)
  187.  
  188. Cloud.BrickColor = BrickColor.new(Color3.fromRGB(255 - S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1))
  189. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement