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

"Scale cannot be assigned to"?

Asked by 2 years ago

Heres my code, i get an error of "scale cannot be assigned to"

while true do
    for x = 0, (math.pi/3), 0.1 do
        script.Parent.Position.Y.Scale = -0.5 * math.sin(3 * x)
        wait(0.1)
    end
end

1 answer

Log in to vote
0
Answered by 2 years ago
while true do
    for x = 0, (math.pi/3), 0.1 do
        script.Parent.Position -= vector3.new(0,-0.5 * math.sin(3 * x),0)
        wait(0.1)
    end
end

try this

0
Yeah, but that would influence the x and z, i have another script which acts upon those. This script would constantly reset the x and z to (0, 0) TakeItToTheM 0 — 2y
Ad

Answer this question