Advertisement
pastebinxx

Untitled

Oct 19th, 2024
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. local a = require(game:GetService("ReplicatedStorage").Library.Client.CustomEggsCmds)
  2.  
  3. local found100x = nil
  4.  
  5. function find_nearest_room()
  6. local nearest, nearest_distance = nil, math.huge
  7. for _,v in workspace.__THINGS.__INSTANCE_CONTAINER.Active.Backrooms.GeneratedBackrooms:GetChildren() do
  8. if not v:IsA("Model") or v.Name == "Walls" then continue end
  9. local dist = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.WorldPivot.Position).Magnitude
  10. if dist > nearest_distance then continue end
  11. nearest = v
  12. nearest_distance = dist
  13. end
  14. return nearest
  15. end
  16.  
  17. for i,v in a:All() do
  18. if v._id == "Backrooms Jack o Lantern Egg 100x" then
  19. found100x = v
  20. end
  21. end
  22.  
  23. if found100x then
  24. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(found100x._position)
  25. task.wait(1)
  26.  
  27. print("FOUND x100 EGG")
  28. local Room = find_nearest_room()
  29. local Buy_Room = false
  30.  
  31. local args = {
  32. [1] = "Backrooms",
  33. [2] = "AbstractRoom_FireServer",
  34. [3] = Room:GetAttribute("RoomUID"),
  35. [4] = "UnlockDoors"
  36. }
  37.  
  38. game:GetService("ReplicatedStorage"):WaitForChild("Network"):WaitForChild("Instancing_FireCustomFromClient"):FireServer(unpack(args))
  39.  
  40. else
  41. print("No x100 Egg")
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement