Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local SoundService = game:GetService("SoundService")
- local player = Players.LocalPlayer
- local playerGui = player:FindFirstChild("PlayerGui")
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = playerGui
- local imageLabel = Instance.new("ImageLabel")
- imageLabel.Size = UDim2.new(0, 249, 0, 182)
- imageLabel.Position = UDim2.new(0.421, 0, 0.409, 0)
- imageLabel.Image = "rbxassetid://13464805869"
- imageLabel.BackgroundTransparency = 1
- imageLabel.Parent = screenGui
- screenGui.ResetOnSpawn = false
- local uiCorner = Instance.new("UICorner")
- uiCorner.CornerRadius = UDim.new(0, 8)
- uiCorner.Parent = imageLabel
- local uiStroke = Instance.new("UIStroke")
- uiStroke.Thickness = 3
- uiStroke.Parent = imageLabel
- local dragging, dragInput, startPos, startInputPos
- imageLabel.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- startInputPos = input.Position
- startPos = imageLabel.Position
- end
- end)
- imageLabel.InputChanged:Connect(function(input)
- if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
- local delta = input.Position - startInputPos
- imageLabel.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
- imageLabel.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- end
- end)
- local startButton = Instance.new("TextButton")
- startButton.Size = UDim2.new(0, 200, 0, 50)
- startButton.Position = UDim2.new(0.096, 0, 0.192, 0)
- startButton.BackgroundColor3 = Color3.fromRGB(255, 46, 46)
- startButton.BackgroundTransparency = 0.6
- startButton.Font = Enum.Font.SourceSans
- startButton.Text = "China Take Over"
- startButton.TextSize = 33
- startButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- startButton.Parent = imageLabel
- local startButtonCorner = Instance.new("UICorner")
- startButtonCorner.CornerRadius = UDim.new(0, 8)
- startButtonCorner.Parent = startButton
- local startStroke = Instance.new("UIStroke")
- startStroke.Thickness = 3
- startStroke.Parent = startButton
- local stopButton = Instance.new("TextButton")
- stopButton.Size = UDim2.new(0, 200, 0, 50)
- stopButton.Position = UDim2.new(0.096, 0, 0.533, 0)
- stopButton.BackgroundColor3 = Color3.fromRGB(255, 46, 46)
- stopButton.BackgroundTransparency = 0.6
- stopButton.Font = Enum.Font.SourceSans
- stopButton.Text = "Stop The Raid"
- stopButton.TextSize = 34
- stopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- stopButton.Parent = imageLabel
- local stopButtonCorner = Instance.new("UICorner")
- stopButtonCorner.CornerRadius = UDim.new(0, 8)
- stopButtonCorner.Parent = stopButton
- local stopStroke = Instance.new("UIStroke")
- stopStroke.Thickness = 3
- stopStroke.Parent = stopButton
- local active = false
- local hint
- local sounds = {}
- local sky
- local function startScript()
- if active then return end
- active = true
- hint = Instance.new("Hint")
- hint.Text = "+15 Social Credit 🤑 👍 🇨🇳"
- hint.Parent = workspace
- local function createSound(id, playbackSpeed)
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://" .. id
- sound.Volume = 10
- sound.PlaybackSpeed = playbackSpeed
- sound.Parent = workspace
- local amplifier = Instance.new("EqualizerSoundEffect")
- amplifier.LowGain = 10
- amplifier.MidGain = 10
- amplifier.HighGain = 10
- amplifier.Parent = sound
- local distortion = Instance.new("DistortionSoundEffect")
- distortion.Level = 0.70
- distortion.Parent = sound
- return sound
- end
- sounds = {
- createSound("121922837560201", 0.22),
- createSound("92768743774643", 0.22),
- createSound("86392970553147", 0.22),
- createSound("79358845180376", 0.22),
- createSound("117761803762524", 0.22),
- createSound("85241665954310", 0.22),
- createSound("72685949472796", 0.22),
- createSound("120860195672102", 0.22),
- createSound("98860035221960", 0.22),
- createSound("97597531796256", 0.22),
- createSound("127376619844819", 0.22),
- createSound("121016900081811", 0.22),
- createSound("107496077729153", 0.22)
- }
- local function playWithDelay(index)
- if not active then return end
- if index > 1 then
- task.delay(1, function()
- sounds[index - 1]:Stop()
- end)
- end
- sounds[index]:Play()
- sounds[index].Ended:Connect(function()
- playWithDelay(index < #sounds and index + 1 or 1)
- end)
- end
- playWithDelay(1)
- sky = Instance.new("Sky")
- sky.SkyboxBk = "http://www.roblox.com/asset/?id=13464805869"
- sky.SkyboxDn = "http://www.roblox.com/asset/?id=13464805869"
- sky.SkyboxFt = "http://www.roblox.com/asset/?id=13464805869"
- sky.SkyboxLf = "http://www.roblox.com/asset/?id=13464805869"
- sky.SkyboxRt = "http://www.roblox.com/asset/?id=13464805869"
- sky.SkyboxUp = "http://www.roblox.com/asset/?id=13464805869"
- sky.Parent = game.Lighting
- end
- local function stopScript()
- active = false
- if hint then hint:Destroy() end
- for _, sound in pairs(sounds) do
- sound:Stop()
- sound:Destroy()
- end
- if sky then sky:Destroy() end
- end
- local decalActive = false
- local decalLoop
- local decalActive = false
- local decalLoop
- local function applyDecal()
- if decalActive then return end
- decalActive = true
- decalLoop = task.spawn(function()
- while decalActive do
- for _, player in pairs(Players:GetPlayers()) do
- local character = player.Character
- if not character then
- character = player.CharacterAdded:Wait()
- end
- local head = character:FindFirstChild("Head")
- if head then
- local face = head:FindFirstChild("face")
- if face then
- face:Destroy()
- end
- local newFace = Instance.new("Decal")
- newFace.Name = "face"
- newFace.Texture = "rbxassetid://13690574451"
- newFace.Parent = head
- end
- end
- wait(2)
- end
- end)
- end
- local function setStopRaidFace()
- for _, player in pairs(Players:GetPlayers()) do
- local character = player.Character
- if not character then
- character = player.CharacterAdded:Wait()
- end
- local head = character:FindFirstChild("Head")
- if head then
- local face = head:FindFirstChild("face")
- if face then
- face:Destroy()
- end
- local newFace = Instance.new("Decal")
- newFace.Name = "face"
- newFace.Texture = "rbxassetid://17276440677"
- newFace.Parent = head
- end
- end
- end
- local function removeDecal()
- for _, player in pairs(Players:GetPlayers()) do
- local character = player.Character
- if not character then
- character = player.CharacterAdded:Wait()
- end
- local head = character:FindFirstChild("Head")
- if head then
- local face = head:FindFirstChild("face")
- if face then
- face:Destroy()
- end
- end
- end
- end
- startButton.MouseButton1Click:Connect(function()
- startScript()
- applyDecal()
- end)
- stopButton.MouseButton1Click:Connect(function()
- stopScript()
- setStopRaidFace()
- decalActive = false
- end)
Advertisement
Advertisement