Content

From Goodblox Wiki
Revision as of 08:09, 20 September 2021 by Xyrafrost (talk | contribs) (created the page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Content is a data type that is closely related to a string. In fact, it is a string. Usually, a content data type is a link to a file. On some objects, setting the property that uses this value type is forbidden.

Diagram showing how links get passed.


On GoodBlox, the ContentFilter service causes any links to files not on one of the GoodBlox/Roblox sites or on the trusted sites to not load. The picture on the right shows how the filter works.



How content is formatted

Content can be formatted in many ways. All of which either point to an online file or a file saved to the client's computer.


rbxasset://directoryFile/file.type

This redirects to the content folder of the client's computer.

Here's a list of directoryFiles:

rbxasset://fonts/
rbxasset://materials/
rbxasset://music/
rbxasset://particles/
rbxasset://sky/
rbxasset://sounds/
rbxasset://textures/

For example, this would be the image of the default face on characters:

rbxasset://textures/face.png


http:// and https://

This points to the exact location of something on the internet. It only works on goodblox-approved sites and will raise an error if used otherwise.

For example, here is an example of finding an asset from Roblox:

https://www.roblox.com/asset/?id=12223885

And an asset from GoodBlox:

http://a1.goodblox.xyz/?id=14158