How would I make an egg hatching system?

Ok, let me assist you with that! :slight_smile:

1 Like

all right thx for helping me :slight_smile:

1 Like

Make a separate Station, open a GUI on Touched of the Station. Then on the GUI, list all of the pets and let the User select the pets they want to strengthen, then, get a

local Percent = math.random(1,5)
Pet.Strength.Value = Percent

So, yes, this is an example. It may not work with your game, if you want a script that does, please go to #collaboration:recruitment to find someone to assist you with that! Hope I helped! :slight_smile:

1 Like

I mean hire a developer to Make a script that is compatible with your game.

I don’t really have the Robux to hire a dev, so I will need to figure it out my self but thx for your help :slight_smile:

1 Like

Well, try to do this

When the player earns the Cash, send the Remote Event with the value from a Number Value so, you can adjust it! :slight_smile:

1 Like

I mean I dont have a pet hatching system right now wich means the pet dosent follow you and also I dont have an inventory to equip the pets :confused:

1 Like

So I was trying to get some help in the devforum because there is almost no tutorials about this topic.

2 Likes

Ok i think i can help! So first thing we want to do is make a folder for the pets you can get.image
Next thing you want to do is make a folder for the decals. This is purely for looks but it will help!
image
Now you want to make a gui and name it like i did

What you want to do now is put the pets you have made inside of the folder. This will be my pet image
Now what you want to do is put the pet in your folder.image
Now what you want to do is make a string value with the same name as the pet. image
Now upload your image and copy the url image

Then set the string value to the image url like so.image

Ok now we need to make sure the client cant rig what pet they are going to get so we are going to make a remote event!

image

Now you want to insert a script into serverscriptservice called PetServer image

Now we will script the serverside of the pets.

local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local PetClient = ReplicatedStorage:WaitForChild(“PetClient”)

local Items = {“EpicPet”, “EpicPet2”}

PetClient.OnServerEvent:Connect(function(Player)
local PetRandom = math.random(1, #Items)

for i, v in pairs(Items) do
	if i == PetRandom then
		PetClient:FireClient(Player, v, game.ServerStorage.Decals:FindFirstChild(v).Value)
	end
end

end)

Now just make a local script inside of the gui. image

Now here is the code for the gui:

local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local PetClient = ReplicatedStorage:WaitForChild(“PetClient”)

PetClient:FireServer()

PetClient.OnClientEvent:Connect(function(PetName, DecalId)
script.Parent.ImageLabel.Image = DecalId
end)

script.Parent.ClaimButton.MouseButton1Click:Connect(function()
script.Parent.Parent.Enabled = false
end)

if you are having trouble i made an open source for you to toy around with: Untitled Game - Roblox

10 Likes

for future refrence however dont ask for entire scripts to be made.

3 Likes

dont worry I know how hard it is to make a system like this, you arleady gived me a really good head start thanks for spending time to help me :smiley:

2 Likes

could you mark me as the solution lol

3 Likes

I will once I get trough the tutorial you gave me :slight_smile:

3 Likes

makes sense30 chars ughhhhhhhhh

4 Likes

I might make an open source version of mine when its done i will send you a link! It has boosts faster hatch gamepass and much more!

5 Likes

alr, thx dude :slight_smile: (30 Charssss)

3 Likes

And i’m also working on triple hatch.

5 Likes

cant wait to see that :open_mouth:

4 Likes

Hi From 2 years later. lol
I neded help for animating egg hatch so wanted to check yours to understand how it works but welp ::frowning:

YEAH I just revived a dead post sorry… well if you know how to make one you can check my post I appeciate every help