Make animations prompt/default to HTTPS

As a Roblox developer, it is currently too easy to mistakenly use HTTP instead of HTTPS inside an AnimationId property.
image

If Roblox is able to address this issue, it would improve my development experience, and the development experience of many others, because this animation-not-replicating problem would occur way less frequently.

This literally took me days to figure out.

If you use this URL, it works fine:
https://www.roblox.com/asset/?id=5196973262
If you use this URL, it only replicates to the client:
http://www.roblox.com/asset/?id=5196973262

It’s a 1 character difference.

This might seem silly, but there’s a good chance that a lot of people have gone through something similar


Many of these posts remain unsolved

If there was a feature in studio that warns you when an Animation object gets assigned an HTTP instead of an HTTPS, that would be a life saver.

2 Likes

If you make it a habit to use the rbxassetid:// protocol, it makes it harder to fall into this pitfall, and it’s better practice than linking the roblox.com location of the asset file since the former is agnostic to where the asset is actually hosted.

https://developer.roblox.com/en-us/articles/Content

3 Likes

I usually do use rbxassetid://, I don’t know why I decided not to this time.
Why not just have it automatically default to that?

It actually does do that when you copy-paste link from the uploaded animation:

rbxassetid

Did you manually type the /asset/?id endpoint link? I don’t really understand where you are even copying that from.

1 Like

image
the default Roblox animate script

1 Like

Oh okay – I wouldn’t take the default animation script as best-practice, it’s really poorly written. I’m guessing no engineer has touched that in a while.

3 Likes