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: Once again, I need help...

Previous Thread :: Next Thread 
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
23 Mar 2015 03:32 PM
This script wont get the change..

local label = script.Parent

repeat wait() until script.Parent.Parent.Parent.Parent.ClassName == "Player"

local player = script.Parent.Parent.Parent.Parent

repeat wait() until player.Character and player.Character.Torso


local torso = player.Character.Torso

player.Character.Torso.Changed:connect(function ()
local x = torso.Position.X
local y = torso.Position.Y
local z = torso.Position.Z

script.Parent.Text = "X: " .. math.ceil(x) .. " Y: " .. math.ceil(y) .. " Z: " .. math.ceil(z)
end)
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
23 Mar 2015 04:05 PM
" and player.Character.Torso"
Remove that, it does nothing. It won't stop your code from erring (That IS the "ing" of error, right?).

"local torso = player.Character.Torso
player.Character.Torso.Changed"
If you are going to make a variable, use it.

The changed event doesn't fire when internal stuff happens, such as the character moving, something moving/accelerating due to gravity, a part rotating/accelerating due to contact, the camera's orientation changing, et cetera. The only exception is when a script changes one of these directly.
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
25 Mar 2015 09:51 AM
So what should I do?
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
25 Mar 2015 10:00 AM
I figured it out.
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