the imagerectoffset goes from 0,0 to 231,0 to 462,0
the imagerectsize just stays the same
Try first setting visible to false and then playing it. I’m running out of ideas here. Or even running Heartbeat:Wait() after visible.
Could you explain a bit more? I didn’t really understand what you said.
heres my code for the input btw:
uis.InputBegan:Connect(function(key)
if key.KeyCode == left then
la.Image = lm
end
if key.KeyCode == right then
ra.Image = rm
end
if key.KeyCode == up then
ua.Image = um
end
if key.KeyCode == down then
da.Visible = false
dh.Visible = true
downhit:Play()
end
if key.KeyCode == cu then
end
if key.KeyCode == cr then
end
if key.KeyCode == cd then
end
if key.KeyCode == cl then
end
end)
uis.InputEnded:Connect(function(key)
if key.KeyCode == left then
la.Image = l
end
if key.KeyCode == right then
ra.Image = r
end
if key.KeyCode == up then
ua.Image = u
end
if key.KeyCode == down then
da.Visible = true
dh.Visible = false
downhit:Stop()
end
if key.KeyCode == cu then
end
if key.KeyCode == cr then
end
if key.KeyCode == cd then
end
if key.KeyCode == cl then
end
end)
Wait a moment.
Just figured it out.
By setting the da to be invisible, it also affects the children. In other words, da being invisible also makes dh invisible. Put them together into one container and it will work.
1 Like
It worked!!! Tysm for the help!
1 Like