I tried to make a gui shake. For some reason it only goes to 1 position and stops. Anyone know what I did wrong?
local shaketime = 0
local shakeconditions = math.random(1,20)
local Mouse = Player:GetMouse()
local GUI = game.Players.LocalPlayer.PlayerGui.Test
Mouse.KeyDown:Connect(function(key)
if key == "e" then
repeat
wait(0.3)
GUI.Frame.Position = UDim2.new(0, shakeconditions, 0, shakeconditions)
shaketime+=1
wait()
until shaketime == 15
thanks in advance.
