How do I make the work anywhere no matter where the model is Rotated? [Nevermind]
I want it to work wherever the whole model is rotated. Like the rotation was like 90, 60, 90 but when I rotated the whole model, it made it like 17, 0, 0. Anyway to fix that problem? This is the same script I asked for the 'or' part, but different situation:
This script is in the position where the X and Z is 90. But if I like rotate the whole model it becomes like 17, 0, 0. So I want it to work no matter where the whole model is rotated. Hope you know what I mean.
This is the link to a video to make it more sense of what is going on! https://www.youtube.com/watch?v=0CiLlWS_Nz4&feature=youtu.be
01 | local tune = game.Workspace.Radio.Tune |
02 | local pic = workspace.SongPosters.Decal |
03 | sound = Instance.new( "Sound" , tune) |
08 | if debounce then return end |
12 | tune.Rotation = Vector 3. new(tune.Rotation.X, - 69.598 , tune.Rotation.Z) |
19 | tune.Rotation = Vector 3. new(tune.Rotation.X, - 89.282 , tune.Rotation.Z) |
26 | script.Parent.ClickDetector.MouseClick:connect(onClicked) |