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 » Scripting Helpers
Home Search
 

Re: What's wrong with this?

Previous Thread :: Next Thread 
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Dec 2011 03:22 PM
statistics.Text = "Created a part at coordinates "..m.Hit.p

Statistics is a TextLabel. I don't see any problem with it. Help, please?
Report Abuse
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
24 Dec 2011 03:24 PM
What's m?
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Dec 2011 03:24 PM
m is mouse, sorry.
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
24 Dec 2011 03:24 PM
i would assume 'm' is the mouse.

~I've been to nil and back.
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
24 Dec 2011 03:26 PM
lateTost.... anyways... i see no reason why that wouldn't work :\

~I've been to nil and back.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Dec 2011 03:28 PM
Neither do I!

The output says..

/Users/MyName/Documents/Roblox/plugins/Build/Build.lua:247: attempt to concatenate a userdata value
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
24 Dec 2011 03:42 PM
try that?

statistics.Text = "Created a part at coordinates "..m.Hit.p.x","....m.Hit.p.y..","....m.Hit.p.z

~I've been to nil and back.
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
24 Dec 2011 03:42 PM
^massive failure XD

statistics.Text = "Created a part at coordinates "..m.Hit.p.x..","..m.Hit.p.y..","..m.Hit.p.z

~I've been to nil and back.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Dec 2011 03:44 PM
The dotting was off, but the end result worked. Thank you.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Dec 2011 03:45 PM
How do you round the number? Because it ends up being a huge number..
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
24 Dec 2011 03:49 PM
statistics.Text = "Created a part at coordinates "..math.floor(m.Hit.p.x)..","..math.floor(m.Hit.p.y)..","..math.floor(m.Hit.p.z)

~I've been to nil and back.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Dec 2011 05:15 PM
Thank you.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Dec 2011 05:20 PM
Wait, can you round it to the 10ths place or something? Rather than just the integer.
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
24 Dec 2011 05:21 PM
Round to tenths place:

x = 1.24
math.floor(x * 10)/10
>1.2
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Dec 2011 05:24 PM
I'm terrible at mathmatic functions. Thanks >.< I don't know what I would do without this forum.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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