Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- params : ...
- Player = game.Players.LocalPlayer
- while game:IsLoaded() == false and game:IsLoaded() == false do
- wait()
- end
- wait(1)
- Player:WaitForChild("TextureGui")
- wait(0.5)
- for u,c in pairs(Player.PlayerGui:GetChildren()) do
- if c.ClassName == "Sound" then
- c:remove()
- end
- end
- local a = math.random(1, 6)
- local Sound = game.Lighting.Music.Adventurous:FindFirstChild("Adventurous" .. a):Clone()
- Sound.Parent = Player.PlayerGui
- Sound:Play()
- Player.Character.UpperTorso.CFrame = CFrame.new(math.random(-10, 10), 800, math.random(-10, 10))
- Player.Character.UpperTorso.Anchored = true
- game.Workspace.CurrentCamera.CameraType = "Scriptable"
- local JailTime = game.Workspace.RemoteEvents:FindFirstChild("DataBaseCheck"):InvokeServer("JailTime", "Data")
- if JailTime <= 0 then
- game.Workspace.CurrentCamera.CoordinateFrame = game.Workspace:FindFirstChild("Cam" .. Player.TextureGui.TextureId.SpawnPoint.Value).CFrame
- else
- game.Workspace.CurrentCamera.CoordinateFrame = game.Workspace:FindFirstChild("CamJail").CFrame
- end
- for i = 1, 30 do
- wait(0.1)
- script.Parent.FullDark.BackgroundColor3 = Color3.fromRGB(75 + i * 7, 75 + i * 7, 75 + i * 7)
- script.Parent.FullDark.BackgroundTransparency = 0 + i / 35
- end
- wait()
- script.Parent.Play.Visible = true
- script.Parent.Play:TweenPosition(UDim2.new(0.005, 0, 0.5, 0))
- script.Parent.Rule:TweenPosition(UDim2.new(0, 0, 0, 0))
- -- params : ...
- Player = game.Players.LocalPlayer
- while game:IsLoaded() == false and game:IsLoaded() == false do
- wait()
- end
- wait(1)
- Player:WaitForChild("TextureGui")
- wait(0.5)
- for u,c in pairs(Player.PlayerGui:GetChildren()) do
- if c.ClassName == "Sound" then
- c:remove()
- end
- end
- local a = math.random(1, 6)
- local Sound = game.Lighting.Music.Adventurous:FindFirstChild("Adventurous" .. a):Clone()
- Sound.Parent = Player.PlayerGui
- Sound:Play()
- Player.Character.UpperTorso.CFrame = CFrame.new(math.random(-10, 10), 800, math.random(-10, 10))
- Player.Character.UpperTorso.Anchored = true
- game.Workspace.CurrentCamera.CameraType = "Scriptable"
- local JailTime = game.Workspace.RemoteEvents:FindFirstChild("DataBaseCheck"):InvokeServer("JailTime", "Data")
- if JailTime <= 0 then
- game.Workspace.CurrentCamera.CoordinateFrame = game.Workspace:FindFirstChild("Cam" .. Player.TextureGui.TextureId.SpawnPoint.Value).CFrame
- else
- game.Workspace.CurrentCamera.CoordinateFrame = game.Workspace:FindFirstChild("CamJail").CFrame
- end
- for i = 1, 30 do
- wait(0.1)
- script.Parent.FullDark.BackgroundColor3 = Color3.fromRGB(75 + i * 7, 75 + i * 7, 75 + i * 7)
- script.Parent.FullDark.BackgroundTransparency = 0 + i / 35
- end
- wait()
- script.Parent.Play.Visible = true
- script.Parent.Play:TweenPosition(UDim2.new(0.005, 0, 0.5, 0))
- script.Parent.Rule:TweenPosition(UDim2.new(0, 0, 0, 0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement