Another problem with tween(idk why again)

  1. What do you want to achieve? Keep it simple and clear!
    I wanna make a tween work
  2. What is the issue? Include screenshots / videos if possible!
    Issue is, it’s just don’t tween. I used script which used in my other script. But no it’s don’t work!
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tryed to remake a script, but still no. No i didn’t
local Button = script.Parent
local HalloweenGUI = game.Players.LocalPlayer.PlayerGui.HalloweenEventGUI.Frame

local button = script.Parent
local clicks = 0
local DB = false
local TweenService = game:GetService("TweenService")

	Button.MouseButton1Click:Connect(function()
		HalloweenGUI:TweenPosition(UDim2.new(0.05, 0,0.046, 0),"Out","Sine",2,false)
	end)

Hmmm i can’t see any error, idk what to do

What happens when you remove the other parameters? Does that part move?

not part a GUI, there is no errors or smth other

Does the frame move? Mb. It should if you try remove it, then you can try debugging after you can verify it moves without them.

No it’s don’t lol, if it was moving i would never write that topic

Did you try removing the other parameters like I said? So that you only have the UDim2.

Have you checked your output for any error message?

No errors, hm i added a print after clicking a button, but it’s don’t print, something wrong with click detection, lemme check

They already stated this in their reply.

ooh, sorry I didn’t read through that.

why are there two variables for the parent?

Make sure the frame has the correct location in the script too.

removed already, idk still don’t print anything here script

local Button = script.Parent
local HalloweenGUI = game.Players.LocalPlayer.PlayerGui.HalloweenEventGUI.Frame
local clicks = 0
local DB = false
local TweenService = game:GetService("TweenService")

Button.MouseButton1Click:Connect(function()
	print("GUI is Moving!")
		HalloweenGUI:TweenPosition(UDim2.new(0.05, 0,0.046, 0),"Out","Sine",2,false)
	end)
	

Yea, maybe that is the current position.
and its trying to tween to its own location.

I didn’t mean that but I was going to say that. I meant location as in the explorer, making sure its defined properly.

No it’s not, i alr stated what it’s don’t print me. Also position is other

Is the frame selectable?
if it isn’t, then I don’t think ‘MousButton1down’ will work.

Set Frame.Selectable to true, and then check.

I have other frame with selectable false and tween work