You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve?
Whenever the player clicks the Gui button, it’ll do something like this:
-
What is the issue? Include screenshots / videos if possible!
The script wont randomize the position on the ImageLabel
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I originally thought it was because the anchor point, I added this
clone.AnchorPoint = Vector2.new(randomX, randomY)
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!
local function createEffect()
local effect = script.Parent.Ack
local randomY = math.random(0.7, 0.9)
local randomX = math.random(0.1, 0.9)
local clone = effect:Clone()
clone.Visible = true
clone.Parent = script.Parent
clone.Position = UDim2.fromScale(randomX, 1)
clone.AnchorPoint = Vector2.new(randomX, randomY)
clone:TweenPosition(UDim2.fromScale(randomX, randomY))
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.