menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Y cannot be assigned to Error.
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Y cannot be assigned to Error.
Syntaxs
Join Date: 2013-05-27
Post Count: 988
#139393078
Sunday, July 06, 2014 5:00 AM GMT
How do I fix this? I made a script and it error'ed on this. if block.Position.Y >= 7.8 then block.Position.Y = 7.8 end And I got "Y cannot be assigned to" How do I fix or get around this?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Lacryma
Join Date: 2010-02-15
Post Count: 22696
#139393199
Sunday, July 06, 2014 5:01 AM GMT
if block.Position.Y >= 7.8 then block.Position = Vector3.new(block.Position.X, 7.8, block.Position.Z) end and this only runs once so beware
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Syntaxs
Join Date: 2013-05-27
Post Count: 988
#139393326
Sunday, July 06, 2014 5:03 AM GMT
I had it in a for statemen
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Lacryma
Join Date: 2010-02-15
Post Count: 22696
#139393446
Sunday, July 06, 2014 5:05 AM GMT
oh ok
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Syntaxs
Join Date: 2013-05-27
Post Count: 988
#139393522
Sunday, July 06, 2014 5:06 AM GMT
thanks,
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right