I need help with my system!

Hello everyone, I’m a beginner developer. I want to make a pop the lock system in Roblox, but I don’t know how to do it. I’ve watched a lot of videos about this system, but I haven’t found anything. I’m asking for help, advice, or a link to a video. Here’s what I have so far:

local ts = game:GetService("TweenService")
local GUI = script.Parent
local ImageRed = GUI.ImageRed
local rot = 0

while true do
	local tween = ts:Create(ImageRed, TweenInfo.new(5, Enum.EasingStyle.Linear), {Rotation = ImageRed.Rotation + 360})
	tween:Play()
	tween.Completed:Wait()
end
1 Like

i think i can help. The GUI script is local, yes?

1 Like

yes, the gui script is local!!!

sorry, i was out eating. try using Userinputservice to detect when the player clicks and stop the tween

1 Like