player=game.Players.LocalPlayer
mouse=player:GetMouse()
function KeyPressed(key)
if key=="w" then
while true do
script.Parent:TweenPosition(UDim2.new(1, -211 , 1, -212), "In", "Linear", 0.5, false, nil)<--- trying to repeat this
wait(0)
script.Parent:TweenPosition(UDim2.new(1, -210 , 1, -210), "In", "Linear", 0.5, false, nil)<--- trying to repeat this
end
end
end
mouse.KeyDown:connect(KeyPressed)
the arrows are pointing to the things that I'm trying to keep repeating
