Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why doesn't this button work?

For some reason when I try to click on the button I have the script in, It doesn't respond or print any errors. But it works fine in Play Solo and Start Server. Can somebody help? Thanks! c;

repeat wait() until script.Parent.Parent:FindFirstChild("SponsorOpen")
local open = script.Parent.Parent.SponsorOpen

script.Parent.MouseButton1Down:connect(function()
	if open.Value then
		script.Parent.Parent.SponsorFrame:TweenPosition(UDim2.new(-0.4, 0, 0.125, 0), "Out", "Quart", 0.75, true)
	else
		script.Parent.Parent.SponsorFrame:TweenPosition(UDim2.new(0.3, 0, 0.125, 0), "Out", "Quart", 0.75, true)
		script.Parent.Parent.ShopFrame:TweenPosition(UDim2.new(-0.4, 0, 0.125, 0), "Out", "Quart", 0.75, true)
		script.Parent.Parent.ShopOpen.Value = false
	end
	open.Value = not open.Value
end)

1 answer

TweenSize, TweenPosition, and TweenSizeAndPosition seem to have been broken by ROBLOX staff in the last update, I have started a topic in the Help Forum about this issue. I am not sure if staff are aware of it, and you might receive faster response through their email info@roblox.com.

At the time of posting this answer, it appears that ROBLOX has broken the method in Server Side Scripts or have disabled it for security issues. Whatever the case is, it might be a good idea to try using the script in a LocalScript. Though this was just a response from a person in the help forum, not particularly a administrator for the site.

This discussion is preserved as it was. New answers, comments, and votes are closed.