I didn’t do anything, your ModuleScript did everything and thank you for the ModuleScript.
HOW, MY MODULE DIDN’T HAVE ANYTHING THAT IS RELATED TO ROTATION.
sorry for caps, but my module script really didn’t have anything about rotation of other guis or something like that…
Did you add some lines to the function GetTouchStatus?
I haven’t really changed anything, it’s just that you’re so strong that you do things unconsciously.
Currently it only works when it hits the center so if I go a little higher it doesn’t work
this is picture of testing my module, the frame at the bottom has 45 degree rotation.
also, as you can see, the top frame is NOT touching the bottom frame, but it says collision true.
( I am using same module I did provide to you )
or maybe It was coincidence?
Actually, the module doesn’t have any lines about rotations.
So when gui is rotated, the non-rotated is the actual hitbox.
( for ex. picture above has rotated gui, the transparent red gui shows the actual hitbox of the rotated gui with my module )
oh yeah thank you for response, yea it may only work when it hits the center because the module currently doesnt support rotations.
To fix it, you just have to orient it like Gui ?
umm, tbh i dont know what you mean.
i am just saying that rotated guis will not work on my module’s functions.
So how can it detect even if it’s oriented?
I also don’t know how to do it, but I am sure that It requires lot of maths, new functions.
I think there will be lots, and lots of trigonometry functions to calculate this.
And i am just an young scripter so i dont know trigonometry maths.
young? even with 2 years of experience I can’t do that.
I mean, young as age, not experience.
yeah i scripted for 3 years, not really “young”.
but I still don’t know higher grade maths.
Maybe use AbosluteOrientation" (I don’t know if it exists)
I think you did mean “AbsoluteRotation”
and I did say it required many maths because of THIS. (AbsoluteRotation)
like, if the gui is rotated 15 deg. then how would we get the hitbox of gui? and how to detect touchstatus with other gui when other gui has different rotation?
and It’s impossible for me to do this, i don’t even know maths
currently in my script I use this to detect if the mouse touches the image:
local mouseTouchingImage = (mouse.X >= ImgLabel.AbsolutePosition.X and mouse.X <= ImgLabel.AbsolutePosition.X + ImgLabel.AbsoluteSize.X) and (mouse.Y >= ImgLabel.AbsolutePosition.Y and mouse.Y <= ImgLabel.AbsolutePosition.Y + ImgLabel.AbsoluteSize.Y)
that’s a good question A very good question…
I don’t think I’ll be able to finish it as it’s too complicated. I’ll just leave it as it is and thank you.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.