Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- BloxBurg Gui Created by LuckyMMB @ V3rmillion.net --
- -- Discord https://discord.gg/GKzJnUC --
- pizzaactive = false
- icecreamactive = false
- AntiAFKMode = "Nothing"
- local Players = game.Players
- local Player = Players['LocalPlayer']
- local Character = Player.Character or Player.CharacterAdded:wait()
- local HRP = Character['HumanoidRootPart']
- local Stat = workspace.Stats[Player.Name]
- -- Objects
- local BloxGUI = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Close = Instance.new("TextButton")
- local AntiAFK = Instance.new("TextButton")
- local Kick = Instance.new("TextButton")
- local Pizza = Instance.new("TextButton")
- local PizzaFrame = Instance.new("Frame")
- local PizzaHeader = Instance.new("TextLabel")
- local StartPizza = Instance.new("TextButton")
- local IceCream = Instance.new("TextButton")
- local IceCreamFrame = Instance.new("Frame")
- local IceCreamHeader = Instance.new("TextLabel")
- local StartIceCream = Instance.new("TextButton")
- local LightsOn = Instance.new("TextButton")
- local InfoScreen = Instance.new("TextButton")
- local InfoFrame = Instance.new("Frame")
- local InfoText1 = Instance.new("TextLabel")
- -- Properties
- BloxGUI.Name = "BloxGUI"
- BloxGUI.Parent = game.CoreGui
- local BloxCORE = game.CoreGui["BloxGUI"]
- local MainFrame = Instance.new("Frame")
- local AntiAFK = Instance.new("TextButton")
- local Icecream = Instance.new("TextButton")
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = BloxGUI
- MainFrame.Active = true
- MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- MainFrame.BackgroundTransparency = 1
- MainFrame.Position = UDim2.new(0.5, -372, 0, -27)
- MainFrame.Size = UDim2.new(0, 720, 0, 20)
- MainFrame.Selectable = true
- Close.Name = "Close"
- Close.Parent = MainFrame
- Close.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- Close.BorderColor3 = Color3.new(0, 1, 0)
- Close.Position = UDim2.new(0, 0, 0, 0)
- Close.Size = UDim2.new(0, 20, 0, 20)
- Close.Font = Enum.Font.Fantasy
- Close.FontSize = Enum.FontSize.Size18
- Close.Text = "X"
- Close.TextColor3 = Color3.new(1, 0, 0)
- Close.TextSize = 17
- Close.TextScaled = true
- Close.TextWrapped = true
- IceCream.Name = "IceCream"
- IceCream.Parent = MainFrame
- IceCream.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- IceCream.TextColor3 = Color3.new(1, 1, 1)
- IceCream.BorderColor3 = Color3.new(0, 1, 0)
- IceCream.Position = UDim2.new(0, 25, 0, 0)
- IceCream.Size = UDim2.new(0, 125, 0, 20)
- IceCream.Font = Enum.Font.Fantasy
- IceCream.FontSize = Enum.FontSize.Size18
- IceCream.Text = "IceCream Money"
- IceCream.TextSize = 17
- IceCreamFrame.Name = "IceCreamFrame"
- IceCreamFrame.Parent = MainFrame
- IceCreamFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- IceCreamFrame.BackgroundTransparency = 0.5
- IceCreamFrame.BorderColor3 = Color3.new(0, 0, 0)
- IceCreamFrame.Position = UDim2.new(0, -35, 0, 30)
- IceCreamFrame.Size = UDim2.new(0, 290, 0, 175)
- IceCreamFrame.Visible = false
- IceCreamHeader.Name = "IceCreamHeader"
- IceCreamHeader.Parent = IceCreamFrame
- IceCreamHeader.BackgroundColor3 = Color3.new(1, 1, 1)
- IceCreamHeader.BackgroundTransparency = 0.15
- IceCreamHeader.BorderColor3 = Color3.new(1, 1, 1)
- IceCreamHeader.Position = UDim2.new(0, 5, 0, 5)
- IceCreamHeader.Size = UDim2.new(0, 280, 0, 130)
- IceCreamHeader.Font = Enum.Font.SourceSans
- IceCreamHeader.FontSize = Enum.FontSize.Size18
- IceCreamHeader.Text = "1. Go to work as Ben's IceCream Seller\n2. Click Start Money Farming\n3. Stand near the cups and wait for the current customer to leave and the next one to place an order\n4. The cups should then equip automatically\n5. Keep from timing out after 20 minutes idle\n6. Enjoy the Money"
- IceCreamHeader.TextColor3 = Color3.new(0, 0, 0)
- IceCreamHeader.TextSize = 16
- IceCreamHeader.TextWrapped = true
- IceCreamHeader.TextYAlignment = Enum.TextYAlignment.Top
- StartIceCream.Name = "StartIceCream"
- StartIceCream.Parent = IceCreamFrame
- StartIceCream.BackgroundColor3 = Color3.new(0.18, 0.18, 0.18)
- StartIceCream.BorderColor3 = Color3.new(0.5, 0.5, 0.5)
- StartIceCream.Position = UDim2.new(0, 50, 0, 140)
- StartIceCream.Size = UDim2.new(0, 180, 0, 30)
- StartIceCream.Font = Enum.Font.Fantasy
- StartIceCream.FontSize = Enum.FontSize.Size18
- StartIceCream.Text = "Start Money Farming"
- StartIceCream.TextColor3 = Color3.new(1, 1, 1)
- StartIceCream.TextWrapped = true
- StartIceCream.TextSize = 17
- Pizza.Name = "Pizza"
- Pizza.Parent = MainFrame
- Pizza.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- Pizza.TextColor3 = Color3.new(1, 1, 1)
- Pizza.BorderColor3 = Color3.new(0, 1, 0)
- Pizza.Position = UDim2.new(0, 155, 0, 0)
- Pizza.Size = UDim2.new(0, 95, 0, 20)
- Pizza.Font = Enum.Font.Fantasy
- Pizza.FontSize = Enum.FontSize.Size18
- Pizza.Text = "Pizza Money"
- Pizza.TextSize = 17
- PizzaFrame.Name = "PizzaFrame"
- PizzaFrame.Parent = MainFrame
- PizzaFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- PizzaFrame.BackgroundTransparency = 0.5
- PizzaFrame.BorderColor3 = Color3.new(0, 0, 0)
- PizzaFrame.Position = UDim2.new(0, 70, 0, 30)
- PizzaFrame.Size = UDim2.new(0, 290, 0, 95)
- PizzaFrame.Visible = false
- PizzaHeader.Name = "PizzaHeader"
- PizzaHeader.Parent = PizzaFrame
- PizzaHeader.BackgroundColor3 = Color3.new(1, 1, 1)
- PizzaHeader.BackgroundTransparency = 0.15
- PizzaHeader.BorderColor3 = Color3.new(1, 1, 1)
- PizzaHeader.Position = UDim2.new(0, 5, 0, 5)
- PizzaHeader.Size = UDim2.new(0, 280, 0, 50)
- PizzaHeader.Font = Enum.Font.SourceSans
- PizzaHeader.FontSize = Enum.FontSize.Size18
- PizzaHeader.Text = "1. Go to work as Pizza Planet Baker\n2. Click Start Money Farming\n3. Enjoy the Money"
- PizzaHeader.TextColor3 = Color3.new(0, 0, 0)
- PizzaHeader.TextSize = 16
- PizzaHeader.TextWrapped = true
- PizzaHeader.TextYAlignment = Enum.TextYAlignment.Top
- StartPizza.Name = "StartPizza"
- StartPizza.Parent = PizzaFrame
- StartPizza.BackgroundColor3 = Color3.new(0.18, 0.18, 0.18)
- StartPizza.BorderColor3 = Color3.new(0.5, 0.5, 0.5)
- StartPizza.Position = UDim2.new(0, 50, 0, 60)
- StartPizza.Size = UDim2.new(0, 180, 0, 30)
- StartPizza.Font = Enum.Font.Fantasy
- StartPizza.FontSize = Enum.FontSize.Size18
- StartPizza.Text = "Start Money Farming"
- StartPizza.TextColor3 = Color3.new(1, 1, 1)
- StartPizza.TextWrapped = true
- StartPizza.TextSize = 17
- Kick.Name = "Kick"
- Kick.Parent = MainFrame
- Kick.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- Kick.TextColor3 = Color3.new(1, 1, 1)
- Kick.BorderColor3 = Color3.new(0, 1, 0)
- Kick.Position = UDim2.new(0, 255, 0, 0)
- Kick.Size = UDim2.new(0, 40, 0, 20)
- Kick.Font = Enum.Font.Fantasy
- Kick.FontSize = Enum.FontSize.Size18
- Kick.Text = "Kick"
- Kick.TextSize = 17
- LightsOn.Name = "LightsOn"
- LightsOn.Parent = MainFrame
- LightsOn.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- LightsOn.TextColor3 = Color3.new(1, 1, 1)
- LightsOn.BorderColor3 = Color3.new(0, 1, 0)
- LightsOn.Position = UDim2.new(0, 450, 0, 0)
- LightsOn.Size = UDim2.new(0, 75, 0, 20)
- LightsOn.Font = Enum.Font.Fantasy
- LightsOn.FontSize = Enum.FontSize.Size18
- LightsOn.Text = "Lights On"
- LightsOn.TextSize = 17
- AntiAFK.Name = "AntiAFK"
- AntiAFK.Parent = MainFrame
- AntiAFK.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- AntiAFK.BorderColor3 = Color3.new(0, 1, 0)
- AntiAFK.Position = UDim2.new(0, 530, 0, 0)
- AntiAFK.Size = UDim2.new(0, 140, 0, 20)
- AntiAFK.BackgroundTransparency = 0
- AntiAFK.Font = Enum.Font.Fantasy
- AntiAFK.FontSize = Enum.FontSize.Size18
- AntiAFK.Text = "Start AFK Message"
- AntiAFK.TextColor3 = Color3.new(1, 1, 1)
- AntiAFK.TextSize = 17
- InfoScreen.Name = "InfoScreen"
- InfoScreen.Parent = MainFrame
- InfoScreen.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- InfoScreen.BorderColor3 = Color3.new(0, 1, 0)
- InfoScreen.Position = UDim2.new(0, 675, 0, 0)
- InfoScreen.Size = UDim2.new(0, 40, 0, 20)
- InfoScreen.BackgroundTransparency = 0
- InfoScreen.Font = Enum.Font.Fantasy
- InfoScreen.FontSize = Enum.FontSize.Size18
- InfoScreen.TextColor3 = Color3.new(1, 1, 1)
- InfoScreen.Text = "Info"
- InfoScreen.TextSize = 17
- InfoScreen.TextWrapped = true
- InfoFrame.Name = "InfoFrame"
- InfoFrame.Parent = MainFrame
- InfoFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- InfoFrame.BorderColor3 = Color3.new(0, 0, 0)
- InfoFrame.BackgroundTransparency = 0.5
- InfoFrame.Position = UDim2.new(0, 578, 0, 30)
- InfoFrame.Size = UDim2.new(0, 200, 0, 130)
- InfoFrame.Visible = false
- InfoText1.Name = "InfoText1"
- InfoText1.Parent = InfoFrame
- InfoText1.BackgroundColor3 = Color3.new(0, 0, 0)
- InfoText1.BorderColor3 = Color3.new(0, 0, 0)
- InfoText1.BackgroundTransparency = 1
- InfoText1.Position = UDim2.new(0, 5, 0, 5)
- InfoText1.Size = UDim2.new(0, 190, 0, 120)
- InfoText1.TextColor3 = Color3.new(1, 1, 1)
- InfoText1.Font = Enum.Font.Fantasy
- InfoText1.FontSize = Enum.FontSize.Size18
- InfoText1.Text = "This Gui was created by LuckyMMB@V3rmillion.net\nDiscord https://discord.gg/GKzJnUC. I did not make the scripts for Bens Icecream, kick from house and turn lights on and take no credit for them."
- InfoText1.TextSize = 14
- InfoText1.TextWrapped = true
- InfoText1.TextYAlignment = Enum.TextYAlignment.Top
- --- Menus ---
- local Menus = {
- [IceCream] = IceCreamFrame;
- [Pizza] = PizzaFrame;
- [InfoScreen] = InfoFrame;
- }
- for button,frame in pairs(Menus) do
- button.MouseButton1Click:connect(function()
- if frame.Visible then
- frame.Visible = false
- return
- end
- for k,v in pairs(Menus) do
- v.Visible = v == frame
- end
- end)
- end
- --- Close ---
- Close.MouseButton1Down:connect(function()
- BloxGUI:Destroy()
- end)
- --- Notify Function ---
- function notify(msg)
- game.StarterGui:SetCore('SendNotification', {
- Title = 'BloxBurg LuckyGUI';
- Text = msg;
- Duration = 5;
- })
- end
- --- Pizza Worker ---
- StartPizza.MouseButton1Click:Connect(function()
- --[[
- Beginning, runs a FE God script to maintain speed throughout usage. (by Dogi_x)
- --]]
- game.Players.LocalPlayer.Character.Humanoid.Name = 1
- local l = game.Players.LocalPlayer.Character["1"]:Clone()
- l.Parent = game.Players.LocalPlayer.Character
- l.Name = "Humanoid"
- wait(0.1)
- game.Players.LocalPlayer.Character["1"]:Destroy()
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
- game.Players.LocalPlayer.Character.Animate.Disabled = true
- wait(0.1)
- game.Players.LocalPlayer.Character.Animate.Disabled = false
- game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
- --[[
- Runs the normal script created by Morse
- --]]
- local DE = game.ReplicatedStorage.DataEvent
- local UE = Player.PlayerGui.MainGUI.Scripts.Inventory.UpdateEvent
- local PP = workspace.PizzaPlanet
- local Stations = PP['BakerWorkstations']
- local Crates = PP['IngredientCrates']
- local Working, Stocking = true
- Stat.Job:GetPropertyChangedSignal('Value'):Connect(function()
- if Stat.Job.Value == 'PizzaPlanetBaker' then Working = false
- else Working = true end
- end)
- if Stat.Job.Value == 'PizzaPlanetBaker' then Working = false end
- local Orders = {
- Cheese = {true,true,true,false};
- Vegetable = {true,true,true,'Vegetable'};
- Ham = {true,true,true,'Ham'};
- Pepperoni = {true,true,true,'Pepperoni'}
- }
- local CrateTP = Vector3.new(1163.78955, 13.5, 258.54892)
- local Positions = {
- Vector3.new(1173.34778, 13.5, 226.585571),
- Vector3.new(1172.8501, 13.5, 238.183029),
- Vector3.new(1173.20837, 13.5, 250.465881),
- Vector3.new(1173.47266, 13.5, 259.170837)
- }
- local Part1 = coroutine.wrap(function()
- while wait() do
- for __, station in next, (Stations:GetChildren()) do
- if Working then break end
- local CT = station:FindFirstChild('CounterTop')
- if CT then CT.Parent = nil end
- station.InUse.Value = Player
- local Pos = Positions[__]
- Character.Humanoid.WalkToPoint = Pos
- repeat wait() until (HRP.Position - Pos).magnitude < 2 or Working
- if Working then break end
- local NI = station['OrderDisplay']['DisplayMain']:FindFirstChild('NoIngredients',true)
- if NI and NI.Visible and not Working then
- Stocking = true
- local Pos = CrateTP
- Character.Humanoid.WalkToPoint = Pos
- repeat wait() until (HRP.Position - Pos).magnitude < 2.75 or Working
- if Working then break end
- local Crate = Crates.Crate;
- for __, cr in next, (Crates:GetChildren()) do
- if (cr.Position - HRP.Position).magnitude < (Crate.Position - HRP.Position).magnitude then
- Crate = cr
- end
- end
- Crate.Parent = game.Lighting.TempFolder
- wait()
- DE:FireServer({
- Object = game.Lighting.TempFolder.Crate,
- Type = 'TakeIngredientCrate'
- })
- Crate.Parent = Crates
- UE:Fire(Stat.EquippedItem)
- wait()
- end
- local Pos = Positions[__]
- Character.Humanoid.WalkToPoint = Pos
- repeat wait() until (HRP.Position - Pos).magnitude < 2 or Working
- if Working then break end
- if Stocking then
- DE:FireServer({
- Workstation = station,
- Type = 'RestockIngredients'
- })
- end
- Stocking = false
- end
- for i = #Positions, 1, -1 do
- local station = Stations:GetChildren()[i]
- if Working then break end
- local CT = station:FindFirstChild('CounterTop')
- if CT then CT.Parent = nil end
- station.InUse.Value = Player
- local Pos = Positions[i]
- Character.Humanoid.WalkToPoint = Pos
- repeat wait() until (HRP.Position - Pos).magnitude < 2 or Working
- if Working then break end
- local NI = station['OrderDisplay']['DisplayMain']:FindFirstChild('NoIngredients',true)
- if NI and NI.Visible and not Working then
- Stocking = true
- local Pos = CrateTP
- Character.Humanoid.WalkToPoint = Pos
- repeat wait() until (HRP.Position - Pos).magnitude < 2.75 or Working
- if Working then break end
- local Crate = Crates.Crate;
- for __, cr in next, (Crates:GetChildren()) do
- if (cr.Position - HRP.Position).magnitude < (Crate.Position - HRP.Position).magnitude then
- Crate = cr
- end
- end
- Crate.Parent = game.Lighting.TempFolder
- wait()
- DE:FireServer({
- Object = game.Lighting.TempFolder.Crate,
- Type = 'TakeIngredientCrate'
- })
- Crate.Parent = Crates
- UE:Fire(Stat.EquippedItem)
- wait()
- end
- local Pos = Positions[i]
- Character.Humanoid.WalkToPoint = Pos
- repeat wait() until (HRP.Position - Pos).magnitude < 2 or Working
- if Working then break end
- if Stocking then
- DE:FireServer({
- Workstation = station,
- Type = 'RestockIngredients'
- })
- end
- Stocking = false
- end
- end
- end)
- local Part2 = coroutine.wrap(function()
- while wait(1) do
- for __, station in next, (Stations:GetChildren()) do
- if Working or Stocking then break end
- local send = Orders[station.Order.Value]
- local count = station.Order.IngredientsLeft.Value
- DE:FireServer({
- Workstation = station,
- Type = 'UseWorkstation'
- })
- if Working or Stocking then break end
- if count > 2 then count = count - 1 end
- for i = 1, count do
- DE:FireServer({
- Workstation = station,
- Type = 'UseWorkstation'
- })
- end
- if Working or Stocking then break end
- DE:FireServer({
- Order = send,
- Workstation = station,
- Type = 'FinishOrder'
- })
- UE:Fire(Stat.Job.ShiftEarnings)
- end
- end
- end)
- if pizzaactive == true then
- pizzaactive = false
- Pizza.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- StartPizza.BackgroundColor3 = Color3.new(0.18, 0.18, 0.18)
- StartPizza.Text = "Start Money Farming"
- notify'Pizza Money Farming Stopped'
- else
- pizzaactive = true
- Pizza.BackgroundColor3 = Color3.new(0, 0.5, 0)
- StartPizza.BackgroundColor3 = Color3.new(0, 0.5, 0)
- StartPizza.Text = "Pizza Money Active"
- notify'Pizza Money Farming Started'
- Part1()
- Part2()
- end
- end)
- --- Ben's Icecream Money ---
- StartIceCream.MouseButton1Click:Connect(function()
- function handle()
- game.ReplicatedStorage.DataEvent:FireServer({Type = 'TakeIceCreamCup'})
- wait(.1)
- local plr = game:GetService'Players'.LocalPlayer.Name
- local flavours = {'Vanilla', 'Chocolate', 'Strawberry'}
- local extra = {'Sprinkles', 'Nuts', 'Caramel'}
- local stuff
- local event = game.ReplicatedStorage.DataEvent
- local send_valid = function()
- for k,v in next, workspace.BensIceCream.CustomerTargets:GetChildren()do
- if v.Occupied.Value ~= nil then
- return v
- end
- end
- end
- for s,j in next, workspace.SpawnedCharacters:GetChildren() do
- if j.Name:find('BensIceCream') then
- local char = j
- local p = send_valid()
- if p.Occupied.Value:FindFirstChild('Order') then
- stuff = {}
- for _,x in next, p.Occupied.Value.Order:GetChildren()do
- table.insert(stuff, x.Value)
- end
- end
- end
- end
- local ball = function()
- if workspace[plr]:FindFirstChild('Ice Cream Cup'):WaitForChild'Ball1'.Transparency == 1 then
- return workspace[plr]:FindFirstChild('Ice Cream Cup').Ball1
- elseif workspace[plr]:FindFirstChild('Ice Cream Cup'):WaitForChild'Ball2'.Transparency == 1 then
- return workspace[plr]:FindFirstChild('Ice Cream Cup').Ball2
- end
- end
- table.foreach(flavours, function(s,l)
- for k,v in next, stuff do
- if l:lower() == v:lower() then
- local new = ball()
- event:FireServer({
- Type = "AddIceCreamScoop",
- Taste = v,
- Ball = new,
- })
- new.Transparency = 0
- end
- end
- end)
- table.foreach(extra, function(s,l)
- for k,v in next, stuff do
- if l:lower() == v:lower() then
- event:FireServer({
- Type = "AddIceCreamTopping",
- Taste = l
- })
- end
- end
- end)
- wait()
- for k,v in next, workspace.BensIceCream.CustomerTargets:GetChildren()do
- if v.Occupied.Value ~= nil then
- game.ReplicatedStorage.DataEvent:FireServer({Type = 'FinishOrder', Workstation = v})
- end
- end
- end
- if icecreamactive == true then
- icecreamactive = false
- IceCream.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- IceCreamPizza.BackgroundColor3 = Color3.new(0.18, 0.18, 0.18)
- IceCreamPizza.Text = "Start Money Farming"
- notify'IceCream Money Farming Stopped'
- else
- icecreamactive = true
- IceCream.BackgroundColor3 = Color3.new(0, 0.5, 0)
- IceCreamPizza.BackgroundColor3 = Color3.new(0, 0.5, 0)
- IceCreamPizza.Text = "IceCream Money Active"
- notify'IceCream Money Farming Started'
- for k,v in next, workspace.BensIceCream.CustomerTargets:GetChildren()do
- v.Occupied:GetPropertyChangedSignal('Value'):Connect(function()
- handle()
- end)
- end
- end
- end)
- --- Kick From House ---
- Kick.MouseButton1Click:Connect(function()
- local oldLoc = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- game.ReplicatedStorage.DataFunction:InvokeServer({Type="EnterBuild"})
- wait(0.01)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldLoc
- notify'All players kicked from house'
- end)
- --- LightsOn ---
- LightsOn.MouseButton1Click:Connect(function()
- local plot = game.Workspace.Plots:FindFirstChild("Plot_"..game.Players.LocalPlayer.Name)
- for i,v in pairs(plot.House.Objects:children()) do
- if v.Type.Value == "Lighting" then
- if not v.ObjectData.IsOn.Value then
- game.ReplicatedStorage.DataEvent:FireServer({Type="Interact", Path=1, Target=v})
- end
- end
- end
- for ii,wall in pairs(plot.House.Walls:children()) do
- if wall:FindFirstChild("ItemHolder") then
- for i,v in pairs(wall.ItemHolder:children()) do
- if v.Type.Value == "Lighting" then
- if v:FindFirstChild("ObjectData") then
- if not v.ObjectData.IsOn.Value then
- game.ReplicatedStorage.DataEvent:FireServer({Type="Interact", Path=1, Target=v})
- end
- end
- end
- end
- end
- end
- end)
- --- Anti AFK ---
- AntiAFK.MouseButton1Click:Connect(function()
- if AntiAFKMode == "On" then
- AntiAFKMode = "Nothing"
- AntiAFK.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- AntiAFK.Text = "Start AFK Message"
- notify'Afk message turned off'
- else
- AntiAFKMode = "On"
- AntiAFK.BackgroundColor3 = Color3.new(0, 0.5, 0)
- AntiAFK.Text = "Stop AFK Message"
- notify'Afk message turned on'
- while AntiAFKMode == "On" do
- wait(300)
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("I'm afk", "All")
- game.Players:Chat("/e point")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement