Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to make my old roblox force field script work? it doesent change color propoly

Asked by 6 years ago

this is my script:

wait ()
force = script.parent.Value
h = 0
a = true
while a == true do
    wait ()
    h = h+1
    if h == 360 then
        h = 0
    end
force.Color3 = Color3.fromHSV(h,100,100)
print (force.Color3)
end

and this is the ouptput

100, -9900, -9900
100, -9900, -69900
100, -9900, -129900
100, -9900, -189900
100, -9900, -249900
100, -9900, -309900
100, -9900, -369900
100, -9900, -429900
100, -9900, -489900
100, -9900, -549900
100, -9900, -609900
100, -9900, -669900
100, -9900, -729900
100, -9900, -789900
100, -9900, -849900
100, -9900, -909900
100, -9900, -969900
100, -9900, -1.0299e+06
100, -9900, -1.0899e+06
100, -9900, -1.1499e+06
100, -9900, -1.2099e+06
100, -9900, -1.2699e+06
100, -9900, -1.3299e+06
100, -9900, -1.3899e+06
100, -9900, -1.4499e+06
100, -9900, -1.5099e+06
100, -9900, -1.5699e+06
100, -9900, -1.6299e+06
100, -9900, -1.6899e+06
100, -9900, -1.7499e+06
100, -9900, -1.8099e+06
100, -9900, -1.8699e+06
100, -9900, -1.9299e+06
100, -9900, -1.9899e+06
100, -9900, -2.0499e+06
100, -9900, -2.1099e+06
100, -9900, -2.1699e+06
100, -9900, -2.2299e+06
100, -9900, -2.2899e+06
100, -9900, -2.3499e+06
100, -9900, -2.4099e+06
100, -9900, -2.4699e+06
100, -9900, -2.5299e+06
100, -9900, -2.5899e+06
100, -9900, -2.6499e+06
100, -9900, -2.7099e+06
100, -9900, -2.7699e+06
100, -9900, -2.8299e+06
100, -9900, -2.8899e+06
100, -9900, -2.9499e+06
100, -9900, -3.0099e+06
100, -9900, -3.0699e+06
100, -9900, -3.1299e+06
100, -9900, -3.1899e+06

1 answer

Log in to vote
0
Answered by 6 years ago

The numbers you're using for fromHSV are to big. It reads they must be between 0 to 1. Kinda weird tbh.

Ad

Answer this question