of     1   

g1o2r3d4a5n6
#227678392Saturday, November 18, 2017 7:20 PM GMT

Say I have a frame in screen gui another frame which is a parent to a bunch of text labels and then I tween the position of that frame with text labels how do I check which text label is colliding with the frame when the tweening ends?
Flubberlutsch
#227678547Saturday, November 18, 2017 7:23 PM GMT

I suppose your goal is to hide text labels which are off the very parent frame, therefore simply enable the property "ClipsDescendants" on your parent frame. This will automatically hide any content which is not within the frame bounds, *unless* the object is rotated (Meaning this option only works with non-rotated objects)
g1o2r3d4a5n6
#227678774Saturday, November 18, 2017 7:28 PM GMT

i know, I already did that but I wanna know how to check which text lable is colliding with the frame when the tweening ends basically I'm trying to do something like case opening from murder mistery or assasin so how would I check which item is given thx anyways btw I'm not trying to copy any case clicker game lol I'm just trying to script this for fun
Flubberlutsch
#227678947Saturday, November 18, 2017 7:33 PM GMT

I see, okay so 1. Build up a table with random rewards with let's say up to 50 objects (Each should know an image to display aswell as an identifier for the reward) 2. Create a frame with an image label / text label or whatsoever for every single reward in the table 3. Now get a random number, lets say 20 + math.random() * 20 (We want the case to get at least past 20 objects so it doesn't look rigged, but also not above 40 so we won't be able to see the end) 4. Tween the frame to the desired location (I recommend using TweenService), simply calculate the end position from the random number 5. Get your reward info back from the table using info = tab[math.floor(randomnumber)] 6. Magic has been done
g1o2r3d4a5n6
#227679271Saturday, November 18, 2017 7:40 PM GMT

ok ill try it out thx for your time
Flubberlutsch
#227679332Saturday, November 18, 2017 7:42 PM GMT

I haven't scripted such a thing before, but I could work it out for yer if you would like me to and you'd pay me. I'm a very experienced and fast scripter.
g1o2r3d4a5n6
#227679398Saturday, November 18, 2017 7:43 PM GMT

nah I dont want anyone do this for me Im just practicing, not doing this for a game
Flubberlutsch
#227679485Saturday, November 18, 2017 7:45 PM GMT

I'm just gonna work out on it anyways because I wanna try it too now lmao. If you want to, you can join my Djscord - kjxp9MN - I'll upload the save files there later
g1o2r3d4a5n6
#227679837Saturday, November 18, 2017 7:53 PM GMT

something is wrong with ####### servers so if you want you can add me on ####### so I can show you what I've done so far my dis is: g1o2#5967
Flubberlutsch
#227681863Saturday, November 18, 2017 8:39 PM GMT


    of     1