Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if loaded then
- game.Players.LocalPlayer:Kick("Restart")
- local TeleportService = game:GetService("TeleportService")
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Rejoin = coroutine.create(function()
- local Success, ErrorMessage = pcall(function()
- TeleportService:Teleport(game.PlaceId, LocalPlayer)
- end)
- if ErrorMessage and not Success then
- warn(ErrorMessage)
- end
- end)
- coroutine.resume(Rejoin)
- end
- pcall(function()
- getgenv().loaded = true
- local LocalPlayer = game.Players.LocalPlayer
- if LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then game.Players.LocalPlayer:Kick("You need to bee in R6") end
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- Sound2 = Instance.new("Sound")
- SpecialMesh3 = Instance.new("SpecialMesh")
- SpotLight4 = Instance.new("SpotLight")
- LocalScript5 = Instance.new("LocalScript")
- LocalScript6 = Instance.new("LocalScript")
- ModuleScript7 = Instance.new("ModuleScript")
- Tool0.Name = "Flashlight"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id=115955232"
- Tool0.Grip = CFrame.new(0.100000001, -0.400000006, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool0.GripPos = Vector3.new(0.10000000149011612, -0.4000000059604645, 0)
- Tool0.ToolTip = "Flashlight"
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(10.9154053, 0.25, -18.9892578, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part1.Orientation = Vector3.new(0, 90, 0)
- Part1.Position = Vector3.new(10.9154052734375, 0.25, -18.9892578125)
- Part1.Rotation = Vector3.new(0, 90, 0)
- Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part1.Size = Vector3.new(0.5, 0.5, 2)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Bright yellow")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Bright yellow")
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- Sound2.Parent = Part1
- Sound2.SoundId = "http://www.roblox.com/asset/?id=115959318"
- Sound2.Volume = 1
- SpecialMesh3.Parent = Part1
- SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=115955313"
- SpecialMesh3.Scale = Vector3.new(0.699999988079071, 0.699999988079071, 0.699999988079071)
- SpecialMesh3.TextureId = "http://www.roblox.com/asset?id=115955343"
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- SpotLight4.Parent = Part1
- SpotLight4.Enabled = false
- SpotLight4.Range = 40
- SpotLight4.Brightness = 10
- SpotLight4.Shadows = true
- LocalScript5.Parent = Tool0
- table.insert(cors,sandbox(LocalScript5,function()
- player = game.Players.LocalPlayer
- tool = script.Parent
- repeat wait() until player
- tool.Equipped:connect(function(mouse)
- mouse.Button1Down:connect(function()
- tool.Handle.SpotLight.Enabled = not tool.Handle.SpotLight.Enabled
- tool.Handle.Sound:Play()
- end)
- end)
- end))
- LocalScript6.Parent = Tool0
- table.insert(cors,sandbox(LocalScript6,function()
- -- Variables for services
- local render = game:GetService("RunService").RenderStepped
- local contextActionService = game:GetService("ContextActionService")
- local userInputService = game:GetService("UserInputService")
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local Tool = script.Parent
- -- Variables for Module Scripts
- local screenSpace = require(Tool:WaitForChild("ScreenSpace"))
- local connection
- local neck, shoulder, oldNeckC0, oldShoulderC0
- local mobileShouldTrack = true
- -- Thourough check to see if a character is sitting
- local function amISitting(character)
- local t = character.Torso
- for _, part in pairs(t:GetConnectedParts(true)) do
- if part:IsA("Seat") or part:IsA("VehicleSeat") then
- return true
- end
- end
- end
- -- Function to call on renderstepped. Orients the character so it is facing towards
- -- the player mouse's position in world space. If character is sitting then the torso
- -- should not track
- local function frame(mousePosition)
- -- Special mobile consideration. We don't want to track if the user was touching a ui
- -- element such as the movement controls. Just return out of function if so to make sure
- -- character doesn't track
- if not mobileShouldTrack then return end
- -- Make sure character isn't swiming. If the character is swimming the following code will
- -- not work well; the character will not swim correctly. Besides, who shoots underwater?
- if player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Swimming then
- local torso = player.Character.Torso
- local head = player.Character.Head
- local toMouse = (mousePosition - head.Position).unit
- local angle = math.acos(toMouse:Dot(Vector3.new(0,1,0)))
- local neckAngle = angle
- -- Limit how much the head can tilt down. Too far and the head looks unnatural
- if math.deg(neckAngle) > 110 then
- neckAngle = math.rad(110)
- end
- neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.pi - neckAngle,math.pi,0)
- -- Calculate horizontal rotation
- local arm = player.Character:FindFirstChild("Right Arm")
- local fromArmPos = torso.Position + torso.CFrame:vectorToWorldSpace(Vector3.new(
- torso.Size.X/2 + arm.Size.X/2, torso.Size.Y/2 - arm.Size.Z/2, 0))
- local toMouseArm = ((mousePosition - fromArmPos) * Vector3.new(1,0,1)).unit
- local look = (torso.CFrame.lookVector * Vector3.new(1,0,1)).unit
- local lateralAngle = math.acos(toMouseArm:Dot(look))
- -- Check for rogue math
- if tostring(lateralAngle) == "-1.#IND" then
- lateralAngle = 0
- end
- -- Handle case where character is sitting down
- if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then
- local cross = torso.CFrame.lookVector:Cross(toMouseArm)
- if lateralAngle > math.pi/2 then
- lateralAngle = math.pi/2
- end
- if cross.Y < 0 then
- lateralAngle = -lateralAngle
- end
- end
- -- Turn shoulder to point to mouse
- shoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2 - angle,math.pi/2 + lateralAngle,0)
- -- If not sitting then aim torso laterally towards mouse
- if not amISitting(player.Character) then
- torso.CFrame = CFrame.new(torso.Position, torso.Position + (Vector3.new(
- mousePosition.X, torso.Position.Y, mousePosition.Z)-torso.Position).unit)
- end
- end
- end
- -- Function to bind to render stepped if player is on PC
- local function pcFrame()
- frame(mouse.Hit.p)
- end
- -- Function to bind to touch moved if player is on mobile
- local function mobileFrame(touch, processed)
- -- Check to see if the touch was on a UI element. If so, we don't want to update anything
- if not processed then
- -- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
- -- to create a ray from the camera.
- local test = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1)
- local nearPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1))
- nearPos = game.Workspace.CurrentCamera.CoordinateFrame.p - nearPos
- local farPos = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y,50)
- farPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(farPos) * -1
- if farPos.magnitude > 900 then
- farPos = farPos.unit * 900
- end
- local ray = Ray.new(nearPos, farPos)
- local part, pos = game.Workspace:FindPartOnRay(ray, player.Character)
- -- if a position was found on the ray then update the character's rotation
- if pos then
- frame(pos)
- end
- end
- end
- local function OnActivated()
- local myModel = player.Character
- if Tool.Enabled and myModel and myModel:FindFirstChild('Humanoid') and myModel.Humanoid.Health > 0 then
- Tool.Enabled = false
- game.ReplicatedStorage.ROBLOX_RocketFireEvent:FireServer(mouse.Hit.p)
- wait(2)
- Tool.Enabled = true
- end
- end
- local oldIcon = nil
- -- Function to bind to equip event
- local function equip()
- local torso = player.Character.Torso
- -- Setup joint variables
- neck = torso.Neck
- oldNeckC0 = neck.C0
- shoulder = torso:FindFirstChild("Right Shoulder")
- oldShoulderC0 = shoulder.C0
- -- Remember old mouse icon and update current
- oldIcon = mouse.Icon
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- -- Bind TouchMoved event if on mobile. Otherwise connect to renderstepped
- if userInputService.TouchEnabled then
- connection = userInputService.TouchMoved:connect(mobileFrame)
- else
- connection = render:connect(pcFrame)
- end
- -- Bind TouchStarted and TouchEnded. Used to determine if character should rotate
- -- during touch input
- userInputService.TouchStarted:connect(function(touch, processed)
- mobileShouldTrack = not processed
- end)
- userInputService.TouchEnded:connect(function(touch, processed)
- mobileShouldTrack = false
- end)
- -- If game uses filtering enabled then need to update server while tool is
- -- held by character.
- if workspace.FilteringEnabled then
- while connection do
- wait()
- game.ReplicatedStorage.ROBLOX_RocketUpdateEvent:FireServer(neck.C0, shoulder.C0)
- end
- end
- end
- -- Function to bind to Unequip event
- local function unequip()
- if connection then connection:disconnect() end
- mouse.Icon = oldIcon
- neck.C0 = oldNeckC0
- shoulder.C0 = oldShoulderC0
- end
- -- Bind tool events
- Tool.Equipped:connect(equip)
- Tool.Unequipped:connect(unequip)
- Tool.Activated:connect(OnActivated)
- end))
- ModuleScript7.Name = "ScreenSpace"
- ModuleScript7.Parent = Tool0
- table.insert(cors,sandbox(ModuleScript7,function()
- local PlayerMouse = Game:GetService('Players').LocalPlayer:GetMouse()
- local ScreenSpace = {}
- -- Getter functions, with a couple of hacks for Ipad pre-focus.
- function ScreenSpace.ViewSizeX()
- local x = PlayerMouse.ViewSizeX
- local y = PlayerMouse.ViewSizeY
- if x == 0 then
- return 1024
- else
- if x > y then
- return x
- else
- return y
- end
- end
- end
- function ScreenSpace.ViewSizeY()
- local x = PlayerMouse.ViewSizeX
- local y = PlayerMouse.ViewSizeY
- if y == 0 then
- return 768
- else
- if x > y then
- return y
- else
- return x
- end
- end
- end
- -- Nice getter for aspect ratio. Due to the checks in the ViewSize functions this
- -- will never fail with a divide by zero error.
- function ScreenSpace.AspectRatio()
- return ScreenSpace.ViewSizeX() / ScreenSpace.ViewSizeY()
- end
- -- WorldSpace -> ScreenSpace. Raw function taking a world position and giving you the
- -- screen position.
- function ScreenSpace.WorldToScreen(at)
- local point = Workspace.CurrentCamera.CoordinateFrame:pointToObjectSpace(at)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- --
- local x = (point.x/point.z) / -wfactor
- local y = (point.y/point.z) / hfactor
- --
- return Vector2.new(ScreenSpace.ViewSizeX()*(0.5 + 0.5*x), ScreenSpace.ViewSizeY()*(0.5 + 0.5*y))
- end
- -- ScreenSpace -> WorldSpace. Raw function taking a screen position and a depth and
- -- converting it into a world position.
- function ScreenSpace.ScreenToWorld(x, y, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- --
- local xf, yf = x/ScreenSpace.ViewSizeX()*2 - 1, y/ScreenSpace.ViewSizeY()*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth)
- end
- -- ScreenSize -> WorldSize
- function ScreenSpace.ScreenWidthToWorldWidth(screenWidth, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx = ScreenSpace.ViewSizeX()
- --
- return -(screenWidth / sx) * 2 * wfactor * depth
- end
- function ScreenSpace.ScreenHeightToWorldHeight(screenHeight, depth)
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local sy = ScreenSpace.ViewSizeY()
- --
- return -(screenHeight / sy) * 2 * hfactor * depth
- end
- -- WorldSize -> ScreenSize
- function ScreenSpace.WorldWidthToScreenWidth(worldWidth, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx = ScreenSpace.ViewSizeX()
- --
- return -(worldWidth * sx) / (2 * wfactor * depth)
- end
- function ScreenSpace.WorldHeightToScreenHeight(worldHeight, depth)
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local sy = ScreenSpace.ViewSizeY()
- --
- return -(worldHeight * sy) / (2 * hfactor * depth)
- end
- -- WorldSize + ScreenSize -> Depth needed
- function ScreenSpace.GetDepthForWidth(screenWidth, worldWidth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- return -(sx * worldWidth) / (screenWidth * 2 * wfactor)
- end
- function ScreenSpace.GetDepthForHeight(screenHeight, worldHeight)
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local sy = ScreenSpace.ViewSizeY()
- --
- return -(sy * worldHeight) / (screenHeight * 2 * hfactor)
- end
- -- ScreenSpace -> WorldSpace. Taking a screen height, and a depth to put an object
- -- at, and returning a size of how big that object has to be to appear that size
- -- at that depth.
- function ScreenSpace.ScreenToWorldByHeightDepth(x, y, screenHeight, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- local worldHeight = -(screenHeight/sy) * 2 * hfactor * depth
- --
- local xf, yf = x/sx*2 - 1, y/sy*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth), worldHeight
- end
- -- ScreenSpace -> WorldSpace. Taking a screen width, and a depth to put an object
- -- at, and returning a size of how big that object has to be to appear that size
- -- at that depth.
- function ScreenSpace.ScreenToWorldByWidthDepth(x, y, screenWidth, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- local worldWidth = (screenWidth/sx) * 2 * -wfactor * depth
- --
- local xf, yf = x/sx*2 - 1, y/sy*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth), worldWidth
- end
- -- ScreenSpace -> WorldSpace. Taking a screen height that you want that object to be
- -- and a world height that is the size of that object, and returning the position to
- -- put that object at to satisfy those.
- function ScreenSpace.ScreenToWorldByHeight(x, y, screenHeight, worldHeight)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- local depth = - (sy * worldHeight) / (screenHeight * 2 * hfactor)
- --
- local xf, yf = x/sx*2 - 1, y/sy*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth)
- end
- -- ScreenSpace -> WorldSpace. Taking a screen width that you want that object to be
- -- and a world width that is the size of that object, and returning the position to
- -- put that object at to satisfy those.
- function ScreenSpace.ScreenToWorldByWidth(x, y, screenWidth, worldWidth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- local depth = - (sx * worldWidth) / (screenWidth * 2 * wfactor)
- --
- local xf, yf = x/sx*2 - 1, y/sy*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth)
- end
- return ScreenSpace
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- Humanoid.MaxHealth = 100
- Humanoid.HealthChanged:connect(function()
- if Humanoid.Health < 5 then
- Humanoid.Health = Humanoid.MaxHealth
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
- end
- end)
- local Sound = Instance.new("Sound")
- local Id = "339680541"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = true
- Sound.Volume = 1
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
- for i = 1,1 do
- local Grass = Instance.new("Part")
- Grass.Parent = workspace
- Grass.Anchored = true
- Grass.Size = Vector3.new(500, 3, 500)
- Grass.CanCollide = true
- Grass.Position = Vector3.new(117.878, 1665, 222.611)
- Grass.Material = "Grass"
- Grass.BrickColor = BrickColor.new("Lime green")
- end
- ScriptFire1 = Instance.new("Script")
- ScriptFire2 = Instance.new("Script")
- ScriptFire3 = Instance.new("Script")
- ScriptFire4 = Instance.new("Script")
- local Fire1 = Instance.new("Part")
- Fire1.Parent = workspace
- Fire1.Anchored = true
- Fire1.Size = Vector3.new(4, 1, 1)
- Fire1.CanCollide = true
- Fire1.Position = Vector3.new(220.715, 1667.5, 175.061)
- Fire1.Material = "Wood"
- Fire1.BrickColor = BrickColor.new("Fawn brown")
- Fire1.Rotation = Vector3.new(0, -105, -60)
- local Fire2 = Instance.new("Part")
- Fire2.Parent = workspace
- Fire2.Anchored = true
- Fire2.Size = Vector3.new(4, 1, 1)
- Fire2.CanCollide = true
- Fire2.Position = Vector3.new(219.715, 1667.5, 174.061)
- Fire2.Material = "Wood"
- Fire2.BrickColor = BrickColor.new("Fawn brown")
- Fire2.Rotation = Vector3.new(0, 180, -60)
- local Fire3 = Instance.new("Part")
- Fire3.Parent = workspace
- Fire3.Anchored = true
- Fire3.Size = Vector3.new(4, 1, 1)
- Fire3.CanCollide = true
- Fire3.Position = Vector3.new(220.715, 1667.5, 173.061)
- Fire3.Material = "Wood"
- Fire3.BrickColor = BrickColor.new("Fawn brown")
- Fire3.Rotation = Vector3.new(0, 90, -60)
- local Fire4 = Instance.new("Part")
- Fire4.Parent = workspace
- Fire4.Anchored = true
- Fire4.Size = Vector3.new(4, 1, 1)
- Fire4.CanCollide = true
- Fire4.Position = Vector3.new(221.715, 1667.5, 174.061)
- Fire4.Material = "Wood"
- Fire4.BrickColor = BrickColor.new("Fawn brown")
- Fire4.Rotation = Vector3.new(0, 0, -60)
- local Fire = Instance.new("Part")
- Fire.Parent = workspace
- Fire.Anchored = true
- Fire.Size = Vector3.new(1, 1, 1)
- Fire.CanCollide = true
- Fire.Position = Vector3.new(220.912, 1666.5, 173.553)
- Fire.Transparency = 1
- local Fire = Instance.new("Fire", Fire)
- Fire.Size = 10
- Fire.Color = Color3.new(255,255,0)
- Fire.SecondaryColor = Color3.new(0,0,0)
- local SeatWood = Instance.new("Part")
- SeatWood.Parent = workspace
- SeatWood.Anchored = true
- SeatWood.Size = Vector3.new(3, 2, 3)
- SeatWood.CanCollide = true
- SeatWood.Position = Vector3.new(223.285, 1667, 182.772)
- local Mesh = Instance.new("CylinderMesh", SeatWood)
- SeatWood.BrickColor = BrickColor.new("Cork")
- SeatWood.Material = "Wood"
- local SeatWood2 = Instance.new("Part")
- SeatWood2.Parent = workspace
- SeatWood2.Anchored = true
- SeatWood2.Size = Vector3.new(3, 2, 3)
- SeatWood2.CanCollide = true
- SeatWood2.Position = Vector3.new(223.285, 1667, 164.772)
- local Mesh = Instance.new("CylinderMesh", SeatWood2)
- SeatWood2.BrickColor = BrickColor.new("Cork")
- SeatWood2.Material = "Wood"
- local SeatWood3 = Instance.new("Part")
- SeatWood3.Parent = workspace
- SeatWood3.Anchored = true
- SeatWood3.Size = Vector3.new(3, 2, 3)
- SeatWood3.CanCollide = true
- SeatWood3.Position = Vector3.new(231.285, 1667, 173.772)
- local Mesh = Instance.new("CylinderMesh", SeatWood3)
- SeatWood3.BrickColor = BrickColor.new("Cork")
- SeatWood3.Material = "Wood"
- local SeatWood4 = Instance.new("Part")
- SeatWood4.Parent = workspace
- SeatWood4.Anchored = true
- SeatWood4.Size = Vector3.new(3, 2, 3)
- SeatWood4.CanCollide = true
- SeatWood4.Position = Vector3.new(214.285, 1667, 173.772)
- local Mesh = Instance.new("CylinderMesh", SeatWood4)
- SeatWood4.BrickColor = BrickColor.new("Cork")
- SeatWood4.Material = "Wood"
- local BeachMat1 = Instance.new("Part")
- BeachMat1.Parent = workspace
- BeachMat1.Anchored = true
- BeachMat1.Size = Vector3.new(9, 0.001, 15)
- BeachMat1.CanCollide = true
- BeachMat1.Position = Vector3.new(206.878, 1666.5, 172.611)
- BeachMat1.Material = "Fabric"
- BeachMat1.BrickColor = BrickColor.new("Brick yellow")
- local ScreenGui = Instance.new("ScreenGui")
- local Open = Instance.new("TextButton")
- local Frame = Instance.new("Frame")
- local Name = Instance.new("TextLabel")
- local Emote1 = Instance.new("TextButton")
- local Emote2 = Instance.new("TextButton")
- local Emote3 = Instance.new("TextButton")
- local Emote4 = Instance.new("TextButton")
- local Emote5 = Instance.new("TextButton")
- local Emote6 = Instance.new("TextButton")
- local Emote7 = Instance.new("TextButton")
- local Emote8 = Instance.new("TextButton")
- local Emote9 = Instance.new("TextButton")
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame.Position = UDim2.new(0.3, 0, 1, 0)
- Frame.Size = UDim2.new(0, 358, 0, 220)
- Frame.Visible = false
- Name.Name = "Name"
- Name.Parent = Frame
- Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Name.Size = UDim2.new(0, 358, 0, 25)
- Name.Font = Enum.Font.GothamBold
- Name.Text = "Emotes"
- Name.TextColor3 = Color3.fromRGB(0, 0, 0)
- Name.TextScaled = true
- Name.TextSize = 14.000
- Name.TextWrapped = true
- Emote1.Name = "Emote1"
- Emote1.Parent = Frame
- Emote1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote1.Position = UDim2.new(0.0714285746, 0, 0.216000006, 0)
- Emote1.Size = UDim2.new(0, 79, 0, 31)
- Emote1.Font = Enum.Font.GothamBold
- Emote1.Text = "Lay1On"
- Emote1.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote1.TextScaled = true
- Emote1.TextSize = 14.000
- Emote1.TextWrapped = true
- AnimationId = "181526230"
- local Anim1 = Instance.new("Animation")
- Anim1.AnimationId = "rbxassetid://"..AnimationId
- local k1 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim1)
- Emote1.MouseButton1Down:connect(function()
- if Emote1.Text == "Lay1On" then
- Emote1.Text = "Lay1Off"
- k1:Play()
- else
- if Emote1.Text == "Lay1Off" then
- Emote1.Text = "Lay1On"
- k1:Stop()
- end
- end
- end)
- Emote2.Name = "Emote2"
- Emote2.Parent = Frame
- Emote2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote2.Position = UDim2.new(0.0714285746, 0, 0.436000019, 0)
- Emote2.Size = UDim2.new(0, 79, 0, 31)
- Emote2.Font = Enum.Font.GothamBold
- Emote2.Text = "Dance1On"
- Emote2.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote2.TextScaled = true
- Emote2.TextSize = 14.000
- Emote2.TextWrapped = true
- AnimationId = "429703734"
- local Anim2 = Instance.new("Animation")
- Anim2.AnimationId = "rbxassetid://"..AnimationId
- local k2 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim2)
- Emote2.MouseButton1Down:connect(function()
- if Emote2.Text == "Dance1On" then
- Emote2.Text = "Dance1Off"
- k2:Play()
- else
- if Emote2.Text == "Dance1Off" then
- Emote2.Text = "Dance1On"
- k2:Stop()
- end
- end
- end)
- Emote3.Name = "Emote3"
- Emote3.Parent = Frame
- Emote3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote3.Position = UDim2.new(0.0714285746, 0, 0.648000002, 0)
- Emote3.Size = UDim2.new(0, 79, 0, 34)
- Emote3.Font = Enum.Font.GothamBold
- Emote3.Text = "Lay2On"
- Emote3.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote3.TextScaled = true
- Emote3.TextSize = 14.000
- Emote3.TextWrapped = true
- AnimationId = "282574440"
- local Anim3 = Instance.new("Animation")
- Anim3.AnimationId = "rbxassetid://"..AnimationId
- local k3 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim3)
- Emote3.MouseButton1Down:connect(function()
- if Emote3.Text == "Lay2On" then
- Emote3.Text = "Lay2Off"
- k3:Play()
- else
- if Emote3.Text == "Lay2Off" then
- Emote3.Text = "Lay2On"
- k3:Stop()
- end
- end
- end)
- Emote4.Name = "Emote4"
- Emote4.Parent = Frame
- Emote4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote4.Position = UDim2.new(0.388888896, 0, 0.216000006, 0)
- Emote4.Size = UDim2.new(0, 83, 0, 31)
- Emote4.Font = Enum.Font.GothamBold
- Emote4.Text = "SitOn"
- Emote4.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote4.TextScaled = true
- Emote4.TextSize = 14.000
- Emote4.TextWrapped = true
- AnimationId = "182724289"
- local Anim4 = Instance.new("Animation")
- Anim4.AnimationId = "rbxassetid://"..AnimationId
- local k4 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim4)
- Emote4.MouseButton1Down:connect(function()
- if Emote4.Text == "SitOn" then
- Emote4.Text = "SitOff"
- k4:Play()
- else
- if Emote4.Text == "SitOff" then
- Emote4.Text = "SitOn"
- k4:Stop()
- end
- end
- end)
- Emote5.Name = "Emote5"
- Emote5.Parent = Frame
- Emote5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote5.Position = UDim2.new(0.388888896, 0, 0.43599999, 0)
- Emote5.Size = UDim2.new(0, 83, 0, 31)
- Emote5.Font = Enum.Font.GothamBold
- Emote5.Text = "JumpingOn"
- Emote5.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote5.TextScaled = true
- Emote5.TextSize = 14.000
- Emote5.TextWrapped = true
- AnimationId = "429681631"
- local Anim5 = Instance.new("Animation")
- Anim5.AnimationId = "rbxassetid://"..AnimationId
- local k5 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim5)
- Emote5.MouseButton1Down:connect(function()
- if Emote5.Text == "JumpingOn" then
- Emote5.Text = "JumpingOff"
- k5:Play()
- else
- if Emote5.Text == "JumpingOff" then
- Emote5.Text = "JumpingOn"
- k5:Stop()
- end
- end
- end)
- Emote6.Name = "Emote6"
- Emote6.Parent = Frame
- Emote6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote6.Position = UDim2.new(0.388888896, 0, 0.648000002, 0)
- Emote6.Size = UDim2.new(0, 83, 0, 34)
- Emote6.Font = Enum.Font.GothamBold
- Emote6.Text = "Dance2On"
- Emote6.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote6.TextScaled = true
- Emote6.TextSize = 14.000
- Emote6.TextWrapped = true
- AnimationId = "35654637"
- local Anim6 = Instance.new("Animation")
- Anim6.AnimationId = "rbxassetid://"..AnimationId
- local k6 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim6)
- Emote6.MouseButton1Down:connect(function()
- if Emote6.Text == "Dance2On" then
- Emote6.Text = "Dance2Off"
- k6:Play()
- else
- if Emote6.Text == "Dance2Off" then
- Emote6.Text = "Dance2On"
- k6:Stop()
- end
- end
- end)
- Emote7.Name = "Emote7"
- Emote7.Parent = Frame
- Emote7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote7.Position = UDim2.new(0.693121672, 0, 0.216000006, 0)
- Emote7.Size = UDim2.new(0, 89, 0, 31)
- Emote7.Font = Enum.Font.GothamBold
- Emote7.Text = "Dance3On"
- Emote7.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote7.TextScaled = true
- Emote7.TextSize = 14.000
- Emote7.TextWrapped = true
- AnimationId = "248263260"
- local Anim7 = Instance.new("Animation")
- Anim7.AnimationId = "rbxassetid://"..AnimationId
- local k7 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim7)
- Emote7.MouseButton1Down:connect(function()
- if Emote7.Text == "Dance3On" then
- Emote7.Text = "Dance3Off"
- k7:Play()
- else
- if Emote7.Text == "Dance3Off" then
- Emote7.Text = "Dance3On"
- k7:Stop()
- end
- end
- end)
- Emote8.Name = "Emote8"
- Emote8.Parent = Frame
- Emote8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote8.Position = UDim2.new(0.693121672, 0, 0.43599999, 0)
- Emote8.Size = UDim2.new(0, 89, 0, 31)
- Emote8.Font = Enum.Font.GothamBold
- Emote8.Text = "LivetateOn"
- Emote8.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote8.TextScaled = true
- Emote8.TextSize = 14.000
- Emote8.TextWrapped = true
- AnimationId = "313762630"
- local Anim8 = Instance.new("Animation")
- Anim8.AnimationId = "rbxassetid://"..AnimationId
- local k8 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim8)
- Emote8.MouseButton1Down:connect(function()
- if Emote8.Text == "LivetateOn" then
- Emote8.Text = "LivetateOff"
- k8:Play()
- else
- if Emote8.Text == "LivetateOff" then
- Emote8.Text = "LivetateOn"
- k8:Stop()
- end
- end
- end)
- Emote9.Name = "Emote9"
- Emote9.Parent = Frame
- Emote9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Emote9.Position = UDim2.new(0.693121672, 0, 0.648000002, 0)
- Emote9.Size = UDim2.new(0, 89, 0, 34)
- Emote9.Font = Enum.Font.GothamBold
- Emote9.Text = "Head ThrowOn"
- Emote9.TextColor3 = Color3.fromRGB(0, 0, 0)
- Emote9.TextScaled = true
- Emote9.TextSize = 14.000
- Emote9.TextWrapped = true
- AnimationId = "35154961"
- local Anim9 = Instance.new("Animation")
- Anim9.AnimationId = "rbxassetid://"..AnimationId
- local k9 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim9)
- Emote9.MouseButton1Down:connect(function()
- if Emote9.Text == "Head ThrowOn" then
- Emote9.Text = "Head ThrowOff"
- k9:Play()
- else
- if Emote9.Text == "Head ThrowOff" then
- Emote9.Text = "Head ThrowOn"
- k9:Stop()
- end
- end
- end)
- ScreenGui.Parent = game.CoreGui
- Open.Name = "Open"
- Open.Parent = ScreenGui
- Open.Draggable = false
- Open.Size = UDim2.new(0.05,0,0.114,0)
- Open.Position = UDim2.new(0.95, 0, 0.4, 0)
- Open.Text = "Open"
- Open.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Open.TextColor3 = Color3.fromRGB(255, 255, 255)
- Open.TextScaled = true
- Open.TextSize = 20
- Open.Visible = true
- Open.BackgroundTransparency = .5
- Open.MouseButton1Up:Connect(function()
- if Open.Text == "Open" then
- Open.Text = "Close"
- Frame.Visible = true
- Frame:TweenPosition(UDim2.new(0.3, 0, 0.2, 0), 'Out', 7.9, true)
- else
- if Open.Text == "Close" then
- Open.Text = "Open"
- Frame.Visible = false
- end
- end
- end)
- local InvWall1 = Instance.new("Part")
- InvWall1.Parent = workspace
- InvWall1.Anchored = true
- InvWall1.Size = Vector3.new(501, 58, 2)
- InvWall1.CanCollide = false
- InvWall1.Position = Vector3.new(117.61, 1695, -27.15)
- InvWall1.Transparency = 1
- Touched = false
- InvWall1.Touched:connect(function(player)
- if Touched == false then
- Touched = true
- if player.Parent.ClassName == "Model" then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
- if player.Parent.Name ~= game.Players.LocalPlayer.Name then
- player.Parent.Humanoid.HipHeight = 0/0
- wait(3)
- player.Parent:Destroy()
- end
- end
- Touched = false
- end
- end)
- local InvWall2 = Instance.new("Part")
- InvWall2.Parent = workspace
- InvWall2.Anchored = true
- InvWall2.Size = Vector3.new(501, 58, 2)
- InvWall2.CanCollide = false
- InvWall2.Position = Vector3.new(117.61, 1695, 471.85)
- InvWall2.Transparency = 1
- Touched = false
- InvWall2.Touched:connect(function(player)
- if Touched == false then
- Touched = true
- if player.Parent.ClassName == "Model" then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
- if player.Parent.Name ~= game.Players.LocalPlayer.Name then
- player.Parent.Humanoid.HipHeight = 0/0
- wait(3)
- player.Parent:Destroy()
- end
- end
- Touched = false
- end
- end)
- local InvWall3 = Instance.new("Part")
- InvWall3.Parent = workspace
- InvWall3.Anchored = true
- InvWall3.Size = Vector3.new(1, 58, 498)
- InvWall3.CanCollide = false
- InvWall3.Position = Vector3.new(-131.76, 1695.5, 221.85)
- InvWall3.Transparency = 1
- Touched = false
- InvWall3.Touched:connect(function(player)
- if Touched == false then
- Touched = true
- if player.Parent.ClassName == "Model" then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
- if player.Parent.Name ~= game.Players.LocalPlayer.Name then
- player.Parent.Humanoid.HipHeight = 0/0
- wait(3)
- player.Parent:Destroy()
- end
- end
- Touched = false
- end
- end)
- local InvWall4 = Instance.new("Part")
- InvWall4.Parent = workspace
- InvWall4.Anchored = true
- InvWall4.Size = Vector3.new(1, 58, 498)
- InvWall4.CanCollide = false
- InvWall4.Position = Vector3.new(367.24, 1695.5, 221.85)
- InvWall4.Transparency = 1
- Touched = false
- InvWall4.Touched:connect(function(player)
- if Touched == false then
- Touched = true
- if player.Parent.ClassName == "Model" then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(172.702, 1666.5, 218.938)
- if player.Parent.Name ~= game.Players.LocalPlayer.Name then
- player.Parent.Humanoid.HipHeight = 0/0
- wait(3)
- player.Parent:Destroy()
- end
- end
- Touched = false
- end
- end)
- local Tropic = Instance.new("Sky")
- Tropic.Name = "Tropic"
- Tropic.SkyboxUp = "http://www.roblox.com/asset/?id=169210149"
- Tropic.SkyboxLf = "http://www.roblox.com/asset/?id=169210133"
- Tropic.SkyboxBk = "http://www.roblox.com/asset/?id=169210090"
- Tropic.SkyboxFt = "http://www.roblox.com/asset/?id=169210121"
- Tropic.StarCount = 100
- Tropic.SkyboxDn = "http://www.roblox.com/asset/?id=169210108"
- Tropic.SkyboxRt = "http://www.roblox.com/asset/?id=169210143"
- Tropic.Parent = game.Lighting
- local a = game.Lighting
- a.Ambient = Color3.fromRGB(33, 33, 33)
- a.Brightness = 5.69
- a.ColorShift_Bottom = Color3.fromRGB(0, 0, 0)
- a.ColorShift_Top = Color3.fromRGB(255, 247, 237)
- a.EnvironmentDiffuseScale = 0.105
- a.EnvironmentSpecularScale = 0.522
- a.GlobalShadows = true
- a.OutdoorAmbient = Color3.fromRGB(51, 54, 67)
- a.ShadowSoftness = 0.18
- a.GeographicLatitude = -15.525
- a.ExposureCompensation = 0.75
- local c = Instance.new("ColorCorrectionEffect", a)
- c.Brightness = 0.015
- c.Contrast = 0.25
- c.Enabled = true
- c.Saturation = 0.2
- c.TintColor = Color3.fromRGB(217, 145, 57)
- if getgenv().mode == "Summer" then
- c.TintColor = Color3.fromRGB(255, 220, 148)
- elseif getgenv().mode == "Autumn" then
- c.TintColor = Color3.fromRGB(217, 145, 57)
- else
- warn("No mode selected!")
- print("Please select a mode")
- c:Destroy()
- end
- local d = Instance.new("DepthOfFieldEffect", a)
- d.Enabled = true
- d.FarIntensity = 0.077
- d.FocusDistance = 21.54
- d.InFocusRadius = 20.77
- d.NearIntensity = 0.277
- local e = Instance.new("ColorCorrectionEffect", a)
- e.Brightness = 0
- e.Contrast = -0.07
- e.Saturation = 0
- e.Enabled = true
- e.TintColor = Color3.fromRGB(255, 247, 239)
- local e2 = Instance.new("ColorCorrectionEffect", a)
- e2.Brightness = 0.2
- e2.Contrast = 0.45
- e2.Saturation = -0.1
- e2.Enabled = true
- e2.TintColor = Color3.fromRGB(255, 255, 255)
- local s = Instance.new("SunRaysEffect", a)
- s.Enabled = true
- s.Intensity = 0.01
- s.Spread = 0.146
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.CoreGui
- local radio = Instance.new("Part")
- radio.Parent = workspace
- radio.Name = "Radio"
- radio.CanCollide = false
- radio.Anchored = true
- radio.FormFactor = "Custom"
- radio.Size = Vector3.new(3.2, 1.43, 0.8)
- radio.CFrame = CFrame.new(216.2, 1667.5, 179.14)
- radio.Rotation = Vector3.new(0, -45, 0)
- local mesh = Instance.new("SpecialMesh",radio)
- mesh.MeshId = "http://www.roblox.com/asset/?id=151760030"
- mesh.TextureId = "http://www.roblox.com/asset/?id=201953316"
- local sound = Instance.new("Sound",radio)
- sound.Name = "Music"
- sound.Looped = true
- sound.Volume = 1
- local gui = Instance.new("ScreenGui", ScreenGui)
- local frame = Instance.new("Frame",gui)
- frame.BackgroundColor3 = Color3.new(58/255,58/255,58/255)
- frame.BorderColor3 = Color3.new(0,0,0)
- frame.BorderSizePixel = 2
- frame.Size = UDim2.new(0,300,0,200)
- frame.Position = UDim2.new(0,20,.5,-100)
- frame.Active = true
- frame.Draggable = true
- frame.Selectable = true
- frame.Visible = false
- local playb = Instance.new("TextButton",frame)
- playb.BackgroundColor3 = Color3.new(0,85/255,0)
- playb.BorderColor3 = Color3.new(0,0,0)
- playb.BorderSizePixel = 2
- playb.Size = UDim2.new(.3,0,.2,0)
- playb.Position = UDim2.new(.1,0,.7,0)
- playb.Text = "Play"
- playb.TextColor3 = Color3.new(255,255,255)
- playb.TextScaled = true
- local stopb = Instance.new("TextButton",frame)
- stopb.BackgroundColor3 = Color3.new(170/255,0,0)
- stopb.BorderColor3 = Color3.new(0,0,0)
- stopb.BorderSizePixel = 2
- stopb.Size = UDim2.new(.3,0,.2,0)
- stopb.Position = UDim2.new(.6,0,.7,0)
- stopb.Text = "Stop"
- stopb.TextColor3 = Color3.new(255,255,255)
- stopb.TextScaled = true
- local closeb = Instance.new("TextButton",frame)
- closeb.BackgroundColor3 = Color3.new(170/255,0,0)
- closeb.BorderColor3 = Color3.new(0,0,0)
- closeb.BorderSizePixel = 2
- closeb.Size = UDim2.new(.1,0,.1,0)
- closeb.Position = UDim2.new(0.9,0,0,0)
- closeb.Text = "X"
- closeb.TextColor3 = Color3.new(255,255,255)
- closeb.TextScaled = true
- local stipb = Instance.new("TextBox",frame)
- stipb.BackgroundColor3 = Color3.new(0,0,127/255)
- stipb.BorderColor3 = Color3.new(0,0,0)
- stipb.BorderSizePixel = 2
- stipb.Size = UDim2.new(.5,0,.25,0)
- stipb.Position = UDim2.new(.25,0,.3,0)
- stipb.Text = "1842203003"
- stipb.TextColor3 = Color3.new(255,255,255)
- stipb.TextScaled = true
- local Playing = false
- stipb.Changed:connect(function()
- sound.SoundId = "rbxassetid://" .. stipb.Text
- end)
- playb.MouseButton1Click:connect(function()
- sound:Play()
- Playing = true
- end)
- stopb.MouseButton1Click:connect(function()
- sound:Stop()
- Playing = false
- end)
- closeb.MouseButton1Click:connect(function()
- frame.Visible = false
- end)
- radio.Touched:connect(function(player)
- if Touched == false then
- Touched = true
- if player.Parent.ClassName == "Model" then
- frame.Visible = true
- if player.Parent.Name ~= game.Players.LocalPlayer.Name then
- player.Parent.Humanoid.HipHeight = 0/0
- wait(3)
- player.Parent:Destroy()
- end
- end
- Touched = false
- end
- end)
- local minutesAfterMidnight = 6 * 60
- while true do
- game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
- minutesAfterMidnight = minutesAfterMidnight + 1
- wait(0.2)
- end
- while true do
- if Playing then
- mesh.Scale = Vector3.new(1.1,1.1,1.1)
- wait(.2)
- mesh.Scale = Vector3.new(1,1,1)
- end
- wait(.2)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement