Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local a = require(game:GetService("ReplicatedStorage").Library.Client.CustomEggsCmds)
- local found100x = nil
- function find_nearest_room()
- local nearest, nearest_distance = nil, math.huge
- for _,v in workspace.__THINGS.__INSTANCE_CONTAINER.Active.Backrooms.GeneratedBackrooms:GetChildren() do
- if not v:IsA("Model") or v.Name == "Walls" then continue end
- local dist = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.WorldPivot.Position).Magnitude
- if dist > nearest_distance then continue end
- nearest = v
- nearest_distance = dist
- end
- return nearest
- end
- for i,v in a:All() do
- if v._id == "Backrooms Jack o Lantern Egg 100x" then
- found100x = v
- end
- end
- if found100x then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(found100x._position)
- task.wait(1)
- print("FOUND x100 EGG")
- local Room = find_nearest_room()
- local Buy_Room = false
- local args = {
- [1] = "Backrooms",
- [2] = "AbstractRoom_FireServer",
- [3] = Room:GetAttribute("RoomUID"),
- [4] = "UnlockDoors"
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Network"):WaitForChild("Instancing_FireCustomFromClient"):FireServer(unpack(args))
- else
- print("No x100 Egg")
- end
Add Comment
Please, Sign In to add comment