AbsolutePosition and AbsoluteSize triggering .Changed event

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I have a script that should fire whenever the GUI’s property changes(specifically the visible property), and if it fires it should put the GUI into a table.

  1. What is the issue? Include screenshots / videos if possible!

The script automatically fires whenever I join the game. I printed it out and it was AbsolutePosition and AbsoluteSize that was making the .Changed event fire.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have checked everywhere, but it seems that the AbsolutePosition and AbsoluteSize is a read-only property. How do I stop it from changing whenever the player joins the game?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

This is a serverscript, so I can’t use GetPropertyChangedSignal

for i, Badges in pairs(CS:GetTagged("Badges")) do
	Badges.Changed:Connect(function()
		table.insert(BadgeTable, Badges.Name)
	end)
end
1 Like

A simple fix is to just add a wait :stuck_out_tongue:

1 Like

Badges.Changed:Connect(function(property)
if property ~= “AbsoluteSize” and property ~= “AbsolutePosition” then
table.insert(BadgeTable, Badges.Name)
end
end)

1 Like

That should not stop you from using GetPropertyChangedSignal. Have you already tried it, and if so, why did it not work?

Also, client changes to the GUI do not replicate to the server, so if you are changing the Visible property on the client, it won’t work either way. You would need to use a RemoteEvent.

2 Likes

I have already used GetPropertyChangedSignal

It didn’t work since its a serverscript, and it doesnt detect if the visible property of the gui has changed since, its on client.

I have a localscript that changes the visibility of the gui, and I have a ServerScript that checks if the visibility of the gui has changed.

1 Like

Then your current script wouldn’t even work anyways. Use a remote event instead to tell the server that visibility changed.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.