Hey guys, I'm trying to make my own egg hunt game, and when you click on the eggs, a frame appears (that is my first part of the game), but this script doesn't error in the output (the output doesn't print anything about this) and the frame doesn't appear when I try clicking on the eggs.
Here is my script:
-- egg folder
local eggfolder = script.Parent
-- oof egg variables
local eggofbloxxed = eggfolder.EggofBloxxed
local oof_frame = game.StarterGui.EggGuis.OofEggGui.Frame
local oofclickdetector = script.Parent.EggofBloxxed.ClickDetector1
-- normal egg variables
local normalclickdetector = script.Parent.NormalEgg.ClickDetector2
local normal_egg = eggfolder.NormalEgg
local normalframe = game.StarterGui.EggGuis.NormalEggGui.Frame
-- normal egg clickdetector script
eggfolder.eggofbloxxed.oofclickdetector.MouseClick:Connect(function()
oof_frame:TweenPosition(UDim2.new(0.5, 0,0.353, 0),2.9)
end)
-- oof egg clickdetector script
eggfolder.normal_egg.normalclickdetector.MouseClick:Connect(function()
normalframe:TweenPosition(UDim2.new(0.5, 0,0.353, 0),2.9)
end)
Anyone know how to solve this issue?
Thanks!

2 comments
Thanks! It actually worked!
Your welcome.