I dont get why this is happening. I am using a remote event. Here is my code.
local event = game.ReplicatedStorage.RedTower
local frame = script.Parent.Parent.Waiting.Frame
local udim = UDim2.new(15,16,61,72)
event.OnClientEvent:Connect(function()
frame:TweenPosition(udim,2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,-1,true,0)
end)
a hint, you could decrease the size of the parameters with this:
local event = game.ReplicatedStorage.RedTower
local frame = script.Parent.Parent.Waiting.Frame
local udim = UDim2.new(15, 16, 62, 72)
event.OnClientEvent:Connect(function()
print("Event is fired") -- To know when the event is fired, you can delete this when you want
frame:TweenPosition(udim, "Out", "Linear", 2, true)
end)
Using “Out” or “Linear” will have the same result, but will facilitate reading.