#tweening
37 messages · Page 1 of 1 (latest)
** You are now Level 5! **
Nobody is helping because we have no idea what you mean
what do you mean with 'to the middle'
but then say it's at a random position
if your talking about the center and want it to move to a random position near the middle, then you first have to set the gui position to the X position of the random position to make sure it wont go diagonal using runservice
I'll make a short thing rlq, it'll be up to you to correct everything
Ok so it comes from the bottom of the screen up to a random position
Spins once then fades away
local rs = game:GetService('RunService')
local tweenS = game:GetService('Tween Service')
local gui = [PathToGui]
function Dostuff()
local goal = {--end position}
local info = TweenInfo.new(--your custom info here)
tweenS:create(gui, info, goal):Play()
end
rs.Stepped:Connect(function(dt)
local x, y = math.random(range here), math.random(range here)
gui.Position = Vector2.new(x)
end)
--your activation function here:Connect(function()
Dostuff()
end)
```Something like this
** You are now Level 1! **
that isnt gonna work but just try somethign similar
Thats for a different part of the script
show me the whole script and tell me what exactly you're trying to do
this is full script
selection area just detects if im in a zone
the purpose of thr scriptis where when i click i get +1 * whatever
and i want a pop up that shows that
Is that the only purpose?
yeah it come up from the bottom rotates then fades
show me the script that sets selectionarea value
and btw
if not selectionarea then
works too