Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell infortality
- -- Revamp by ImFrostic, Version 2.81
- local function giveNonMain(player)
- local CookieRequest = Instance.new("ScreenGui")
- local aImageLabel = Instance.new("ImageLabel")
- local aTextLabel = Instance.new("TextLabel")
- local aImageLabel_2 = Instance.new("ImageLabel")
- local aImageLabel_3 = Instance.new("ImageLabel")
- local aImageLabel_4 = Instance.new("ImageLabel")
- local aImageLabel_5 = Instance.new("ImageLabel")
- local aBackground = Instance.new("ImageLabel")
- local aBackground_2 = Instance.new("ImageLabel")
- local aTextLabel_2 = Instance.new("TextLabel")
- local aYes = Instance.new("TextButton")
- local aNo = Instance.new("TextButton")
- -- Properties
- CookieRequest.Name = "CookieRequest"
- CookieRequest.Parent = player.PlayerGui
- CookieRequest.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- aImageLabel.Parent = CookieRequest
- aImageLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- aImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- aImageLabel.BorderColor3 = Color3.new(0.117647, 0.282353, 0.529412)
- aImageLabel.BorderSizePixel = 10
- aImageLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
- aImageLabel.Size = UDim2.new(0.5, 0, 0.5, 0)
- aImageLabel.Image = "http://www.roblox.com/asset/?id=5285419495"
- aImageLabel.ScaleType = Enum.ScaleType.Tile
- aImageLabel.TileSize = UDim2.new(0.400000006, 0, 1, 0)
- aTextLabel.Parent = aImageLabel
- aTextLabel.AnchorPoint = Vector2.new(0.5, 0)
- aTextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- aTextLabel.BackgroundTransparency = 1
- aTextLabel.Position = UDim2.new(0.5, 0, 0.0250000004, 0)
- aTextLabel.Size = UDim2.new(1, 0, 0.100000001, 0)
- aTextLabel.Font = Enum.Font.SourceSans
- aTextLabel.Text = "Cookie Clicker"
- aTextLabel.TextColor3 = Color3.new(1, 1, 1)
- aTextLabel.TextScaled = true
- aTextLabel.TextSize = 14
- aTextLabel.TextWrapped = true
- aImageLabel_2.Parent = aTextLabel
- aImageLabel_2.AnchorPoint = Vector2.new(1, 1)
- aImageLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- aImageLabel_2.BackgroundTransparency = 1
- aImageLabel_2.BorderSizePixel = 0
- aImageLabel_2.Position = UDim2.new(0.5, 0, 0.00999999978, 0)
- aImageLabel_2.Rotation = 180
- aImageLabel_2.Size = UDim2.new(0.5, 0, 0.0599999987, 0)
- aImageLabel_2.Image = "http://www.roblox.com/asset/?id=5285832934"
- aImageLabel_2.ImageTransparency = 0.5
- aImageLabel_3.Parent = aTextLabel
- aImageLabel_3.AnchorPoint = Vector2.new(1, 1)
- aImageLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
- aImageLabel_3.BackgroundTransparency = 1
- aImageLabel_3.BorderSizePixel = 0
- aImageLabel_3.Position = UDim2.new(1, 0, 0.00999999978, 0)
- aImageLabel_3.Size = UDim2.new(0.5, 0, 0.0599999987, 0)
- aImageLabel_3.Image = "http://www.roblox.com/asset/?id=5285832934"
- aImageLabel_3.ImageTransparency = 0.5
- aImageLabel_4.Parent = aTextLabel
- aImageLabel_4.AnchorPoint = Vector2.new(1, 0)
- aImageLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
- aImageLabel_4.BackgroundTransparency = 1
- aImageLabel_4.BorderSizePixel = 0
- aImageLabel_4.Position = UDim2.new(1, 0, 0.99000001, 0)
- aImageLabel_4.Size = UDim2.new(0.5, 0, 0.0599999987, 0)
- aImageLabel_4.Image = "http://www.roblox.com/asset/?id=5285832934"
- aImageLabel_4.ImageTransparency = 0.5
- aImageLabel_5.Parent = aTextLabel
- aImageLabel_5.AnchorPoint = Vector2.new(1, 0)
- aImageLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
- aImageLabel_5.BackgroundTransparency = 1
- aImageLabel_5.BorderSizePixel = 0
- aImageLabel_5.Position = UDim2.new(0.5, 0, 0.99000001, 0)
- aImageLabel_5.Rotation = 180
- aImageLabel_5.Size = UDim2.new(0.5, 0, 0.0599999987, 0)
- aImageLabel_5.Image = "http://www.roblox.com/asset/?id=5285832934"
- aImageLabel_5.ImageTransparency = 0.5
- aBackground.Name = "Background"
- aBackground.Parent = aImageLabel
- aBackground.AnchorPoint = Vector2.new(0, 1)
- aBackground.BackgroundColor3 = Color3.new(1, 1, 1)
- aBackground.BackgroundTransparency = 1
- aBackground.BorderSizePixel = 0
- aBackground.Position = UDim2.new(0, 0, 1, 0)
- aBackground.Size = UDim2.new(1, 0, 0.600000024, 0)
- aBackground.ZIndex = 0
- aBackground.Image = "http://www.roblox.com/asset/?id=5285431491"
- aBackground.ImageTransparency = 0.5
- aBackground_2.Name = "Background"
- aBackground_2.Parent = aImageLabel
- aBackground_2.BackgroundColor3 = Color3.new(1, 1, 1)
- aBackground_2.BackgroundTransparency = 1
- aBackground_2.BorderSizePixel = 0
- aBackground_2.Rotation = 180
- aBackground_2.Size = UDim2.new(1, 0, 0.400000006, 0)
- aBackground_2.ZIndex = 0
- aBackground_2.Image = "http://www.roblox.com/asset/?id=5285431491"
- aBackground_2.ImageTransparency = 0.5
- aTextLabel_2.Parent = aImageLabel
- aTextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- aTextLabel_2.BackgroundTransparency = 1
- aTextLabel_2.Name = "Question"
- aTextLabel_2.Position = UDim2.new(0, 0, 0.150000006, 0)
- aTextLabel_2.Size = UDim2.new(1, 0, 0.5, 0)
- aTextLabel_2.Font = Enum.Font.SourceSans
- aTextLabel_2.Text = "Memo1332 has invited you to play Cookie Clicker. Would you like to play?"
- aTextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- aTextLabel_2.TextScaled = true
- aTextLabel_2.TextSize = 14
- aTextLabel_2.TextWrapped = true
- aYes.Name = "Yes"
- aYes.Parent = aImageLabel
- aYes.AnchorPoint = Vector2.new(1, 0.5)
- aYes.BackgroundColor3 = Color3.new(0, 0.701961, 0.0196078)
- aYes.BorderSizePixel = 0
- aYes.Position = UDim2.new(0.449999988, 0, 0.850000024, 0)
- aYes.Size = UDim2.new(0.300000012, 0, 0.150000006, 0)
- aYes.Font = Enum.Font.SourceSans
- aYes.Text = "Yes"
- aYes.TextColor3 = Color3.new(1, 1, 1)
- aYes.TextScaled = true
- aYes.TextSize = 14
- aYes.TextWrapped = true
- aNo.Name = "No"
- aNo.Parent = aImageLabel
- aNo.AnchorPoint = Vector2.new(0, 0.5)
- aNo.BackgroundColor3 = Color3.new(0.701961, 0, 0.00784314)
- aNo.BorderSizePixel = 0
- aNo.Position = UDim2.new(0.550000012, 0, 0.850000024, 0)
- aNo.Size = UDim2.new(0.300000012, 0, 0.150000006, 0)
- aNo.Font = Enum.Font.SourceSans
- aNo.Text = "No"
- aNo.TextColor3 = Color3.new(1, 1, 1)
- aNo.TextScaled = true
- aNo.TextSize = 14
- aNo.TextWrapped = true
- local bonk = nil
- aYes.MouseButon1Click:Connect(function()
- bonk = true
- end)
- aNo.MouseButon1Click:Connect(function()
- bonk = false
- end)
- repeat wait() until bonk ~= nil
- CookieRequest:Destroy()
- if bonk then
- local g = Instance.new("ScreenGui",player.PlayerGui)
- g.ResetOnSpawn = false
- NLS(game:GetService("HttpService"):GetAsync("https://pastebin.com/raw/Qq3i7nMp"),g)
- end
- end
- --script time
- local player = owner
- wait(.1)
- local function findPlayer(plrname)
- for i,v in pairs(game.Players:GetPlayers()) do
- if string.lower(string.sub(v.Name,1,#plrname)) == string.lower(plrname) then
- return v
- end
- end
- return nil
- end
- owner.Chatted:Connect(function(msg)
- local split = string.split(string.lower(msg),"/")
- if split[1] == "cookie" then
- local pl = findPlayer(split[2])
- if pl ~= nil then
- giveNonMain(pl)
- end
- end
- end)
- function timetoString(seconds)
- local minutes = 0
- local hours = 0
- local days = 0
- local years = 0
- while seconds >= 60 do
- minutes = minutes + 1
- seconds = seconds - 60
- end
- while minutes >= 60 do
- hours = hours + 1
- minutes = minutes - 60
- end
- while hours >= 24 do
- days = days + 1
- hours = hours - 24
- end
- while days >= 365 do
- years = years + 1
- days = days - 365
- end
- local str = ""
- if years > 0 then
- str = str..years.." years, "
- end
- if days > 0 then
- str = str..days.." days, "
- end
- if hours > 0 then
- if hours == 1 then
- str = str..hours.." hour, "
- else
- str = str..hours.." hours, "
- end
- end
- if minutes > 0 then
- if minutes == 1 then
- str = str..minutes.." minute, "
- else
- str = str..minutes.." minutes, "
- end
- end
- if seconds > 0 then
- str = str..seconds.." seconds, "
- end
- str = string.sub(str,1,#str-2).." ago"
- return str
- end
- function findplayer(playername)
- for i,v in pairs(game.Players:GetChildren()) do
- local nam = v.Name
- if string.sub(nam,1,#playername):lower() == playername:lower() then
- return v
- end
- end
- return nil
- end
- for i,v in pairs(game.Players:GetChildren()) do
- if v:FindFirstChild("CookieEvent") ~= nil then
- v:FindFirstChild("CookieEvent"):Destroy()
- end
- end
- local function getItem(int,str)
- for i,v in pairs(int:GetChildren()) do
- if v.Name == str then
- return v
- end
- end
- return nil
- end
- local remote = player:FindFirstChild("CookieEvent")
- if remote == nil then
- remote = Instance.new("RemoteFunction",player)
- end
- remote.Name = "CookieEvent"
- function yeet(plr,str)
- if str == "begin" then
- local cook = Instance.new("ScreenGui")
- cook.Name = "Cookie"
- cook.Parent = plr.PlayerGui
- local val = Instance.new("StringValue",cook)
- val.Name = "CookieStats"
- val.Value = "0/0"
- local val2 = Instance.new("StringValue",cook)
- val2.Name = "OwnerName"
- val2.Value = tostring(player)
- return
- elseif str == "update" then
- local tab = {}
- for i,v in pairs(game.Players:GetChildren()) do
- if v.PlayerGui:FindFirstChild("Cookie") ~= nil and v.Name ~= plr.Name then
- local b = v.PlayerGui:FindFirstChild("Cookie"):FindFirstChild("CookieStats")
- table.insert(tab,v.Name.."-"..b.Value)
- end
- end
- return tab
- elseif str == "close" then
- plr.PlayerGui:FindFirstChild("Cookie"):Destroy()
- return
- else
- plr.PlayerGui:FindFirstChild("Cookie").CookieStats.Value = str
- return
- end
- end
- remote.OnServerInvoke = yeet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement