I don’t know if I’ve posted this into the right topic, correct me if it’s the wrong topic.
I am having a weird issue where a piece of code causes an error to a significant amount of mobile users but not to other devices.
local RainbowColor = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromHSV(1, 1, 1)),
ColorSequenceKeypoint.new(0.2, Color3.fromHSV(5 / 6, 1, 1)),
ColorSequenceKeypoint.new(0.4, Color3.fromHSV(2 / 3, 1, 1)),
ColorSequenceKeypoint.new(0.6, Color3.fromHSV(0.5, 1, 1)),
ColorSequenceKeypoint.new(0.8, Color3.fromHSV(1 / 3, 1, 1)),
ColorSequenceKeypoint.new(1, Color3.fromHSV(1 / 6, 1, 1))
})
It states the color value is out of range, but this error only occurs to certain phone users.
On my own iPhone SE 2020 I can play just fine, but quite some other users can’t even play the game because the initialisation of the modulescripts keeps failing due to this error.
My hypothesis states that Color3.fromHSV(1, 1, 1)
might be converted into a Color3
value that’s slightly higher than (1, 0, 0)
, like (1.0001, 0, 0)
but I’m not entirely sure about that.
I’ve questioned some people who experienced this issue if they were an Android user, and yes, they were all Android users. Plus our concurrent users for phone and tablet have cut in half. So I think this only happens to the Android version of Roblox.
I’ve decided to use pcall
on this function as a temporary solution, just so people can actually play the game.