Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in pairs(workspace:FindFirstChild("Map"):FindFirstChild("NPCs"):GetChildren()) do
- if v:IsA("Model") and v:FindFirstChild("HumanoidRootPart") then
- if v.Name == "Boojie" then
- local position = Instance.new("Vector3Value", workspace)
- position.Name = "FindBoojieNPCESP"
- local enableBool = Instance.new("BoolValue", workspace)
- enableBool.Name = "FindBoojieNPCToggle"
- enableBool.Value = false
- local UI = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
- local TextButton = Instance.new("TextButton", UI)
- TextButton.Text = "Boojie Collector Toggle "..tostring(enableBool.Value)
- TextButton.BackgroundTransparency = 0.8
- TextButton.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
- TextButton.Font = Enum.Font.Antique
- TextButton.TextColor3 = Color3.fromRGB(255,255,255)
- TextButton.Size = UDim2.new(0.1,0,0.1,0)
- TextButton.Position = UDim2.new(0,0,0.561,0)
- TextButton.TextScaled = true
- TextButton.MouseButton1Click:Connect(function()
- if enableBool.Value == false then
- enableBool.Value = true
- else
- enableBool.Value = false
- end
- end)
- spawn(function()
- enableBool.Changed:Connect(function(changed)
- TextButton.Text = "Boojie Collector Toggle "..tostring(enableBool.Value)
- if changed == true then
- spawn(function()
- repeat wait()
- position.Value = v.HumanoidRootPart.Position
- until enableBool.Value == false
- end)
- end
- end)
- end)
- position.Changed:Connect(function(changed)
- if changed == Vector3.new(0,-30,0) then return end
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,0,-5)
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement