#tweening

37 messages · Page 1 of 1 (latest)

minor flower
#

3rd time posting and no help

thorn stirrupBOT
#

studio** You are now Level 5! **studio

narrow elm
#

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

minor flower
#

Spins once then fades away

narrow elm
#
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
thorn stirrupBOT
#

studio** You are now Level 1! **studio

narrow elm
#

that isnt gonna work but just try somethign similar

minor flower
#

why is this not moving or destroying

#

@narrow elm

narrow elm
#

selectionarea is not nil

#

does it error?

minor flower
#

Thats for a different part of the script

narrow elm
#

show me the whole script and tell me what exactly you're trying to do

minor flower
#

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

narrow elm
#

Is that the only purpose?

minor flower
#

yeah it come up from the bottom rotates then fades

narrow elm
#

show me the script that sets selectionarea value

#

and btw

#

if not selectionarea then
works too

minor flower
#

Well it goes thru workspaces and finds the 2 number values in the part

#

ive been trying to make it for a while and cant find yt to help

#

forgot to mention aswell its a screen gui with a imagelabel and a textlabel

narrow elm
#

bro

#

you cant tween screen guis

#

i gtg now

#

gl

minor flower
#

like