generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Script not working

Previous Thread :: Next Thread 
robloxandtyler is not online. robloxandtyler
Joined: 16 Feb 2013
Total Posts: 3456
09 Aug 2017 01:48 PM
p.Position = p.Position % Vector3.new(4,4,4) - Vector3.new(p.Position)

I'm trying to modulus the position of p, and subtract that from the original position, rounding the objects position.


error I'm getting:
13:45:28.657 - Players.robloxandtyler.Backpack.follow.placement:13: attempt to perform arithmetic on field 'Position' (a userdata value)
13:45:28.658 - Stack Begin
13:45:28.659 - Script 'Players.robloxandtyler.Backpack.follow.placement', Line 13 - global onButton1Down
13:45:28.660 - Script 'Players.robloxandtyler.Backpack.follow.placement', Line 17
13:45:28.660 - Stack End
Report Abuse
dingus720 is not online. dingus720
Joined: 04 May 2013
Total Posts: 112
09 Aug 2017 02:20 PM
seems u got a problem


saturdays are for the boys
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
09 Aug 2017 02:25 PM
Like this?

goo.gl/BuFAwH
Report Abuse
robloxandtyler is not online. robloxandtyler
Joined: 16 Feb 2013
Total Posts: 3456
09 Aug 2017 03:16 PM
bump


...
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
09 Aug 2017 03:17 PM
So that's not what you were looking for?... or
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image