Advertisement
ERROR_CODE

ECCS Camp RP

Aug 10th, 2023 (edited)
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 38.20 KB | None | 0 0
  1. if loaded then
  2. game.Players.LocalPlayer:Kick("Restart")
  3. local TeleportService = game:GetService("TeleportService")
  4. local Players = game:GetService("Players")
  5. local LocalPlayer = Players.LocalPlayer
  6.  
  7. local Rejoin = coroutine.create(function()
  8.     local Success, ErrorMessage = pcall(function()
  9.         TeleportService:Teleport(game.PlaceId, LocalPlayer)
  10.     end)
  11.  
  12.     if ErrorMessage and not Success then
  13.         warn(ErrorMessage)
  14.     end
  15. end)
  16.  
  17. coroutine.resume(Rejoin)
  18. end
  19. pcall(function()
  20.     getgenv().loaded = true
  21. local LocalPlayer = game.Players.LocalPlayer
  22. if LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then game.Players.LocalPlayer:Kick("You need to bee in R6") end
  23. function sandbox(var,func)
  24.     local env = getfenv(func)
  25.     local newenv = setmetatable({},{
  26.         __index = function(self,k)
  27.             if k=="script" then
  28.                 return var
  29.             else
  30.                 return env[k]
  31.             end
  32.         end,
  33.     })
  34.     setfenv(func,newenv)
  35.     return func
  36. end
  37. cors = {}
  38. mas = Instance.new("Model",game:GetService("Lighting"))
  39. Tool0 = Instance.new("Tool")
  40. Part1 = Instance.new("Part")
  41. Sound2 = Instance.new("Sound")
  42. SpecialMesh3 = Instance.new("SpecialMesh")
  43. SpotLight4 = Instance.new("SpotLight")
  44. LocalScript5 = Instance.new("LocalScript")
  45. LocalScript6 = Instance.new("LocalScript")
  46. ModuleScript7 = Instance.new("ModuleScript")
  47. Tool0.Name = "Flashlight"
  48. Tool0.Parent = mas
  49. Tool0.TextureId = "http://www.roblox.com/asset/?id=115955232"
  50. Tool0.Grip = CFrame.new(0.100000001, -0.400000006, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  51. Tool0.GripPos = Vector3.new(0.10000000149011612, -0.4000000059604645, 0)
  52. Tool0.ToolTip = "Flashlight"
  53. Part1.Name = "Handle"
  54. Part1.Parent = Tool0
  55. Part1.CFrame = CFrame.new(10.9154053, 0.25, -18.9892578, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  56. Part1.Orientation = Vector3.new(0, 90, 0)
  57. Part1.Position = Vector3.new(10.9154052734375, 0.25, -18.9892578125)
  58. Part1.Rotation = Vector3.new(0, 90, 0)
  59. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  60. Part1.Size = Vector3.new(0.5, 0.5, 2)
  61. Part1.BottomSurface = Enum.SurfaceType.Smooth
  62. Part1.BrickColor = BrickColor.new("Bright yellow")
  63. Part1.TopSurface = Enum.SurfaceType.Smooth
  64. Part1.brickColor = BrickColor.new("Bright yellow")
  65. Part1.FormFactor = Enum.FormFactor.Custom
  66. Part1.formFactor = Enum.FormFactor.Custom
  67. Sound2.Parent = Part1
  68. Sound2.SoundId = "http://www.roblox.com/asset/?id=115959318"
  69. Sound2.Volume = 1
  70. SpecialMesh3.Parent = Part1
  71. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=115955313"
  72. SpecialMesh3.Scale = Vector3.new(0.699999988079071, 0.699999988079071, 0.699999988079071)
  73. SpecialMesh3.TextureId = "http://www.roblox.com/asset?id=115955343"
  74. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  75. SpotLight4.Parent = Part1
  76. SpotLight4.Enabled = false
  77. SpotLight4.Range = 40
  78. SpotLight4.Brightness = 10
  79. SpotLight4.Shadows = true
  80. LocalScript5.Parent = Tool0
  81. table.insert(cors,sandbox(LocalScript5,function()
  82. player = game.Players.LocalPlayer
  83. tool = script.Parent
  84.  
  85. repeat wait() until player
  86.  
  87. tool.Equipped:connect(function(mouse)
  88.     mouse.Button1Down:connect(function()
  89.         tool.Handle.SpotLight.Enabled = not tool.Handle.SpotLight.Enabled
  90.         tool.Handle.Sound:Play()
  91.     end)
  92. end)
  93. end))
  94. LocalScript6.Parent = Tool0
  95. table.insert(cors,sandbox(LocalScript6,function()
  96. -- Variables for services
  97. local render = game:GetService("RunService").RenderStepped
  98. local contextActionService = game:GetService("ContextActionService")
  99. local userInputService = game:GetService("UserInputService")
  100.  
  101. local player = game.Players.LocalPlayer
  102. local mouse = player:GetMouse()
  103. local Tool = script.Parent
  104.  
  105. -- Variables for Module Scripts
  106. local screenSpace = require(Tool:WaitForChild("ScreenSpace"))
  107.  
  108. local connection
  109.  
  110. local neck, shoulder, oldNeckC0, oldShoulderC0
  111.  
  112. local mobileShouldTrack = true
  113.  
  114. -- Thourough check to see if a character is sitting
  115. local function amISitting(character)
  116.     local t = character.Torso
  117.     for _, part in pairs(t:GetConnectedParts(true)) do
  118.         if part:IsA("Seat") or part:IsA("VehicleSeat") then
  119.             return true
  120.         end
  121.     end
  122. end
  123.  
  124. -- Function to call on renderstepped. Orients the character so it is facing towards
  125. -- the player mouse's position in world space. If character is sitting then the torso
  126. -- should not track
  127. local function frame(mousePosition)
  128.     -- Special mobile consideration. We don't want to track if the user was touching a ui
  129.     -- element such as the movement controls. Just return out of function if so to make sure
  130.     -- character doesn't track
  131.     if not mobileShouldTrack then return end
  132.    
  133.     -- Make sure character isn't swiming. If the character is swimming the following code will
  134.     -- not work well; the character will not swim correctly. Besides, who shoots underwater?
  135.     if player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Swimming then
  136.         local torso = player.Character.Torso
  137.         local head = player.Character.Head
  138.        
  139.         local toMouse = (mousePosition - head.Position).unit
  140.         local angle = math.acos(toMouse:Dot(Vector3.new(0,1,0)))
  141.        
  142.         local neckAngle = angle
  143.    
  144.         -- Limit how much the head can tilt down. Too far and the head looks unnatural
  145.         if math.deg(neckAngle) > 110 then
  146.             neckAngle = math.rad(110)
  147.         end
  148.         neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.pi - neckAngle,math.pi,0)
  149.        
  150.         -- Calculate horizontal rotation
  151.         local arm = player.Character:FindFirstChild("Right Arm")
  152.         local fromArmPos = torso.Position + torso.CFrame:vectorToWorldSpace(Vector3.new(
  153.             torso.Size.X/2 + arm.Size.X/2, torso.Size.Y/2 - arm.Size.Z/2, 0))
  154.         local toMouseArm = ((mousePosition - fromArmPos) * Vector3.new(1,0,1)).unit
  155.         local look = (torso.CFrame.lookVector * Vector3.new(1,0,1)).unit
  156.         local lateralAngle = math.acos(toMouseArm:Dot(look))       
  157.        
  158.         -- Check for rogue math
  159.         if tostring(lateralAngle) == "-1.#IND" then
  160.             lateralAngle = 0
  161.         end    
  162.        
  163.         -- Handle case where character is sitting down
  164.         if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then          
  165.            
  166.             local cross = torso.CFrame.lookVector:Cross(toMouseArm)
  167.             if lateralAngle > math.pi/2 then
  168.                 lateralAngle = math.pi/2
  169.             end
  170.             if cross.Y < 0 then
  171.                 lateralAngle = -lateralAngle
  172.             end
  173.         end
  174.        
  175.         -- Turn shoulder to point to mouse
  176.         shoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2 - angle,math.pi/2 + lateralAngle,0)
  177.        
  178.         -- If not sitting then aim torso laterally towards mouse
  179.         if not amISitting(player.Character) then
  180.             torso.CFrame = CFrame.new(torso.Position, torso.Position + (Vector3.new(
  181.                 mousePosition.X, torso.Position.Y, mousePosition.Z)-torso.Position).unit)
  182.         end
  183.     end
  184. end
  185.  
  186. -- Function to bind to render stepped if player is on PC
  187. local function pcFrame()
  188.     frame(mouse.Hit.p)
  189. end
  190.  
  191. -- Function to bind to touch moved if player is on mobile
  192. local function mobileFrame(touch, processed)
  193.     -- Check to see if the touch was on a UI element. If so, we don't want to update anything
  194.     if not processed then
  195.         -- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
  196.         -- to create a ray from the camera.
  197.         local test = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1)
  198.         local nearPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1))
  199.         nearPos = game.Workspace.CurrentCamera.CoordinateFrame.p - nearPos
  200.         local farPos = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y,50)
  201.         farPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(farPos) * -1
  202.         if farPos.magnitude > 900 then
  203.             farPos = farPos.unit * 900
  204.         end
  205.         local ray = Ray.new(nearPos, farPos)
  206.         local part, pos = game.Workspace:FindPartOnRay(ray, player.Character)
  207.        
  208.         -- if a position was found on the ray then update the character's rotation
  209.         if pos then
  210.             frame(pos)
  211.         end
  212.     end
  213. end
  214.  
  215. local function OnActivated()
  216.     local myModel = player.Character
  217.     if Tool.Enabled and myModel and myModel:FindFirstChild('Humanoid') and myModel.Humanoid.Health > 0 then
  218.         Tool.Enabled = false
  219.         game.ReplicatedStorage.ROBLOX_RocketFireEvent:FireServer(mouse.Hit.p)
  220.         wait(2)
  221.  
  222.         Tool.Enabled = true
  223.     end
  224. end
  225.  
  226. local oldIcon = nil
  227. -- Function to bind to equip event
  228. local function equip()
  229.     local torso = player.Character.Torso
  230.    
  231.     -- Setup joint variables
  232.     neck = torso.Neck  
  233.     oldNeckC0 = neck.C0
  234.     shoulder = torso:FindFirstChild("Right Shoulder")
  235.     oldShoulderC0 = shoulder.C0
  236.    
  237.     -- Remember old mouse icon and update current
  238.     oldIcon = mouse.Icon
  239.     mouse.Icon = "rbxasset://textures\\GunCursor.png"
  240.    
  241.     -- Bind TouchMoved event if on mobile. Otherwise connect to renderstepped
  242.     if userInputService.TouchEnabled then
  243.         connection = userInputService.TouchMoved:connect(mobileFrame)
  244.     else
  245.         connection = render:connect(pcFrame)
  246.     end
  247.    
  248.     -- Bind TouchStarted and TouchEnded. Used to determine if character should rotate
  249.     -- during touch input
  250.     userInputService.TouchStarted:connect(function(touch, processed)
  251.         mobileShouldTrack = not processed
  252.     end)   
  253.     userInputService.TouchEnded:connect(function(touch, processed)
  254.         mobileShouldTrack = false
  255.     end)
  256.  
  257.     -- If game uses filtering enabled then need to update server while tool is
  258.     -- held by character.
  259.     if workspace.FilteringEnabled then
  260.         while connection do
  261.             wait()
  262.             game.ReplicatedStorage.ROBLOX_RocketUpdateEvent:FireServer(neck.C0, shoulder.C0)
  263.         end
  264.     end
  265. end
  266.  
  267. -- Function to bind to Unequip event
  268. local function unequip()
  269.     if connection then connection:disconnect() end
  270.    
  271.     mouse.Icon = oldIcon
  272.    
  273.     neck.C0 = oldNeckC0
  274.     shoulder.C0 = oldShoulderC0
  275. end
  276.  
  277. -- Bind tool events
  278. Tool.Equipped:connect(equip)
  279. Tool.Unequipped:connect(unequip)
  280. Tool.Activated:connect(OnActivated)
  281. end))
  282. ModuleScript7.Name = "ScreenSpace"
  283. ModuleScript7.Parent = Tool0
  284. table.insert(cors,sandbox(ModuleScript7,function()
  285. local PlayerMouse = Game:GetService('Players').LocalPlayer:GetMouse()
  286.  
  287. local ScreenSpace = {}
  288.  
  289. -- Getter functions, with a couple of hacks for Ipad pre-focus.
  290. function ScreenSpace.ViewSizeX()
  291.     local x = PlayerMouse.ViewSizeX
  292.     local y = PlayerMouse.ViewSizeY
  293.     if x == 0 then
  294.         return 1024
  295.     else
  296.         if x > y then
  297.             return x
  298.         else
  299.             return y
  300.         end
  301.     end
  302. end
  303.  
  304. function ScreenSpace.ViewSizeY()
  305.     local x = PlayerMouse.ViewSizeX
  306.     local y = PlayerMouse.ViewSizeY
  307.     if y == 0 then
  308.         return 768
  309.     else
  310.         if x > y then
  311.             return y
  312.         else
  313.             return x
  314.         end
  315.     end
  316. end
  317.  
  318. -- Nice getter for aspect ratio. Due to the checks in the ViewSize functions this
  319. -- will never fail with a divide by zero error.
  320. function ScreenSpace.AspectRatio()
  321.     return ScreenSpace.ViewSizeX() / ScreenSpace.ViewSizeY()
  322. end
  323.  
  324. -- WorldSpace -> ScreenSpace. Raw function taking a world position and giving you the
  325. -- screen position.
  326. function ScreenSpace.WorldToScreen(at)
  327.     local point = Workspace.CurrentCamera.CoordinateFrame:pointToObjectSpace(at)
  328.     local aspectRatio = ScreenSpace.AspectRatio()
  329.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  330.     local wfactor = aspectRatio*hfactor
  331.     --
  332.     local x = (point.x/point.z) / -wfactor
  333.     local y = (point.y/point.z) /  hfactor
  334.     --
  335.     return Vector2.new(ScreenSpace.ViewSizeX()*(0.5 + 0.5*x), ScreenSpace.ViewSizeY()*(0.5 + 0.5*y))
  336. end
  337.  
  338. -- ScreenSpace -> WorldSpace. Raw function taking a screen position and a depth and
  339. -- converting it into a world position.
  340. function ScreenSpace.ScreenToWorld(x, y, depth)
  341.     local aspectRatio = ScreenSpace.AspectRatio()
  342.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  343.     local wfactor = aspectRatio*hfactor
  344.     --
  345.     local xf, yf = x/ScreenSpace.ViewSizeX()*2 - 1, y/ScreenSpace.ViewSizeY()*2 - 1
  346.     local xpos = xf * -wfactor * depth
  347.     local ypos = yf *  hfactor * depth
  348.     --
  349.     return Vector3.new(xpos, ypos, depth)
  350. end
  351.  
  352. -- ScreenSize -> WorldSize
  353. function ScreenSpace.ScreenWidthToWorldWidth(screenWidth, depth)   
  354.     local aspectRatio = ScreenSpace.AspectRatio()
  355.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  356.     local wfactor = aspectRatio*hfactor
  357.     local sx = ScreenSpace.ViewSizeX()
  358.     --
  359.     return -(screenWidth / sx) * 2 * wfactor * depth
  360. end
  361. function ScreenSpace.ScreenHeightToWorldHeight(screenHeight, depth)
  362.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  363.     local sy = ScreenSpace.ViewSizeY()
  364.     --
  365.     return -(screenHeight / sy) * 2 * hfactor * depth
  366. end
  367.  
  368. -- WorldSize -> ScreenSize
  369. function ScreenSpace.WorldWidthToScreenWidth(worldWidth, depth)
  370.     local aspectRatio = ScreenSpace.AspectRatio()
  371.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  372.     local wfactor = aspectRatio*hfactor
  373.     local sx = ScreenSpace.ViewSizeX()
  374.     --
  375.     return -(worldWidth * sx) / (2 * wfactor * depth)
  376. end
  377. function ScreenSpace.WorldHeightToScreenHeight(worldHeight, depth)
  378.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  379.     local sy = ScreenSpace.ViewSizeY()
  380.     --
  381.     return -(worldHeight * sy) / (2 * hfactor * depth)
  382. end
  383.  
  384. -- WorldSize + ScreenSize -> Depth needed
  385. function ScreenSpace.GetDepthForWidth(screenWidth, worldWidth)
  386.     local aspectRatio = ScreenSpace.AspectRatio()
  387.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  388.     local wfactor = aspectRatio*hfactor
  389.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  390.     --
  391.     return -(sx * worldWidth) / (screenWidth * 2 * wfactor)
  392. end
  393. function ScreenSpace.GetDepthForHeight(screenHeight, worldHeight)
  394.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  395.     local sy = ScreenSpace.ViewSizeY()
  396.     --
  397.     return -(sy * worldHeight) / (screenHeight * 2 * hfactor)  
  398. end
  399.  
  400. -- ScreenSpace -> WorldSpace. Taking a screen height, and a depth to put an object
  401. -- at, and returning a size of how big that object has to be to appear that size
  402. -- at that depth.
  403. function ScreenSpace.ScreenToWorldByHeightDepth(x, y, screenHeight, depth)
  404.     local aspectRatio = ScreenSpace.AspectRatio()
  405.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  406.     local wfactor = aspectRatio*hfactor
  407.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  408.     --
  409.     local worldHeight = -(screenHeight/sy) * 2 * hfactor * depth
  410.     --
  411.     local xf, yf = x/sx*2 - 1, y/sy*2 - 1
  412.     local xpos = xf * -wfactor * depth
  413.     local ypos = yf *  hfactor * depth
  414.     --
  415.     return Vector3.new(xpos, ypos, depth), worldHeight
  416. end
  417.  
  418. -- ScreenSpace -> WorldSpace. Taking a screen width, and a depth to put an object
  419. -- at, and returning a size of how big that object has to be to appear that size
  420. -- at that depth.
  421. function ScreenSpace.ScreenToWorldByWidthDepth(x, y, screenWidth, depth)
  422.     local aspectRatio = ScreenSpace.AspectRatio()
  423.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  424.     local wfactor = aspectRatio*hfactor
  425.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  426.     --
  427.     local worldWidth = (screenWidth/sx) * 2 * -wfactor * depth
  428.     --
  429.     local xf, yf = x/sx*2 - 1, y/sy*2 - 1
  430.     local xpos = xf * -wfactor * depth
  431.     local ypos = yf *  hfactor * depth
  432.     --
  433.     return Vector3.new(xpos, ypos, depth), worldWidth
  434. end
  435.  
  436. -- ScreenSpace -> WorldSpace. Taking a screen height that you want that object to be
  437. -- and a world height that is the size of that object, and returning the position to
  438. -- put that object at to satisfy those.
  439. function ScreenSpace.ScreenToWorldByHeight(x, y, screenHeight, worldHeight)
  440.     local aspectRatio = ScreenSpace.AspectRatio()
  441.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  442.     local wfactor = aspectRatio*hfactor
  443.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  444.     --
  445.     local depth = - (sy * worldHeight) / (screenHeight * 2 * hfactor)
  446.     --
  447.     local xf, yf = x/sx*2 - 1, y/sy*2 - 1
  448.     local xpos = xf * -wfactor * depth
  449.     local ypos = yf *  hfactor * depth
  450.     --
  451.     return Vector3.new(xpos, ypos, depth)
  452. end
  453.  
  454. -- ScreenSpace -> WorldSpace. Taking a screen width that you want that object to be
  455. -- and a world width that is the size of that object, and returning the position to
  456. -- put that object at to satisfy those.
  457. function ScreenSpace.ScreenToWorldByWidth(x, y, screenWidth, worldWidth)
  458.     local aspectRatio = ScreenSpace.AspectRatio()
  459.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  460.     local wfactor = aspectRatio*hfactor
  461.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  462.     --
  463.     local depth = - (sx * worldWidth) / (screenWidth * 2 * wfactor)
  464.     --
  465.     local xf, yf = x/sx*2 - 1, y/sy*2 - 1
  466.     local xpos = xf * -wfactor * depth
  467.     local ypos = yf *  hfactor * depth
  468.     --
  469.     return Vector3.new(xpos, ypos, depth)
  470. end
  471.  
  472. return ScreenSpace
  473.  
  474.  
  475.  
  476.  
  477. end))
  478. for i,v in pairs(mas:GetChildren()) do
  479.     v.Parent = game:GetService("Players").LocalPlayer.Backpack
  480.     pcall(function() v:MakeJoints() end)
  481. end
  482. mas:Destroy()
  483. for i,v in pairs(cors) do
  484.     spawn(function()
  485.         pcall(v)
  486.     end)
  487. end
  488.  
  489.  
  490.  
  491. local Player = game.Players.LocalPlayer
  492. local Character = Player.Character
  493. local Humanoid = Character.Humanoid
  494.  Humanoid.MaxHealth = 100
  495. Humanoid.HealthChanged:connect(function()
  496. if Humanoid.Health < 5 then
  497. Humanoid.Health = Humanoid.MaxHealth
  498. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
  499. end
  500. end)
  501.  
  502. local Sound = Instance.new("Sound")
  503. local Id = "339680541"
  504. Sound.Parent = game.Workspace
  505. Sound.SoundId = "rbxassetid://"..Id
  506. Sound.Playing = true
  507. Sound.Looped = true
  508. Sound.Volume = 1
  509. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
  510.  
  511. for i = 1,1 do
  512. local Grass = Instance.new("Part")
  513. Grass.Parent = workspace
  514. Grass.Anchored = true
  515. Grass.Size = Vector3.new(500, 3, 500)
  516. Grass.CanCollide = true
  517. Grass.Position = Vector3.new(117.878, 1665, 222.611)  
  518. Grass.Material = "Grass"
  519. Grass.BrickColor = BrickColor.new("Lime green")
  520. end
  521. ScriptFire1 = Instance.new("Script")
  522. ScriptFire2 = Instance.new("Script")
  523. ScriptFire3 = Instance.new("Script")
  524. ScriptFire4 = Instance.new("Script")
  525.  
  526. local Fire1 = Instance.new("Part")
  527. Fire1.Parent = workspace
  528. Fire1.Anchored = true
  529. Fire1.Size = Vector3.new(4, 1, 1)
  530. Fire1.CanCollide = true
  531. Fire1.Position = Vector3.new(220.715, 1667.5, 175.061)  
  532. Fire1.Material = "Wood"
  533. Fire1.BrickColor = BrickColor.new("Fawn brown")
  534. Fire1.Rotation = Vector3.new(0, -105, -60)
  535.  
  536.  
  537. local Fire2 = Instance.new("Part")
  538. Fire2.Parent = workspace
  539. Fire2.Anchored = true
  540. Fire2.Size = Vector3.new(4, 1, 1)
  541. Fire2.CanCollide = true
  542. Fire2.Position = Vector3.new(219.715, 1667.5, 174.061)  
  543. Fire2.Material = "Wood"
  544. Fire2.BrickColor = BrickColor.new("Fawn brown")
  545. Fire2.Rotation = Vector3.new(0, 180, -60)
  546.  
  547.  
  548. local Fire3 = Instance.new("Part")
  549. Fire3.Parent = workspace
  550. Fire3.Anchored = true
  551. Fire3.Size = Vector3.new(4, 1, 1)
  552. Fire3.CanCollide = true
  553. Fire3.Position = Vector3.new(220.715, 1667.5, 173.061)  
  554. Fire3.Material = "Wood"
  555. Fire3.BrickColor = BrickColor.new("Fawn brown")
  556. Fire3.Rotation = Vector3.new(0, 90, -60)
  557.  
  558.  
  559. local Fire4 = Instance.new("Part")
  560. Fire4.Parent = workspace
  561. Fire4.Anchored = true
  562. Fire4.Size = Vector3.new(4, 1, 1)
  563. Fire4.CanCollide = true
  564. Fire4.Position = Vector3.new(221.715, 1667.5, 174.061)  
  565. Fire4.Material = "Wood"
  566. Fire4.BrickColor = BrickColor.new("Fawn brown")
  567. Fire4.Rotation = Vector3.new(0, 0, -60)
  568.  
  569. local Fire = Instance.new("Part")
  570. Fire.Parent = workspace
  571. Fire.Anchored = true
  572. Fire.Size = Vector3.new(1, 1, 1)
  573. Fire.CanCollide = true
  574. Fire.Position = Vector3.new(220.912, 1666.5, 173.553)  
  575. Fire.Transparency = 1
  576. local Fire = Instance.new("Fire", Fire)
  577. Fire.Size = 10
  578. Fire.Color = Color3.new(255,255,0)
  579. Fire.SecondaryColor = Color3.new(0,0,0)
  580.  
  581.  
  582. local SeatWood = Instance.new("Part")
  583. SeatWood.Parent = workspace
  584. SeatWood.Anchored = true
  585. SeatWood.Size = Vector3.new(3, 2, 3)
  586. SeatWood.CanCollide = true
  587. SeatWood.Position = Vector3.new(223.285, 1667, 182.772)  
  588. local Mesh = Instance.new("CylinderMesh", SeatWood)
  589. SeatWood.BrickColor = BrickColor.new("Cork")
  590. SeatWood.Material = "Wood"
  591.  
  592. local SeatWood2 = Instance.new("Part")
  593. SeatWood2.Parent = workspace
  594. SeatWood2.Anchored = true
  595. SeatWood2.Size = Vector3.new(3, 2, 3)
  596. SeatWood2.CanCollide = true
  597. SeatWood2.Position = Vector3.new(223.285, 1667, 164.772)  
  598. local Mesh = Instance.new("CylinderMesh", SeatWood2)
  599. SeatWood2.BrickColor = BrickColor.new("Cork")
  600. SeatWood2.Material = "Wood"
  601.  
  602. local SeatWood3 = Instance.new("Part")
  603. SeatWood3.Parent = workspace
  604. SeatWood3.Anchored = true
  605. SeatWood3.Size = Vector3.new(3, 2, 3)
  606. SeatWood3.CanCollide = true
  607. SeatWood3.Position = Vector3.new(231.285, 1667, 173.772)  
  608. local Mesh = Instance.new("CylinderMesh", SeatWood3)
  609. SeatWood3.BrickColor = BrickColor.new("Cork")
  610. SeatWood3.Material = "Wood"
  611.  
  612. local SeatWood4 = Instance.new("Part")
  613. SeatWood4.Parent = workspace
  614. SeatWood4.Anchored = true
  615. SeatWood4.Size = Vector3.new(3, 2, 3)
  616. SeatWood4.CanCollide = true
  617. SeatWood4.Position = Vector3.new(214.285, 1667, 173.772)  
  618. local Mesh = Instance.new("CylinderMesh", SeatWood4)
  619. SeatWood4.BrickColor = BrickColor.new("Cork")
  620. SeatWood4.Material = "Wood"
  621.  
  622. local BeachMat1 = Instance.new("Part")
  623. BeachMat1.Parent = workspace
  624. BeachMat1.Anchored = true
  625. BeachMat1.Size = Vector3.new(9, 0.001, 15)
  626. BeachMat1.CanCollide = true
  627. BeachMat1.Position = Vector3.new(206.878, 1666.5, 172.611)  
  628. BeachMat1.Material = "Fabric"
  629. BeachMat1.BrickColor = BrickColor.new("Brick yellow")
  630.  
  631. local ScreenGui = Instance.new("ScreenGui")
  632. local Open = Instance.new("TextButton")
  633. local Frame = Instance.new("Frame")
  634. local Name = Instance.new("TextLabel")
  635. local Emote1 = Instance.new("TextButton")
  636. local Emote2 = Instance.new("TextButton")
  637. local Emote3 = Instance.new("TextButton")
  638. local Emote4 = Instance.new("TextButton")
  639. local Emote5 = Instance.new("TextButton")
  640. local Emote6 = Instance.new("TextButton")
  641. local Emote7 = Instance.new("TextButton")
  642. local Emote8 = Instance.new("TextButton")
  643. local Emote9 = Instance.new("TextButton")
  644.  
  645. Frame.Parent = ScreenGui
  646. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  647. Frame.Position = UDim2.new(0.3, 0, 1, 0)
  648. Frame.Size = UDim2.new(0, 358, 0, 220)
  649. Frame.Visible = false
  650.  
  651. Name.Name = "Name"
  652. Name.Parent = Frame
  653. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  654. Name.Size = UDim2.new(0, 358, 0, 25)
  655. Name.Font = Enum.Font.GothamBold
  656. Name.Text = "Emotes"
  657. Name.TextColor3 = Color3.fromRGB(0, 0, 0)
  658. Name.TextScaled = true
  659. Name.TextSize = 14.000
  660. Name.TextWrapped = true
  661.  
  662.  
  663.  
  664. Emote1.Name = "Emote1"
  665. Emote1.Parent = Frame
  666. Emote1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  667. Emote1.Position = UDim2.new(0.0714285746, 0, 0.216000006, 0)
  668. Emote1.Size = UDim2.new(0, 79, 0, 31)
  669. Emote1.Font = Enum.Font.GothamBold
  670. Emote1.Text = "Lay1On"
  671. Emote1.TextColor3 = Color3.fromRGB(0, 0, 0)
  672. Emote1.TextScaled = true
  673. Emote1.TextSize = 14.000
  674. Emote1.TextWrapped = true
  675. AnimationId = "181526230"
  676. local Anim1 = Instance.new("Animation")
  677. Anim1.AnimationId = "rbxassetid://"..AnimationId
  678. local k1 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim1)
  679. Emote1.MouseButton1Down:connect(function()
  680. if Emote1.Text == "Lay1On" then
  681.         Emote1.Text = "Lay1Off"
  682.     k1:Play()
  683. else
  684.         if Emote1.Text == "Lay1Off" then
  685.             Emote1.Text = "Lay1On"
  686.          k1:Stop()
  687.         end
  688. end
  689. end)
  690.  
  691. Emote2.Name = "Emote2"
  692. Emote2.Parent = Frame
  693. Emote2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  694. Emote2.Position = UDim2.new(0.0714285746, 0, 0.436000019, 0)
  695. Emote2.Size = UDim2.new(0, 79, 0, 31)
  696. Emote2.Font = Enum.Font.GothamBold
  697. Emote2.Text = "Dance1On"
  698. Emote2.TextColor3 = Color3.fromRGB(0, 0, 0)
  699. Emote2.TextScaled = true
  700. Emote2.TextSize = 14.000
  701. Emote2.TextWrapped = true
  702. AnimationId = "429703734"
  703. local Anim2 = Instance.new("Animation")
  704. Anim2.AnimationId = "rbxassetid://"..AnimationId
  705. local k2 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim2)
  706. Emote2.MouseButton1Down:connect(function()
  707. if Emote2.Text == "Dance1On" then
  708.         Emote2.Text = "Dance1Off"
  709.     k2:Play()
  710. else
  711.         if Emote2.Text == "Dance1Off" then
  712.             Emote2.Text = "Dance1On"
  713.          k2:Stop()
  714.         end
  715. end
  716. end)
  717.  
  718. Emote3.Name = "Emote3"
  719. Emote3.Parent = Frame
  720. Emote3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  721. Emote3.Position = UDim2.new(0.0714285746, 0, 0.648000002, 0)
  722. Emote3.Size = UDim2.new(0, 79, 0, 34)
  723. Emote3.Font = Enum.Font.GothamBold
  724. Emote3.Text = "Lay2On"
  725. Emote3.TextColor3 = Color3.fromRGB(0, 0, 0)
  726. Emote3.TextScaled = true
  727. Emote3.TextSize = 14.000
  728. Emote3.TextWrapped = true
  729. AnimationId = "282574440"
  730. local Anim3 = Instance.new("Animation")
  731. Anim3.AnimationId = "rbxassetid://"..AnimationId
  732. local k3 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim3)
  733. Emote3.MouseButton1Down:connect(function()
  734. if Emote3.Text == "Lay2On" then
  735.         Emote3.Text = "Lay2Off"
  736.     k3:Play()
  737. else
  738.         if Emote3.Text == "Lay2Off" then
  739.             Emote3.Text = "Lay2On"
  740.          k3:Stop()
  741.         end
  742. end
  743. end)
  744.  
  745. Emote4.Name = "Emote4"
  746. Emote4.Parent = Frame
  747. Emote4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  748. Emote4.Position = UDim2.new(0.388888896, 0, 0.216000006, 0)
  749. Emote4.Size = UDim2.new(0, 83, 0, 31)
  750. Emote4.Font = Enum.Font.GothamBold
  751. Emote4.Text = "SitOn"
  752. Emote4.TextColor3 = Color3.fromRGB(0, 0, 0)
  753. Emote4.TextScaled = true
  754. Emote4.TextSize = 14.000
  755. Emote4.TextWrapped = true
  756. AnimationId = "182724289"
  757. local Anim4 = Instance.new("Animation")
  758. Anim4.AnimationId = "rbxassetid://"..AnimationId
  759. local k4 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim4)
  760. Emote4.MouseButton1Down:connect(function()
  761. if Emote4.Text == "SitOn" then
  762.         Emote4.Text = "SitOff"
  763.     k4:Play()
  764. else
  765.         if Emote4.Text == "SitOff" then
  766.             Emote4.Text = "SitOn"
  767.          k4:Stop()
  768.         end
  769. end
  770. end)
  771.  
  772. Emote5.Name = "Emote5"
  773. Emote5.Parent = Frame
  774. Emote5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  775. Emote5.Position = UDim2.new(0.388888896, 0, 0.43599999, 0)
  776. Emote5.Size = UDim2.new(0, 83, 0, 31)
  777. Emote5.Font = Enum.Font.GothamBold
  778. Emote5.Text = "JumpingOn"
  779. Emote5.TextColor3 = Color3.fromRGB(0, 0, 0)
  780. Emote5.TextScaled = true
  781. Emote5.TextSize = 14.000
  782. Emote5.TextWrapped = true
  783. AnimationId = "429681631"
  784. local Anim5 = Instance.new("Animation")
  785. Anim5.AnimationId = "rbxassetid://"..AnimationId
  786. local k5 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim5)
  787. Emote5.MouseButton1Down:connect(function()
  788. if Emote5.Text == "JumpingOn" then
  789.         Emote5.Text = "JumpingOff"
  790.     k5:Play()
  791. else
  792.         if Emote5.Text == "JumpingOff" then
  793.             Emote5.Text = "JumpingOn"
  794.          k5:Stop()
  795.         end
  796. end
  797. end)
  798.  
  799. Emote6.Name = "Emote6"
  800. Emote6.Parent = Frame
  801. Emote6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  802. Emote6.Position = UDim2.new(0.388888896, 0, 0.648000002, 0)
  803. Emote6.Size = UDim2.new(0, 83, 0, 34)
  804. Emote6.Font = Enum.Font.GothamBold
  805. Emote6.Text = "Dance2On"
  806. Emote6.TextColor3 = Color3.fromRGB(0, 0, 0)
  807. Emote6.TextScaled = true
  808. Emote6.TextSize = 14.000
  809. Emote6.TextWrapped = true
  810. AnimationId = "35654637"
  811. local Anim6 = Instance.new("Animation")
  812. Anim6.AnimationId = "rbxassetid://"..AnimationId
  813. local k6 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim6)
  814. Emote6.MouseButton1Down:connect(function()
  815. if Emote6.Text == "Dance2On" then
  816.         Emote6.Text = "Dance2Off"
  817.     k6:Play()
  818. else
  819.         if Emote6.Text == "Dance2Off" then
  820.             Emote6.Text = "Dance2On"
  821.          k6:Stop()
  822.         end
  823. end
  824. end)
  825.  
  826. Emote7.Name = "Emote7"
  827. Emote7.Parent = Frame
  828. Emote7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  829. Emote7.Position = UDim2.new(0.693121672, 0, 0.216000006, 0)
  830. Emote7.Size = UDim2.new(0, 89, 0, 31)
  831. Emote7.Font = Enum.Font.GothamBold
  832. Emote7.Text = "Dance3On"
  833. Emote7.TextColor3 = Color3.fromRGB(0, 0, 0)
  834. Emote7.TextScaled = true
  835. Emote7.TextSize = 14.000
  836. Emote7.TextWrapped = true
  837. AnimationId = "248263260"
  838. local Anim7 = Instance.new("Animation")
  839. Anim7.AnimationId = "rbxassetid://"..AnimationId
  840. local k7 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim7)
  841. Emote7.MouseButton1Down:connect(function()
  842. if Emote7.Text == "Dance3On" then
  843.         Emote7.Text = "Dance3Off"
  844.     k7:Play()
  845. else
  846.         if Emote7.Text == "Dance3Off" then
  847.             Emote7.Text = "Dance3On"
  848.          k7:Stop()
  849.         end
  850. end
  851. end)
  852.  
  853. Emote8.Name = "Emote8"
  854. Emote8.Parent = Frame
  855. Emote8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  856. Emote8.Position = UDim2.new(0.693121672, 0, 0.43599999, 0)
  857. Emote8.Size = UDim2.new(0, 89, 0, 31)
  858. Emote8.Font = Enum.Font.GothamBold
  859. Emote8.Text = "LivetateOn"
  860. Emote8.TextColor3 = Color3.fromRGB(0, 0, 0)
  861. Emote8.TextScaled = true
  862. Emote8.TextSize = 14.000
  863. Emote8.TextWrapped = true
  864. AnimationId = "313762630"
  865. local Anim8 = Instance.new("Animation")
  866. Anim8.AnimationId = "rbxassetid://"..AnimationId
  867. local k8 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim8)
  868. Emote8.MouseButton1Down:connect(function()
  869. if Emote8.Text == "LivetateOn" then
  870.         Emote8.Text = "LivetateOff"
  871.     k8:Play()
  872. else
  873.         if Emote8.Text == "LivetateOff" then
  874.             Emote8.Text = "LivetateOn"
  875.          k8:Stop()
  876.         end
  877. end
  878. end)
  879.  
  880.  
  881. Emote9.Name = "Emote9"
  882. Emote9.Parent = Frame
  883. Emote9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  884. Emote9.Position = UDim2.new(0.693121672, 0, 0.648000002, 0)
  885. Emote9.Size = UDim2.new(0, 89, 0, 34)
  886. Emote9.Font = Enum.Font.GothamBold
  887. Emote9.Text = "Head ThrowOn"
  888. Emote9.TextColor3 = Color3.fromRGB(0, 0, 0)
  889. Emote9.TextScaled = true
  890. Emote9.TextSize = 14.000
  891. Emote9.TextWrapped = true
  892. AnimationId = "35154961"
  893. local Anim9 = Instance.new("Animation")
  894. Anim9.AnimationId = "rbxassetid://"..AnimationId
  895. local k9 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim9)
  896. Emote9.MouseButton1Down:connect(function()
  897. if Emote9.Text == "Head ThrowOn" then
  898.         Emote9.Text = "Head ThrowOff"
  899.     k9:Play()
  900. else
  901.         if Emote9.Text == "Head ThrowOff" then
  902.             Emote9.Text = "Head ThrowOn"
  903.          k9:Stop()
  904.         end
  905. end
  906. end)
  907.  
  908.  
  909. ScreenGui.Parent = game.CoreGui
  910. Open.Name = "Open"
  911. Open.Parent = ScreenGui
  912. Open.Draggable = false
  913. Open.Size = UDim2.new(0.05,0,0.114,0)
  914. Open.Position = UDim2.new(0.95, 0, 0.4, 0)
  915. Open.Text = "Open"
  916. Open.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  917. Open.TextColor3 = Color3.fromRGB(255, 255, 255)
  918. Open.TextScaled = true
  919. Open.TextSize = 20
  920. Open.Visible = true
  921. Open.BackgroundTransparency = .5
  922. Open.MouseButton1Up:Connect(function()
  923. if Open.Text == "Open" then
  924.         Open.Text = "Close"
  925.        Frame.Visible = true
  926. Frame:TweenPosition(UDim2.new(0.3, 0, 0.2, 0), 'Out', 7.9, true)
  927. else
  928.         if Open.Text == "Close" then
  929.             Open.Text = "Open"
  930.            Frame.Visible = false
  931.         end
  932. end
  933. end)
  934.  
  935.  
  936. local InvWall1 = Instance.new("Part")
  937. InvWall1.Parent = workspace
  938. InvWall1.Anchored = true
  939. InvWall1.Size = Vector3.new(501, 58, 2)
  940. InvWall1.CanCollide = false
  941. InvWall1.Position = Vector3.new(117.61, 1695, -27.15)
  942. InvWall1.Transparency = 1
  943. Touched = false
  944. InvWall1.Touched:connect(function(player)
  945. if Touched == false then
  946. Touched = true
  947. if player.Parent.ClassName == "Model" then
  948. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
  949.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  950.         player.Parent.Humanoid.HipHeight = 0/0
  951.         wait(3)
  952.         player.Parent:Destroy()
  953.     end
  954. end
  955. Touched = false
  956. end
  957. end)
  958.  
  959. local InvWall2 = Instance.new("Part")
  960. InvWall2.Parent = workspace
  961. InvWall2.Anchored = true
  962. InvWall2.Size = Vector3.new(501, 58, 2)
  963. InvWall2.CanCollide = false
  964. InvWall2.Position = Vector3.new(117.61, 1695, 471.85)
  965. InvWall2.Transparency = 1
  966. Touched = false
  967. InvWall2.Touched:connect(function(player)
  968. if Touched == false then
  969. Touched = true
  970. if player.Parent.ClassName == "Model" then
  971. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
  972.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  973.         player.Parent.Humanoid.HipHeight = 0/0
  974.         wait(3)
  975.         player.Parent:Destroy()
  976.     end
  977. end
  978. Touched = false
  979. end
  980. end)
  981.  
  982. local InvWall3 = Instance.new("Part")
  983. InvWall3.Parent = workspace
  984. InvWall3.Anchored = true
  985. InvWall3.Size = Vector3.new(1, 58, 498)
  986. InvWall3.CanCollide = false
  987. InvWall3.Position = Vector3.new(-131.76, 1695.5, 221.85)
  988. InvWall3.Transparency = 1
  989. Touched = false
  990. InvWall3.Touched:connect(function(player)
  991. if Touched == false then
  992. Touched = true
  993. if player.Parent.ClassName == "Model" then
  994. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
  995.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  996.         player.Parent.Humanoid.HipHeight = 0/0
  997.         wait(3)
  998.         player.Parent:Destroy()
  999.     end
  1000. end
  1001. Touched = false
  1002. end
  1003. end)
  1004.  
  1005. local InvWall4 = Instance.new("Part")
  1006. InvWall4.Parent = workspace
  1007. InvWall4.Anchored = true
  1008. InvWall4.Size = Vector3.new(1, 58, 498)
  1009. InvWall4.CanCollide = false
  1010. InvWall4.Position = Vector3.new(367.24, 1695.5, 221.85)
  1011. InvWall4.Transparency = 1
  1012. Touched = false
  1013. InvWall4.Touched:connect(function(player)
  1014. if Touched == false then
  1015. Touched = true
  1016. if player.Parent.ClassName == "Model" then
  1017. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
  1018.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  1019.         player.Parent.Humanoid.HipHeight = 0/0
  1020.         wait(3)
  1021.         player.Parent:Destroy()
  1022.     end
  1023. end
  1024. Touched = false
  1025. end
  1026. end)
  1027.  
  1028.  
  1029. local Tropic = Instance.new("Sky")
  1030. Tropic.Name = "Tropic"
  1031. Tropic.SkyboxUp = "http://www.roblox.com/asset/?id=169210149"
  1032. Tropic.SkyboxLf = "http://www.roblox.com/asset/?id=169210133"
  1033. Tropic.SkyboxBk = "http://www.roblox.com/asset/?id=169210090"
  1034. Tropic.SkyboxFt = "http://www.roblox.com/asset/?id=169210121"
  1035. Tropic.StarCount = 100
  1036. Tropic.SkyboxDn = "http://www.roblox.com/asset/?id=169210108"
  1037. Tropic.SkyboxRt = "http://www.roblox.com/asset/?id=169210143"
  1038. Tropic.Parent = game.Lighting
  1039.  
  1040. local a = game.Lighting
  1041. a.Ambient = Color3.fromRGB(33, 33, 33)
  1042. a.Brightness = 5.69
  1043. a.ColorShift_Bottom = Color3.fromRGB(0, 0, 0)
  1044. a.ColorShift_Top = Color3.fromRGB(255, 247, 237)
  1045. a.EnvironmentDiffuseScale = 0.105
  1046. a.EnvironmentSpecularScale = 0.522
  1047. a.GlobalShadows = true
  1048. a.OutdoorAmbient = Color3.fromRGB(51, 54, 67)
  1049. a.ShadowSoftness = 0.18
  1050. a.GeographicLatitude = -15.525
  1051. a.ExposureCompensation = 0.75
  1052.  
  1053. local c = Instance.new("ColorCorrectionEffect", a)
  1054. c.Brightness = 0.015
  1055. c.Contrast = 0.25
  1056. c.Enabled = true
  1057. c.Saturation = 0.2
  1058. c.TintColor = Color3.fromRGB(217, 145, 57)
  1059. if getgenv().mode == "Summer" then
  1060.    c.TintColor = Color3.fromRGB(255, 220, 148)
  1061. elseif getgenv().mode == "Autumn" then
  1062.    c.TintColor = Color3.fromRGB(217, 145, 57)
  1063. else
  1064.    warn("No mode selected!")
  1065.    print("Please select a mode")
  1066.    
  1067.    c:Destroy()
  1068. end
  1069. local d = Instance.new("DepthOfFieldEffect", a)
  1070. d.Enabled = true
  1071. d.FarIntensity = 0.077
  1072. d.FocusDistance = 21.54
  1073. d.InFocusRadius = 20.77
  1074. d.NearIntensity = 0.277
  1075. local e = Instance.new("ColorCorrectionEffect", a)
  1076. e.Brightness = 0
  1077. e.Contrast = -0.07
  1078. e.Saturation = 0
  1079. e.Enabled = true
  1080. e.TintColor = Color3.fromRGB(255, 247, 239)
  1081. local e2 = Instance.new("ColorCorrectionEffect", a)
  1082. e2.Brightness = 0.2
  1083. e2.Contrast = 0.45
  1084. e2.Saturation = -0.1
  1085. e2.Enabled = true
  1086. e2.TintColor = Color3.fromRGB(255, 255, 255)
  1087. local s = Instance.new("SunRaysEffect", a)
  1088. s.Enabled = true
  1089. s.Intensity = 0.01
  1090. s.Spread = 0.146
  1091.  
  1092. local ScreenGui = Instance.new("ScreenGui")
  1093. ScreenGui.Parent = game.CoreGui
  1094. local radio = Instance.new("Part")
  1095. radio.Parent = workspace
  1096. radio.Name = "Radio"
  1097. radio.CanCollide = false
  1098. radio.Anchored = true
  1099. radio.FormFactor = "Custom"
  1100. radio.Size = Vector3.new(3.2, 1.43, 0.8)
  1101. radio.CFrame = CFrame.new(216.2, 1667.5, 179.14)
  1102. radio.Rotation = Vector3.new(0, -45, 0)
  1103.  
  1104.  
  1105. local mesh = Instance.new("SpecialMesh",radio)
  1106. mesh.MeshId = "http://www.roblox.com/asset/?id=151760030"
  1107. mesh.TextureId = "http://www.roblox.com/asset/?id=201953316"
  1108.  
  1109.  
  1110.  
  1111.  
  1112. local sound = Instance.new("Sound",radio)
  1113. sound.Name = "Music"
  1114. sound.Looped = true
  1115. sound.Volume = 1
  1116.  
  1117.  
  1118. local gui = Instance.new("ScreenGui", ScreenGui)
  1119.  
  1120. local frame = Instance.new("Frame",gui)
  1121. frame.BackgroundColor3 = Color3.new(58/255,58/255,58/255)
  1122. frame.BorderColor3 = Color3.new(0,0,0)
  1123. frame.BorderSizePixel = 2
  1124. frame.Size = UDim2.new(0,300,0,200)
  1125. frame.Position = UDim2.new(0,20,.5,-100)
  1126. frame.Active = true
  1127. frame.Draggable = true
  1128. frame.Selectable = true
  1129. frame.Visible = false
  1130. local playb = Instance.new("TextButton",frame)
  1131. playb.BackgroundColor3 = Color3.new(0,85/255,0)
  1132. playb.BorderColor3 = Color3.new(0,0,0)
  1133. playb.BorderSizePixel = 2
  1134. playb.Size = UDim2.new(.3,0,.2,0)
  1135. playb.Position = UDim2.new(.1,0,.7,0)
  1136. playb.Text = "Play"
  1137. playb.TextColor3 = Color3.new(255,255,255)
  1138. playb.TextScaled = true
  1139.  
  1140. local stopb = Instance.new("TextButton",frame)
  1141. stopb.BackgroundColor3 = Color3.new(170/255,0,0)
  1142. stopb.BorderColor3 = Color3.new(0,0,0)
  1143. stopb.BorderSizePixel = 2
  1144. stopb.Size = UDim2.new(.3,0,.2,0)
  1145. stopb.Position = UDim2.new(.6,0,.7,0)
  1146. stopb.Text = "Stop"
  1147. stopb.TextColor3 = Color3.new(255,255,255)
  1148. stopb.TextScaled = true
  1149.  
  1150. local closeb = Instance.new("TextButton",frame)
  1151. closeb.BackgroundColor3 = Color3.new(170/255,0,0)
  1152. closeb.BorderColor3 = Color3.new(0,0,0)
  1153. closeb.BorderSizePixel = 2
  1154. closeb.Size = UDim2.new(.1,0,.1,0)
  1155. closeb.Position = UDim2.new(0.9,0,0,0)
  1156. closeb.Text = "X"
  1157. closeb.TextColor3 = Color3.new(255,255,255)
  1158. closeb.TextScaled = true
  1159.  
  1160. local stipb = Instance.new("TextBox",frame)
  1161. stipb.BackgroundColor3 = Color3.new(0,0,127/255)
  1162. stipb.BorderColor3 = Color3.new(0,0,0)
  1163. stipb.BorderSizePixel = 2
  1164. stipb.Size = UDim2.new(.5,0,.25,0)
  1165. stipb.Position = UDim2.new(.25,0,.3,0)
  1166. stipb.Text = "1842203003"
  1167. stipb.TextColor3 = Color3.new(255,255,255)
  1168. stipb.TextScaled = true
  1169.  
  1170.  
  1171.  
  1172. local Playing = false
  1173.  
  1174. stipb.Changed:connect(function()
  1175.     sound.SoundId = "rbxassetid://" .. stipb.Text
  1176. end)
  1177.  
  1178. playb.MouseButton1Click:connect(function()
  1179.     sound:Play()
  1180.     Playing = true
  1181. end)
  1182.  
  1183. stopb.MouseButton1Click:connect(function()
  1184.     sound:Stop()
  1185.     Playing = false
  1186. end)
  1187.  
  1188. closeb.MouseButton1Click:connect(function()
  1189.     frame.Visible = false
  1190. end)
  1191.  
  1192. radio.Touched:connect(function(player)
  1193. if Touched == false then
  1194. Touched = true
  1195. if player.Parent.ClassName == "Model" then
  1196. frame.Visible = true
  1197.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  1198.         player.Parent.Humanoid.HipHeight = 0/0
  1199.         wait(3)
  1200.         player.Parent:Destroy()
  1201.     end
  1202. end
  1203. Touched = false
  1204. end
  1205. end)
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212. local minutesAfterMidnight = 6 * 60
  1213. while true do
  1214.     game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
  1215.     minutesAfterMidnight = minutesAfterMidnight + 1
  1216.     wait(0.2)
  1217. end
  1218. while true do
  1219.     if Playing then
  1220.         mesh.Scale = Vector3.new(1.1,1.1,1.1)
  1221.         wait(.2)
  1222.         mesh.Scale = Vector3.new(1,1,1)
  1223.     end
  1224.     wait(.2)
  1225. end
  1226. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement