forked from TrixAde/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPetSimXFakeHatch.lua
More file actions
37 lines (36 loc) · 1.03 KB
/
Copy pathPetSimXFakeHatch.lua
File metadata and controls
37 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
function HatchEgg(Pet)
local pet = Pet
for i,v in pairs(game.ReplicatedStorage.Game.Pets:GetChildren()) do
if string.split(tostring(v), ' - ')[2] == pet then
pet = string.split(tostring(v), ' - ')[1]
end
end
local tbl = {
{
nk = 'Preston',
idt = '69',
e = false,
uid = '69',
s = 999999999999,
id = pet,
}}
local egg
for i_,script in pairs(game.ReplicatedStorage.Game.Eggs:GetDescendants()) do
if script:IsA('ModuleScript') then
if typeof(require(script).drops) == 'table' then
for i,v in pairs(require(script).drops) do
if v[1] == pet then
egg = require(script).displayName
end
end
end
end
end
if Pet == 'Huge Cat' then egg = 'Cracked Egg' end
for i,v in pairs(getgc(true)) do
if (typeof(v) == 'table' and rawget(v, 'OpenEgg')) then
v.OpenEgg(egg, tbl)
end
end
end
HatchEgg('Huge Pumpkin Cat')