I already tried doing this and it did not work.
I used a LocalScript Here is my script:
wait()
while true do
wait()
script.Parent.Position = UDim2.new(script.Parent.Parent.TextButton.Position)
end
Any help would be appreciated, thanks.
I already tried doing this and it did not work.
I used a LocalScript Here is my script:
wait()
while true do
wait()
script.Parent.Position = UDim2.new(script.Parent.Parent.TextButton.Position)
end
Any help would be appreciated, thanks.
You don't need to create a new UDim2 instance because TextButton's position property is a UDim2 value. https://developer.roblox.com/en-us/api-reference/class/TextButton If you go to that link and scroll to position, you can see it says "UDim2."
So, the script would look like this:
wait()
while true do
wait()
script.Parent.Position = script.Parent.Parent.TextButton.Position
end
How do I accept your answer?
There should be a button at my answer that says "Accept answer". An upvote would be appreciated, too .Thanks!
I don't see the accept answer button and I need 25 reputation to upvote.
Oh yeah, forgot about the upvote requirement. The accept answer button should be there (I think it might say "Mark as solution" idk)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Any errors?
Nope