TweenService doesn't Working?

well someone said that so I changed it to Udim.New so there shouldn’t be any problem at The local script
but I tried yours to… nothing changed

I am %90 done with hatching script but can you help with the “call” thing?

Screenshot_20

this is the whole scipt

local ReplicatedStorage= game:GetService("ReplicatedStorage")

local Players= game:GetService("Players")

local Player = Players.LocalPlayer

local PetHatched= ReplicatedStorage.Remotes.Shop.PetHatched

local EggClone = workspace:WaitForChild("Egg"):Clone()

EggClone.Parent= script.Parent

local EggHatchCamera = Instance.new("Camera",script.Parent)

script.Parent.CurrentCamera = EggHatchCamera

EggHatchCamera.CFrame= CFrame.new(EggClone.Position+Vector3.new(0,0,3),EggClone.Position)

PetHatched:FireClient(Player)

Do:

PetHatched:FireServer(Player)

nothing happened… I mean I Don’t get error anymore but still nothing happens

Is still prints welp etc. ? char340

if someone wonders this is the currenct scripts
EggHatch localScrript

local Workspace= game:GetService("Workspace")
local ReplicatedStorage= game:GetService("ReplicatedStorage")
local Players= game:GetService("Players")
local BuyEgg= ReplicatedStorage.Remotes.Shop.BuyEgg
local PetHatched= ReplicatedStorage.Remotes.Shop.PetHatched
local Player = Players.LocalPlayer

local TweenInfos = TweenInfo.new(2,Enum.EasingStyle.Bounce,Enum.EasingDirection.Out,0,false,0)
local TweenService = game:GetService("TweenService")
local EggHatchFrame = game.StarterGui.ScreenGui.EggHatchFrame

local EggsFolder = Workspace.Eggs
local PetModels = ReplicatedStorage.Pets
local part = Workspace.Part
local EggConfig = require(ReplicatedStorage.Config.Eggs)

local template= script.Parent.Template

local function GetRarityColor(rarity: string)
print(rarity)	
	local color
	if rarity == "Common" then
		color= Color3.fromRGB(136, 136, 136)
	elseif rarity == "Uncommon" then
		color= Color3.fromRGB(83, 255, 97)
	elseif rarity == "Rare" then
		color= Color3.fromRGB(55, 98, 199)
	elseif rarity == "Legendary" then
		color= Color3.fromRGB(225, 244, 50)
	end
	return color
end
local function GetChanceColor(chance: number)
	print(chance)
	if chance <101 then
		chance  = Color3.fromRGB(255,255,255)
	end
	return chance
end
local function GenerateViewportFrame(viewportFrame:ViewportFrame, petModel:Model)
	petModel:PivotTo(CFrame.new()*CFrame.Angles(0,math.rad(90),0))
	petModel.Parent=viewportFrame
	local camera = Instance.new("Camera",viewportFrame)
	viewportFrame.CurrentCamera= camera
	camera.CFrame = CFrame.new(Vector3.new(0,0,3),petModel.PrimaryPart.Position)
	
end
local function GeneratePet(container: Frame, petConfig: table)
	print(petConfig)
	local clone = container.template:Clone()
	clone.Parent = container
	clone.Name = petConfig.Name
	clone.Visible = true
	clone.ViewportFrame.PetName.Text =petConfig.Chance.."%"
	clone.ViewportFrame.PetName.TextColor3 = GetChanceColor(petConfig.Chance)
	clone.ViewportFrame.Rarity.Text = petConfig.Rarity
	clone.ViewportFrame.Rarity.TextColor3 = GetRarityColor(petConfig.Rarity)
		
	local petClone = PetModels[petConfig.Name]:Clone()
	GenerateViewportFrame(clone.ViewportFrame,petClone)
end

	

local function GenerateBillBoardGui(eggModel:Instance,eggConfig: table)
	print(eggConfig)
	local Attachment = eggModel.Egg.Attachment
	local Clone = template:Clone()
	Clone.Parent = script.Parent
	Clone.Adornee = Attachment
	Clone.Name= eggModel.Name
	for _,pet in ipairs(eggConfig.Pets) do
		GeneratePet(Clone.Frame.Container, pet)	
	end
	Clone.Frame.Buttons.Auto.MouseButton1Click:Connect(function()
		--if not Players.gamepass.AutoHatch.Value then
			-- Prompt them to the Purchase the Gamepass
		--else
			BuyEgg:FireServer(eggModel.Name,"Auto")
	--	end
	end)
	Clone.Frame.Buttons.X1.MouseButton1Click:Connect(function()
		BuyEgg:FireServer(eggModel.Name)
	end)
	Clone.Frame.Buttons.X3.MouseButton1Click:Connect(function()
--		if not Players.gamepass.X3GamePass.Value then
			-- Prompt them to the Purchase the Gamepass
--		else
			BuyEgg:FireServer(eggModel.Name,"X3")
--		end
	end)
end

GenerateBillBoardGui(EggsFolder.Basic_Egg, EggConfig.Basic_Egg)

PetHatched.OnClientEvent:Connect(function(pet: table)
	print("We received a"..pet.Name)
	local Megistus = TweenService:Create(EggHatchFrame,TweenInfos,{Position = UDim2.fromScale(0.391, 0.5)})
	Megistus:Play()
	print("Welp")
end)

PutEggOnViewportFrame local script

local ReplicatedStorage= game:GetService("ReplicatedStorage")
local Players= game:GetService("Players")

local Player = Players.LocalPlayer

local PetHatched= ReplicatedStorage.Remotes.Shop.PetHatched

local EggClone = workspace:WaitForChild("Egg"):Clone()
EggClone.Parent= script.Parent

local EggHatchCamera = Instance.new("Camera",script.Parent)
script.Parent.CurrentCamera = EggHatchCamera
EggHatchCamera.CFrame= CFrame.new(EggClone.Position+Vector3.new(0,0,3),EggClone.Position)

PetHatched:FireServer(Player)

Yep it still prints “welp” and other prints

I think I found the problem. The thing is
viewport actually moves to location I put but ??? IDK WHY EGG IS STILL THERE

Re-create that egghatchframe. Probably not about script because it must be works

re-create? you mean delete frame and make another? or re- write script of EggHatchFrame too

Edit I deleted and made another ViewportFrame for it welp. it didn’t change anything ViewportFrame actually moves but egg still waits there

Yes do that. You dont need to do make script again.

I edited it. welp nothing changes sad.

What is your ViewportFrame properties.


I Don’t know if it is necessary but here is the properties of the egg I Am cloning


local ReplicatedStorage= game:GetService("ReplicatedStorage")
local Players= game:GetService("Players")

local Player = Players.LocalPlayer

local PetHatched= ReplicatedStorage.Remotes.Shop.PetHatched

local EggClone = workspace:WaitForChild("Egg"):Clone()
EggClone.Parent= script.Parent

local EggHatchCamera = Instance.new("Camera",script.Parent)
script.Parent.CurrentCamera = EggHatchCamera
EggHatchCamera.CFrame= CFrame.new(EggClone.Position+Vector3.new(0,0,3),EggClone.Position)

PetHatched:FireServer(Player)

script.Parent:GetPropertyChangedSignal("Position"):Connect(function()
	EggHatchCamera.CFrame= CFrame.new(EggClone.Position+Vector3.new(0,0,3),EggClone.Position)
end)

try this

no… still nothing Happens
I asked a few friend about it and they said maybe problem is not about “scripts” but where is the scripts or properties of frame etc but they are not sure too

I gonna test something please wait.

Untitled Game.rbxl (104.5 KB)
here is the file I am working on btw. if you think it will help you