Advertisement
AxilEdits

Roblox // Test Gui

Aug 16th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.57 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local TextButton = Instance.new("TextButton")
  8. --Properties:
  9. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10.  
  11. Frame.Parent = ScreenGui
  12. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  13. Frame.Position = UDim2.new(0.926524639, 0, 0, 0)
  14. Frame.Size = UDim2.new(0, 100, 0, 824)
  15.  
  16. TextLabel.Parent = Frame
  17. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  18. TextLabel.Size = UDim2.new(0, 100, 0, 50)
  19. TextLabel.Font = Enum.Font.SourceSans
  20. TextLabel.Text = "AxilYT GUI"
  21. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  22. TextLabel.TextSize = 14
  23.  
  24. TextButton.Parent = Frame
  25. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  26. TextButton.Position = UDim2.new(0, 0, 0.0606796108, 0)
  27. TextButton.Size = UDim2.new(0, 100, 0, 50)
  28. TextButton.Font = Enum.Font.SourceSans
  29. TextButton.Text = "Cloud"
  30. TextButton.TextColor3 = Color3.new(0, 0, 0)
  31. TextButton.TextSize = 14
  32. -- Scripts:
  33.  
  34. --BUTTONNAMEHERE!.MouseButton1Down:connect(function()
  35. --Script Here
  36. --end)
  37.  
  38. --//Cloud Visualizer
  39. TextButton.MouseButton1Down:connect(function()
  40. --//FE Edit By AxilYT
  41. --//FE Script
  42. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  43. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  44. local RealPlayer = Player
  45. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  46.  
  47. --//Cloud Script
  48. print("AxilYT, Commands are !play !snow !rain !multiplier and !volume")local Player = owner
  49.  
  50. local Character = Player.Character
  51.  
  52. local H = Character["Head"]
  53.  
  54. local multiplier = 4
  55.  
  56. local Cloud = Instance.new('Part',Character)
  57.  
  58. Cloud.Size = Vector3.new(20,15,20)
  59.  
  60. Cloud.Anchored = true
  61.  
  62. Cloud.CanCollide = false
  63.  
  64. Cloud.Transparency = 0
  65.  
  66.  
  67.  
  68. local CloudMesh = Instance.new('SpecialMesh',Cloud)
  69.  
  70. CloudMesh.Scale = Vector3.new(25,10,25)
  71.  
  72. CloudMesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  73.  
  74. CloudMesh.Offset = Vector3.new(0,10,0)
  75.  
  76.  
  77. local loudness = 0
  78.  
  79.  
  80.  
  81. local S = Instance.new('Sound',Cloud)
  82.  
  83. S.SoundId = "rbxassetid://1117396305"
  84.  
  85. S.Looped = true
  86.  
  87. S.Volume = 8
  88.  
  89. S.MaxDistance = 100
  90.  
  91. S:Play()
  92.  
  93.  
  94.  
  95. local Rain = Instance.new('ParticleEmitter',Cloud)
  96.  
  97. Rain.Color = ColorSequence.new(Color3.new(1,1,1),Color3.fromRGB(175,255,255))
  98.  
  99. Rain.Size = NumberSequence.new(.5)
  100.  
  101. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  102.  
  103. Rain.Transparency = NumberSequence.new(0,.6)
  104.  
  105. Rain.Acceleration = Vector3.new(0,-150,0)
  106.  
  107. Rain.Lifetime = NumberRange.new(5,10)
  108.  
  109. Rain.Rate = 100
  110.  
  111. local rad = math.rad
  112.  
  113. local sin = math.sin
  114.  
  115. local tan = math.tan
  116.  
  117. local cos = math.cos
  118.  
  119. Player.Chatted:connect(function(m)
  120.  
  121. if m:match("!play%s%d+") then
  122.  
  123. S:Stop()
  124.  
  125. S.SoundId = "rbxassetid://"..m:match("!play%s(%d+)")
  126.  
  127. S:Play()
  128.  
  129. elseif m:match("!volume%s%d+") then
  130.  
  131. S.Volume = m:match("!volume%s(%d+)")
  132.  
  133. elseif m:match("!pitch%s%d+") then
  134.  
  135. S.Pitch = m:match("!volume%s(%d+)")
  136.  
  137. elseif m:match("!snow") then
  138.  
  139. Rain.Texture = "http://www.roblox.com/asset/?id=605668174"
  140.  
  141. Rain.Acceleration = Vector3.new(0,-10,0)
  142.  
  143. Rain.Lifetime = NumberRange.new(15,20)
  144.  
  145. Rain.Size = NumberSequence.new(.2)
  146.  
  147. elseif m:match("!rain") then
  148.  
  149. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  150.  
  151. Rain.Acceleration = Vector3.new(0,-150,0)
  152.  
  153. Rain.Lifetime = NumberRange.new(5,10)
  154.  
  155. Rain.Size = NumberSequence.new(.5)
  156.  
  157. elseif m:match("!multiplier%s%d+") then
  158.  
  159. multiplier = m:match("!multiplier%s(%d+)")
  160.  
  161. elseif m:match("!rr") then
  162.  
  163. print(Rain.Rate)
  164.  
  165. end
  166. end)
  167.  
  168.  
  169.  
  170. function Weld(x,y)
  171.  
  172. local w = Instance.new("Weld")
  173.  
  174. w.Part0 = x
  175.  
  176. w.Part1 = y
  177.  
  178. w.Name = tostring(y.Name).."_Weld"
  179.  
  180. w.Parent = x
  181.  
  182. return w
  183.  
  184. end
  185.  
  186.  
  187.  
  188. function Clerp(start,destination,increment)
  189.  
  190. local function slerp(a,b,c)return (1-c)*a+(c*b)end
  191.  
  192. local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
  193.  
  194. local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
  195.  
  196. for i,v in pairs(c1)do c1[i] = slerp(v,c2[i],increment)end
  197.  
  198. return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
  199.  
  200. end
  201.  
  202.  
  203.  
  204. while true do
  205.  
  206. Rain.Rate = (S.PlaybackLoudness + 50) * multiplier
  207.  
  208. game:GetService('RunService').RenderStepped:wait()
  209.  
  210. local HP = H.CFrame.p
  211.  
  212. local sizer = S.PlaybackLoudness/50 + 15
  213.  
  214. Cloud.Size = Vector3.new(sizer,15,sizer)
  215.  
  216. CloudMesh.Scale = Vector3.new(sizer,10,sizer)
  217.  
  218. Cloud.CFrame = Clerp(Cloud.CFrame, CFrame.new(HP + Vector3.new(0,4,0))*CFrame.Angles(0,rad(90),0), .1)
  219.  
  220. Cloud.BrickColor = BrickColor.new(Color3.fromRGB(255 - S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1))
  221. end
  222. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement