Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- 8888
- -- helps you find kiras (also has a tp to id option)
- local Players = game:GetService("Players");
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local GameFolder = ReplicatedStorage.Game
- local Client = Players.LocalPlayer;
- local ClientGUI = Client.PlayerGui
- local KiraList = {}
- local Gamemode, Timer, GamePhase = GameFolder.Gamemode, GameFolder.Timer, GameFolder.GamePhase
- local CurrentUserId = nil
- local SecondaryMapOption = nil
- local function MkUICorner()
- return Instance.new("UICorner")
- end
- local function MkUIStroke(Thickness)
- local strk = Instance.new("UIStroke")
- strk.Thickness = Thickness
- return strk
- end
- local UI = Instance.new("ScreenGui");
- UI.Parent = ClientGUI;
- local Frame = Instance.new("Frame");
- Frame.Position = UDim2.new(0.35, 0,0.374, 0);
- Frame.Size = UDim2.new(0.3, 0,0.25, 0);
- Frame.BackgroundColor3 = Color3.fromRGB(53, 1, 1)
- Frame.Draggable = true
- Frame.Selectable = true
- Frame.Active = true
- MkUIStroke(4).Parent = Frame
- Frame.Parent = UI
- local KiraLabel = Instance.new("TextLabel");
- KiraLabel.Position = UDim2.new(0.044, 0,0.064, 0);
- KiraLabel.Size = UDim2.new(0.273, 0,0.439, 0);
- KiraLabel.BackgroundTransparency = 1
- KiraLabel.TextScaled = true
- KiraLabel.Font = Enum.Font.Gotham
- KiraLabel.Text = "Kira ; "
- KiraLabel.Parent = Frame
- local Kiras = Instance.new("TextLabel");
- Kiras.Position = UDim2.new(0.317, 0,0.064, 0);
- Kiras.Size = UDim2.new(0.665, 0,0.439, 0)
- Kiras.BackgroundTransparency = 1
- Kiras.TextScaled = true
- Kiras.TextColor3 = Color3.new(1, 0, 0)
- Kiras.Font = Enum.Font.Gotham
- Kiras.Text = ":3 (Press on $ sign to start, preferably if you aren't in the lobby)"
- Kiras.Parent = Frame
- local CleanUpButton = Instance.new("TextButton");
- CleanUpButton.Size = UDim2.new(0.5, 0,0.3, 0);
- CleanUpButton.Position = UDim2.new(0.244, 0,0.581, 0);
- CleanUpButton.TextScaled = true
- CleanUpButton.BackgroundColor3 = Color3.new(0, 0, 0)
- CleanUpButton.TextColor3 = Color3.new(1, 1, 1)
- CleanUpButton.Font = Enum.Font.Gotham
- CleanUpButton.Text = "Clear"
- MkUICorner().Parent = CleanUpButton
- CleanUpButton.Parent = Frame
- local TPButton = Instance.new("TextButton");
- TPButton.Size = UDim2.new(0.5, 0,0.3, 0);
- TPButton.Position = UDim2.new(0.244, 0,1.105, 0);
- TPButton.BackgroundColor3 = Color3.new(0, 0, 0)
- TPButton.TextColor3 = Color3.new(0.796078, 0.796078, 0.796078)
- TPButton.TextScaled = true
- TPButton.Font = Enum.Font.Gotham
- TPButton.Text = "Teleport To ID"
- MkUICorner().Parent = TPButton
- TPButton.Parent = Frame
- local DollaSign = Instance.new("TextButton");
- DollaSign.Size = UDim2.new(0.061, 0,0.115, 0);
- DollaSign.Position = UDim2.new(0.919, 0,0.837, 0);
- DollaSign.TextScaled = true
- DollaSign.Text = "$"
- MkUICorner().Parent = DollaSign
- DollaSign.BackgroundColor3 = Color3.new(0.0666667, 0, 1)
- DollaSign.Parent = Frame
- local function Noclip(Bool)
- for i, v in pairs(Client.Character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.CanCollide = not Bool
- end
- end
- end
- local function closestPlayerAtPos(Position)
- local MaxRange = math.huge;
- local Closest = nil;
- for _, v in Players:GetPlayers() do
- local RootPart = v.Character and v.Character:FindFirstChild("HumanoidRootPart");
- if not RootPart then
- continue;
- end;
- local Magnitude = (RootPart.Position - Position).Magnitude;
- if Magnitude < MaxRange then
- Closest = v.Character;
- MaxRange = Magnitude;
- end;
- end;
- return Closest;
- end;
- local function FetchCurrentId(Map)
- for _, v in Map:GetChildren() do
- if v.Name == "Id" then
- if v.SurfaceGui.Frame.PlayerName.Text == Client.Name or v.SurfaceGui.Frame.PlayerName.Text == Client.DisplayName then
- return v
- end
- end
- end
- end
- local CanBypass = true
- CleanUpButton.MouseButton1Click:Connect(function()
- Kiras.Text = ""
- KiraList = {}
- end)
- TPButton.MouseButton1Click:Connect(function()
- CurrentUserId = FetchCurrentId(workspace.Map)
- if CurrentUserId ~= nil and (Client.Character) then
- Noclip(true)
- Client.Character.HumanoidRootPart.CFrame = CurrentUserId.CFrame
- task.wait(0.5)
- Noclip(false)
- else
- TPButton.Text = "Your ID isn't in game !"
- task.wait(0.75)
- TPButton.Text = "Teleport To Your Id"
- end
- end)
- GamePhase:GetPropertyChangedSignal("Value"):Connect(function()
- if GamePhase.Value == "Starting" then
- KiraList = {}
- CanBypass = true
- end
- end)
- DollaSign.MouseButton1Click:Connect(function()
- if CanBypass then
- local Map = workspace.Map;
- if Map then
- CanBypass = false
- Kiras.Text = ""
- for _, v in Map:GetChildren() do
- if v.Name == "Id" then
- local Position = v.Position;
- local SurfaceGui = v:FindFirstChild("SurfaceGui");
- if not SurfaceGui then
- continue;
- end;
- SurfaceGui:GetPropertyChangedSignal("Enabled"):Connect(function()
- local Kira = closestPlayerAtPos(Position);
- if Kira and Timer.Value < 178.5 and GamePhase.Value == "IdScatter" then
- local KiraPlr = Players:GetPlayerFromCharacter(Kira)
- if not table.find(KiraList, KiraPlr) and KiraPlr ~= Client then
- if #Kiras.Text == 0 then
- Kiras.Text = KiraPlr.DisplayName .. " (" .. Kira.Name .. ")"
- table.insert(KiraList, KiraPlr)
- else
- Kiras.Text = Kiras.Text .. ", " .. KiraPlr.DisplayName .. " (" .. Kira.Name .. ")"
- table.insert(KiraList, KiraPlr)
- end
- end
- end;
- end);
- end;
- end;
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement