|
| 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 |
|
|
| 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 |
|
| |
| |