Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

"Scale cannot be assigned to"?

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

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

1 comment

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.