How would I go about rotating a Gui by using the right controller thumbstick?
1 Like
It’s crazy how you generated this reply using AI. I get it you want to try to help, but if you’re going to use AI to help, then why bother? At such a point, just tell the OP to DIY.
Also you say in your bio:
I see that all those skills are just AI. Maybe try harder next time kiddo.
Anyways here is the code OP:
local UserInputService = game:GetService("UserInputService")
local frame = script.Parent.Frame
local direction = 0
UserInputService.InputChanged:Connect(function(Input, GameProcessedEvent)
if Input.KeyCode == Enum.KeyCode.Thumbstick1 then
direction = Input.Delta.X
end
end)
UserInputService.InputEnded:Connect(function(Input, GameProcessedEvent)
if Input.KeyCode == Enum.KeyCode.Thumbstick1 then
direction = 0
end
end)
while true do
frame.Rotation += direction
task.wait()
end
2 Likes
Thank you so much! I didn’t even see the other dudes response but I’m glad you spoke out on it. I’ll mark your response as the solution!