SHARE
TWEET

umbrella

ByJugator340 Sep 20th, 2019 (edited) 161 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[|                          |]--
  2. --[|  Created by ByJugator340 |]--
  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,UserInputService,ContextActionService = owner
  6. local Mouse = owner:GetMouse()
  7. do script.Parent=Player.Character;local a=Instance.new("RemoteEvent")a.Name="UserInput_Event"local function b()local c={_fakeEvent=true,Connect=function(self,d)self.Function=d end}c.connect=c.Connect;return c end;local e={Target=nil,Hit=CFrame.new(),KeyUp=b(),KeyDown=b(),Button1Up=b(),Button1Down=b()}local f={InputBegan=b(),InputEnded=b()}local CAS={Actions={},BindAction=function(self,g,h,i,...)CAS.Actions[g]=h and{Name=g,Function=h,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function j(self,k,...)local c=e[k]if c and c._fakeEvent and c.Function then c.Function(...)end end;e.TrigEvent=j;f.TrigEvent=j;a.OnServerEvent:Connect(function(l,m)if l~=Player then return end;if m.isMouse then e.Target=m.Target;e.Hit=m.Hit else local n=m.UserInputState==Enum.UserInputState.Begin;if m.UserInputType==Enum.UserInputType.MouseButton1 then return e:TrigEvent(n and"Button1Down"or"Button1Up")end;for o,c in pairs(CAS.Actions)do for o,p in pairs(c.Keys)do if p==m.KeyCode then c.Function(c.Name,m.UserInputState,m)end end end;e:TrigEvent(n and"KeyDown"or"KeyUp",m.KeyCode.Name:lower())f:TrigEvent(n and"InputBegan"or"InputEnded",m,false)end end)a.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;b:FireServer({KeyCode=e.KeyCode,UserInputType=e.UserInputType,UserInputState=e.UserInputState})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g=a:GetMouse()local h,i;while wait(1/30)do if h~=g.Hit or i~=g.Target then h,i=g.Hit,g.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)Mouse,mouse,UserInputService,ContextActionService=e,e,f,CAS end--      [[[
  8. wait(0.2)
  9. --------------------------------------------
  10. --||||||||||||||Start Variables||||||||||--
  11. --------------------------------------------
  12. local character = owner.Character
  13. local raining = false
  14. local new = Instance.new
  15. local ro = owner.Character.HumanoidRootPart
  16. --------------------------------------------
  17. --||||||||||||||End Variables|||||||||||||--
  18. --------------------------------------------
  19. local tool = new("Tool",owner.Backpack)
  20. tool.RequiresHandle = true
  21. tool.CanBeDropped = false
  22. tool.TextureId = "rbxassetid://43996751"
  23. tool.GripPos = Vector3.new(0, -3.2, 0)
  24. tool.GripRight = Vector3.new(0,0,1)
  25. tool.GripUp = Vector3.new(0,1,0)
  26. tool.GripForward = Vector3.new(1,0,0)
  27. local rainsound =new("Sound",ro)
  28. rainsound.SoundId = "rbxassetid://130852656"
  29. rainsound.Volume = 5
  30. rainsound.Looped = true
  31. local actualsong = new("Sound",ro)
  32. actualsong.SoundId = "rbxassetid://270093405"
  33. actualsong.Volume = 0.9
  34. actualsong.Looped = true
  35. --------------------------------------------
  36. --Start Perfection weld thingy-- --credits to Quenty
  37. --------------------------------------------
  38. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  39.  
  40.  
  41. local function CallOnChildren(Instance, FunctionToCall)
  42.     -- Calls a function on each of the children of a certain object, using recursion.  
  43.  
  44.     FunctionToCall(Instance)
  45.  
  46.     for _, Child in next, Instance:GetChildren() do
  47.         CallOnChildren(Child, FunctionToCall)
  48.     end
  49. end
  50.  
  51. local function GetNearestParent(Instance, ClassName)
  52.     -- Returns the nearest parent of a certain class, or returns nil
  53.  
  54.     local Ancestor = Instance
  55.     repeat
  56.         Ancestor = Ancestor.Parent
  57.         if Ancestor == nil then
  58.             return nil
  59.         end
  60.     until Ancestor:IsA(ClassName)
  61.  
  62.     return Ancestor
  63. end
  64.  
  65. local function GetBricks(StartInstance)
  66.     local List = {}
  67.  
  68.     -- if StartInstance:IsA("BasePart") then
  69.     --  List[#List+1] = StartInstance
  70.     -- end
  71.  
  72.     CallOnChildren(StartInstance, function(Item)
  73.         if Item:IsA("BasePart") then
  74.             List[#List+1] = Item;
  75.         end
  76.     end)
  77.  
  78.     return List
  79. end
  80.  
  81. local function Modify(Instance, Values)
  82.     -- Modifies an Instance by using a table.  
  83.  
  84.     assert(type(Values) == "table", "Values is not a table");
  85.  
  86.     for Index, Value in next, Values do
  87.         if type(Index) == "number" then
  88.             Value.Parent = Instance
  89.         else
  90.             Instance[Index] = Value
  91.         end
  92.     end
  93.     return Instance
  94. end
  95.  
  96. local function Make(ClassType, Properties)
  97.     -- Using a syntax hack to create a nice way to Make new items.  
  98.  
  99.     return Modify(Instance.new(ClassType), Properties)
  100. end
  101.  
  102. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  103. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  104.  
  105. local function HasWheelJoint(Part)
  106.     for _, SurfaceName in pairs(Surfaces) do
  107.         for _, HingSurfaceName in pairs(HingSurfaces) do
  108.             if Part[SurfaceName].Name == HingSurfaceName then
  109.                 return true
  110.             end
  111.         end
  112.     end
  113.    
  114.     return false
  115. end
  116.  
  117. local function ShouldBreakJoints(Part)
  118.     --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  119.     --  definitely some edge cases.
  120.  
  121.     if NEVER_BREAK_JOINTS then
  122.         return false
  123.     end
  124.    
  125.     if HasWheelJoint(Part) then
  126.         return false
  127.     end
  128.    
  129.     local Connected = Part:GetConnectedParts()
  130.    
  131.     if #Connected == 1 then
  132.         return false
  133.     end
  134.    
  135.     for _, Item in pairs(Connected) do
  136.         if HasWheelJoint(Item) then
  137.             return false
  138.         elseif not Item:IsDescendantOf(tool) then
  139.             return false
  140.         end
  141.     end
  142.    
  143.     return true
  144. end
  145.  
  146. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  147.     --- Weld's 2 parts together
  148.     -- @param Part0 The first part
  149.     -- @param Part1 The second part (Dependent part most of the time).
  150.     -- @param [JointType] The type of joint. Defaults to weld.
  151.     -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  152.     -- @return The weld created.
  153.  
  154.     JointType = JointType or "Weld"
  155.     local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  156.    
  157.     local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  158.     Modify(NewWeld, {
  159.         Name = "qCFrameWeldThingy";
  160.         Part0  = Part0;
  161.         Part1  = Part1;
  162.         C0     = CFrame.new();--Part0.CFrame:inverse();
  163.         C1     = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  164.         Parent = Part1;
  165.     })
  166.  
  167.     if not RelativeValue then
  168.         RelativeValue = Make("CFrameValue", {
  169.             Parent     = Part1;
  170.             Name       = "qRelativeCFrameWeldValue";
  171.             Archivable = true;
  172.             Value      = NewWeld.C1;
  173.         })
  174.     end
  175.  
  176.     return NewWeld
  177. end
  178.  
  179. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  180.     -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  181.     -- @param MainPart The part to weld the model to (can be in the model).
  182.     -- @param [JointType] The type of joint. Defaults to weld.
  183.     -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  184.    
  185.     for _, Part in pairs(Parts) do
  186.         if ShouldBreakJoints(Part) then
  187.             Part:BreakJoints()
  188.         end
  189.     end
  190.    
  191.     for _, Part in pairs(Parts) do
  192.         if Part ~= MainPart then
  193.             WeldTogether(MainPart, Part, JointType, MainPart)
  194.         end
  195.     end
  196.  
  197.     if not DoNotUnanchor then
  198.         for _, Part in pairs(Parts) do
  199.             Part.Anchored = false
  200.         end
  201.         MainPart.Anchored = false
  202.     end
  203. end
  204.  
  205. local function PerfectionWeld()
  206.     local Tool = GetNearestParent(script, "Tool")
  207.  
  208.     local Parts = GetBricks(tool)
  209.     local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or tool:IsA("Model") and tool.PrimaryPart or Parts[1]
  210.  
  211.     if PrimaryPart then
  212.         WeldParts(Parts, PrimaryPart, "Weld", false)
  213.     else
  214.         warn("qWeld - Unable to weld part")
  215.     end
  216.    
  217.     return Tool
  218. end
  219.  
  220. local Tool = PerfectionWeld()
  221.  
  222.  
  223. if Tool and script.ClassName == "Script" then
  224.     --- Don't bother with local scripts
  225.  
  226.     tool.AncestryChanged:connect(function()
  227.         PerfectionWeld()
  228.     end)
  229. end
  230.  
  231.  
  232. --------------------------------------------
  233. --|||||||||Start Handle creation||||||||||--
  234. --------------------------------------------
  235. Part0 = Instance.new("Part")
  236. SpecialMesh1 = Instance.new("SpecialMesh")
  237. Part0.Name = "Handle"
  238. Part0.Parent = tool
  239. Part0.CFrame = CFrame.new(16.7585678, 160.961426, 218.850754, 0.509893417, -0.860237598, 5.08129597e-05, -3.12626362e-05, -7.76052475e-05, -0.99999994, 0.860237598, 0.509893358, -6.63995743e-05)
  240. Part0.Orientation = Vector3.new(89.9800034, 142.570007, -158.059998)
  241. Part0.Position = Vector3.new(16.7585678, 160.961426, 218.850754)
  242. Part0.Rotation = Vector3.new(90, 0, 59.3400002)
  243. Part0.Color = Color3.new(0, 0.560784, 0.611765)
  244. Part0.Size = Vector3.new(6, 6, 6)
  245. Part0.BrickColor = BrickColor.new("Bright bluish green")
  246. Part0.brickColor = BrickColor.new("Bright bluish green")
  247. Part0.FormFactor = Enum.FormFactor.Custom
  248. Part0.formFactor = Enum.FormFactor.Custom
  249. SpecialMesh1.Parent = Part0
  250. SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=43996518"
  251. SpecialMesh1.Scale = Vector3.new(1.89999998, 1.89999998, 1.89999998)
  252. SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=43996783"
  253. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  254. --------------------------------------
  255. --||||||||End Handle creation|||||||--
  256. --------------------------------------
  257.  
  258. --------------------------------------
  259. --||||||Start Effects creation||||||--
  260. --------------------------------------
  261. tool.Equipped:Connect(function()
  262.     raining = true
  263. Model0 = Instance.new("Model")
  264. Part1 = Instance.new("Part")
  265. ParticleEmitter2 = Instance.new("ParticleEmitter")
  266. Part3 = Instance.new("Part")
  267. ParticleEmitter4 = Instance.new("ParticleEmitter")
  268. Part5 = Instance.new("Part")
  269. ParticleEmitter6 = Instance.new("ParticleEmitter")
  270. Part7 = Instance.new("Part")
  271. ParticleEmitter8 = Instance.new("ParticleEmitter")
  272. Part9 = Instance.new("Part")
  273. ParticleEmitter10 = Instance.new("ParticleEmitter")
  274. Part11 = Instance.new("Part")
  275. ParticleEmitter12 = Instance.new("ParticleEmitter")
  276. Model0.Name = "rain"
  277. Model0.Parent = ro
  278. Part1.Name = "f"
  279. Part1.Parent = Model0
  280. Part1.Orientation = Vector3.new(1.13999999, 90, 180)
  281. Part1.Position = Vector3.new(-22.4446373, -128.077408, -167.400482)
  282. Part1.Rotation = Vector3.new(90.0100021, 88.8600006, 89.9899979)
  283. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  284. Part1.Transparency = 1
  285. Part1.Size = Vector3.new(4.33813095, 2.13773704, 15.4801636)
  286. Part1.Anchored = true
  287. Part1.BrickColor = BrickColor.new("Black")
  288. Part1.CanCollide = false
  289. Part1.Material = Enum.Material.Slate
  290. Part1.brickColor = BrickColor.new("Black")
  291. Part1.FormFactor = Enum.FormFactor.Symmetric
  292. Part1.formFactor = Enum.FormFactor.Symmetric
  293. ParticleEmitter2.Parent = Part1
  294. ParticleEmitter2.Speed = NumberRange.new(0, 0)
  295. ParticleEmitter2.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1))
  296. ParticleEmitter2.Texture = "http://www.roblox.com/asset/?id=241876428"
  297. ParticleEmitter2.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186)
  298. ParticleEmitter2.Size = NumberSequence.new(2,2)
  299. ParticleEmitter2.Acceleration = Vector3.new(0, -50, 0)
  300. ParticleEmitter2.Lifetime = NumberRange.new(999, 1000)
  301. ParticleEmitter2.Rate = 500
  302. ParticleEmitter2.SpreadAngle = Vector2.new(10, 10)
  303. ParticleEmitter2.VelocitySpread = 10
  304. Part3.Name = "d"
  305. Part3.Parent = Model0
  306. Part3.Orientation = Vector3.new(1.13999999, 90, 180)
  307. Part3.Position = Vector3.new(-16.1427422, -127.257996, -161.724457)
  308. Part3.Rotation = Vector3.new(90.0100021, 88.8600006, 89.9899979)
  309. Part3.Color = Color3.new(0.105882, 0.164706, 0.207843)
  310. Part3.Transparency = 1
  311. Part3.Size = Vector3.new(9.05589581, 2.13773704, 15.8487396)
  312. Part3.Anchored = true
  313. Part3.BrickColor = BrickColor.new("Black")
  314. Part3.CanCollide = false
  315. Part3.Material = Enum.Material.Slate
  316. Part3.brickColor = BrickColor.new("Black")
  317. Part3.FormFactor = Enum.FormFactor.Symmetric
  318. Part3.formFactor = Enum.FormFactor.Symmetric
  319. ParticleEmitter4.Parent = Part3
  320. ParticleEmitter4.Speed = NumberRange.new(0, 0)
  321. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1))
  322. ParticleEmitter4.Texture = "http://www.roblox.com/asset/?id=241876428"
  323. ParticleEmitter4.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186)
  324. ParticleEmitter4.Size = NumberSequence.new(2,2)
  325. ParticleEmitter4.Acceleration = Vector3.new(0, -50, 0)
  326. ParticleEmitter4.Lifetime = NumberRange.new(999, 1000)
  327. ParticleEmitter4.Rate = 500
  328. ParticleEmitter4.SpreadAngle = Vector2.new(10, 10)
  329. ParticleEmitter4.VelocitySpread = 10
  330. Part5.Name = "e"
  331. Part5.Parent = Model0
  332. Part5.Orientation = Vector3.new(1.13999999, 90, 180)
  333. Part5.Position = Vector3.new(-28.3418236, -126.382156, -158.960129)
  334. Part5.Rotation = Vector3.new(90.0100021, 88.8600006, 89.9899979)
  335. Part5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  336. Part5.Transparency = 1
  337. Part5.Size = Vector3.new(15.7639656, 2.13773704, 15.4801636)
  338. Part5.Anchored = true
  339. Part5.BrickColor = BrickColor.new("Black")
  340. Part5.CanCollide = false
  341. Part5.Material = Enum.Material.Slate
  342. Part5.brickColor = BrickColor.new("Black")
  343. Part5.FormFactor = Enum.FormFactor.Symmetric
  344. Part5.formFactor = Enum.FormFactor.Symmetric
  345. ParticleEmitter6.Parent = Part5
  346. ParticleEmitter6.Speed = NumberRange.new(0, 0)
  347. ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1))
  348. ParticleEmitter6.Texture = "http://www.roblox.com/asset/?id=241876428"
  349. ParticleEmitter6.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186)
  350. ParticleEmitter6.Size = NumberSequence.new(2,2)
  351. ParticleEmitter6.Acceleration = Vector3.new(0, -50, 0)
  352. ParticleEmitter6.Lifetime = NumberRange.new(999, 1000)
  353. ParticleEmitter6.Rate = 500
  354. ParticleEmitter6.SpreadAngle = Vector2.new(10, 10)
  355. ParticleEmitter6.VelocitySpread = 10
  356. Part7.Name = "c"
  357. Part7.Parent = Model0
  358. Part7.Orientation = Vector3.new(1.13999999, 90, 180)
  359. Part7.Position = Vector3.new(-14.4104042, -126.29158, -153.394669)
  360. Part7.Rotation = Vector3.new(90.0100021, 88.8600006, 89.9899979)
  361. Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  362. Part7.Transparency = 1
  363. Part7.Size = Vector3.new(11.5622082, 2.13773704, 15.0378723)
  364. Part7.Anchored = true
  365. Part7.BrickColor = BrickColor.new("Black")
  366. Part7.CanCollide = false
  367. Part7.Material = Enum.Material.Slate
  368. Part7.brickColor = BrickColor.new("Black")
  369. Part7.FormFactor = Enum.FormFactor.Symmetric
  370. Part7.formFactor = Enum.FormFactor.Symmetric
  371. ParticleEmitter8.Parent = Part7
  372. ParticleEmitter8.Speed = NumberRange.new(0, 0)
  373. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1))
  374. ParticleEmitter8.Texture = "http://www.roblox.com/asset/?id=241876428"
  375. ParticleEmitter8.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186)
  376. ParticleEmitter8.Size = NumberSequence.new(2,2)
  377. ParticleEmitter8.Acceleration = Vector3.new(0, -50, 0)
  378. ParticleEmitter8.Lifetime = NumberRange.new(2000, 2001)
  379. ParticleEmitter8.Rate = 500
  380. ParticleEmitter8.SpreadAngle = Vector2.new(10, 10)
  381. ParticleEmitter8.VelocitySpread = 10
  382. Part9.Name = "b"
  383. Part9.Parent = Model0
  384. Part9.Orientation = Vector3.new(1.13999999, 90, 180)
  385. Part9.Position = Vector3.new(-25.2454491, -127.160583, -146.391739)
  386. Part9.Rotation = Vector3.new(90.0100021, 88.8600006, 89.9899979)
  387. Part9.Color = Color3.new(0.105882, 0.164706, 0.207843)
  388. Part9.Transparency = 1
  389. Part9.Size = Vector3.new(11.5622082, 2.13773704, 18.7236271)
  390. Part9.Anchored = true
  391. Part9.BrickColor = BrickColor.new("Black")
  392. Part9.CanCollide = false
  393. Part9.Material = Enum.Material.Slate
  394. Part9.brickColor = BrickColor.new("Black")
  395. Part9.FormFactor = Enum.FormFactor.Symmetric
  396. Part9.formFactor = Enum.FormFactor.Symmetric
  397. ParticleEmitter10.Parent = Part9
  398. ParticleEmitter10.Speed = NumberRange.new(0, 0)
  399. ParticleEmitter10.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1))
  400. ParticleEmitter10.Texture = "http://www.roblox.com/asset/?id=241876428"
  401. ParticleEmitter10.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186)
  402. ParticleEmitter10.Size = NumberSequence.new(2,2)
  403. ParticleEmitter10.Acceleration = Vector3.new(0, -50, 0)
  404. ParticleEmitter10.Lifetime = NumberRange.new(999, 1000)
  405. ParticleEmitter10.Rate = 500
  406. ParticleEmitter10.SpreadAngle = Vector2.new(10, 10)
  407. ParticleEmitter10.VelocitySpread = 10
  408. Part11.Name = "a"
  409. Part11.Parent = Model0
  410. Part11.Orientation = Vector3.new(1.13999999, 90, 180)
  411. Part11.Rotation = Vector3.new(90.0100021, 88.8600006, 89.9899979)
  412. Part11.Color = Color3.new(0.105882, 0.164706, 0.207843)
  413. Part11.Transparency = 1
  414. Part11.Size = Vector3.new(10.6776276, 3.16974807, 10.9835443)
  415. Part11.Anchored = true
  416. Part11.BrickColor = BrickColor.new("Black")
  417. Part11.CanCollide = false
  418. Part11.Material = Enum.Material.Slate
  419. Part11.brickColor = BrickColor.new("Black")
  420. Part11.FormFactor = Enum.FormFactor.Symmetric
  421. Part11.formFactor = Enum.FormFactor.Symmetric
  422. ParticleEmitter12.Parent = Part11
  423. ParticleEmitter12.Speed = NumberRange.new(0, 0)
  424. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1))
  425. ParticleEmitter12.Texture = "http://www.roblox.com/asset/?id=241876428"
  426. ParticleEmitter12.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186)
  427. ParticleEmitter12.Size = NumberSequence.new(2,2)
  428. ParticleEmitter12.Acceleration = Vector3.new(0, -50, 0)
  429. ParticleEmitter12.Lifetime = NumberRange.new(999, 1000)
  430. ParticleEmitter12.Rate = 500
  431. ParticleEmitter12.SpreadAngle = Vector2.new(10, 10)
  432. ParticleEmitter12.VelocitySpread = 10
  433.  ScreenGui = Instance.new("ScreenGui")
  434.  Frame = Instance.new("Frame")
  435. ScreenGui.Parent = owner.PlayerGui
  436.  
  437. Frame.Parent = ScreenGui
  438. Frame.BackgroundColor3 = Color3.new(0.0313726, 0.0313726, 0.0313726)
  439. Frame.BackgroundTransparency = 0.69999998807907
  440. Frame.Size = UDim2.new(0, 9999999, 0, 999999999)
  441. for i,v in pairs(Model0:GetDescendants()) do
  442.     if v:IsA("Part") then
  443.         v.Size = workspace.Base.Size
  444.         v.CFrame = workspace.Base.CFrame * CFrame.new(math.random(1,200),200,math.random(1,200))
  445.     elseif v:IsA("ParticleEmitter") then
  446.         v.Lifetime = NumberRange.new(999,1000)
  447.     end
  448. end
  449. rainsound:Play()
  450. actualsong:Play()
  451. coroutine.resume(coroutine.create(function()
  452. while game:GetService("RunService").Heartbeat:Wait() do
  453. if game:GetService("Lighting"):FindFirstChild("clouds") == nil and raining == true then
  454.         Sky0 = Instance.new("Sky")
  455. Sky0.Parent = game:GetService("Lighting")
  456. Sky0.Name = "clouds"
  457. Sky0.CelestialBodiesShown = false
  458. Sky0.SkyboxBk = "rbxassetid://246480323"
  459. Sky0.SkyboxDn = "rbxassetid://246480523"
  460. Sky0.SkyboxFt = "rbxassetid://246480105"
  461. Sky0.SkyboxLf = "rbxassetid://246480549"
  462. Sky0.SkyboxRt = "rbxassetid://246480565"
  463. Sky0.SkyboxUp = "rbxassetid://246480504"
  464. end
  465. end
  466. end))
  467. end)
  468. tool.Unequipped:Connect(function()
  469.     raining = false
  470.     rainsound:Stop()
  471.     actualsong:Stop()
  472.     game:GetService("Lighting"):FindFirstChild("clouds"):Destroy()
  473.     Model0:Destroy()
  474.     ScreenGui:Destroy()
  475.     end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top