Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Place this script in StarterPlayerScripts or StarterGui
- -- List of allowed Place IDs
- local allowedPlaceIds = {
- [14269621394] = true,
- [15297128281] = true
- }
- -- The Place ID to teleport to if the current Place ID is not allowed
- local teleportPlaceId = 15297128281
- -- Check if the current Place ID is allowed
- local currentPlaceId = game.PlaceId
- if not allowedPlaceIds[currentPlaceId] then
- -- Current Place ID is not allowed, teleport the player
- local TeleportService = game:GetService("TeleportService")
- local player = game.Players.LocalPlayer
- TeleportService:Teleport(teleportPlaceId, player)
- else
- -- If the current Place ID is 15297128281, execute the provided script
- if currentPlaceId == 15297128281 then
- local args = {
- [1] = "Change Ready Settings",
- [2] = true
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Main.RE"):FireServer(unpack(args))
- end
- -- If the current Place ID is 14269621394, execute the three provided scripts
- if currentPlaceId == 14269621394 then
- -- Script 1: Shooting Multiplier and Power Change Script
- -- Services
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- -- Player Variables
- local localPlayer = Players.LocalPlayer
- local backpack = localPlayer:WaitForChild("Backpack")
- local actionValues = backpack:WaitForChild("ActionValues")
- local power = actionValues:WaitForChild("Power")
- -- Globals
- _G.Xp = false
- _G.Multiplier = 100 -- Set the shot multiplier to 50
- _G.ChangeValue = 1
- -- Function to Fire Shots Based on Multiplier
- local function onPowerChanged()
- if power.Value >= _G.ChangeValue and _G.Xp then
- local args = {
- [1] = false,
- [2] = "Shooting",
- [3] = "Standing Shot"
- }
- local playerEvents = backpack:FindFirstChild("PlayerEvents") or ReplicatedStorage:FindFirstChild("PlayerEvents")
- if playerEvents then
- local shootingEvent = playerEvents:FindFirstChild("Shooting")
- if shootingEvent then
- for i = 1, _G.Multiplier do
- shootingEvent:FireServer(unpack(args))
- end
- else
- warn("Shooting event not found in PlayerEvents.")
- end
- else
- warn("PlayerEvents folder not found in either Backpack or ReplicatedStorage.")
- end
- end
- end
- -- Connect Power Change Signal
- power:GetPropertyChangedSignal("Value"):Connect(onPowerChanged)
- -- Example Usage: Setting values
- _G.Xp = true -- Set to true to enable shooting
- _G.ChangeValue = 50 -- Minimum power value to trigger the shot
- -- Script 2: Disable AFK Check
- local StarterGui = game:GetService("StarterGui")
- local function disableAFKCheck()
- local starterGuiAFKUi = StarterGui:FindFirstChild("AFK.Ui")
- if starterGuiAFKUi then
- local afkCheckScript = starterGuiAFKUi:FindFirstChild("AFK.Check")
- if afkCheckScript and afkCheckScript:IsA("LocalScript") then
- afkCheckScript.Disabled = true
- print("AFK.Check script in StarterGui is disabled.")
- else
- print("AFK.Check script not found or not a LocalScript in StarterGui.")
- end
- else
- print("AFK.Ui not found in StarterGui.")
- end
- local player = Players.LocalPlayer
- if player and player.PlayerGui then
- local playerGuiAFKUi = player.PlayerGui:FindFirstChild("AFK.Ui")
- if playerGuiAFKUi then
- local afkCheckScript = playerGuiAFKUi:FindFirstChild("AFK.Check")
- if afkCheckScript and afkCheckScript:IsA("LocalScript") then
- afkCheckScript.Disabled = true
- print("AFK.Check script in PlayerGui is disabled.")
- else
- print("AFK.Check script not found or not a LocalScript in PlayerGui.")
- end
- else
- print("AFK.Ui not found in PlayerGui.")
- end
- else
- print("PlayerGui not available.")
- end
- end
- disableAFKCheck()
- -- Script 3: Load Anti-AFK Script from URL with error handling
- local success, result = pcall(function()
- return game:HttpGet("https://pastebin.com/raw/DWhz7RHx", true)
- end)
- if success then
- loadstring(result)()
- else
- warn("Failed to load Anti-AFK Script: ", result)
- end
- -- Script 4: Load additional script 1 with error handling
- success, result = pcall(function()
- return game:HttpGet("https://raw.githubusercontent.com/evxncodes/mainroblox/main/anti-afk", true)
- end)
- if success then
- loadstring(result)()
- else
- warn("Failed to load additional script 1: ", result)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment