|
| 04 Sep 2016 10:44 AM |
I posted a question about a script not working earlier, and got some answers. I didn't completely understand the responses since I'm a new scripter. Bassically the script is supposed to change a text label to say "You are above the point" when your Y axis is below 1k studs, and your X and Z axis are between 0 and 500 studs. I put '(line)' where a line would have been, since the code isn't pasting over correctly, and at another point I had to put what a line of the code did in brackets because roblox thought the code wasn't appropriate. It's probably going to be really hard to read this, but if someone can help I would really appreciate it. Here's the code:
AtX = false (line) AtY = false (line) AtZ = false
script.Parent.Parent.Parent.Parent.Character.Torso.Changed:connect(function() if(script.Parent.Parent.Parent.Parent.Character.Torso.Position.X < 500) and (script.Parent.Parent.Parent.Parent.Character.Torso.Position.X > 0) then AtX = true elseif (script.Parent.Parent.Parent.Parent.Character.Torso.Position.Y < 1000) and (script.Parent.Parent.Parent.Parent.Character.Torso.Position.Y > 0) then AtY = true elseif (script.Parent.Parent.Parent.Parent.Character.Torso.Position.Z < 500) and (script.Parent.Parent.Parent.Parent.Character.Torso.Position.Z > 0) then (line) [this changed the t e x t box] "at the island" (line) else end |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2016 11:18 AM |
"script.Parent.Parent.Parent.Parent.Character.Torso.Changed:connect"
The problem lies here "Torso.Changed", moving on to the script your using the Torso's positioning.
Try use 'Torso.Position.Changed' |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2016 11:19 AM |
| Cos the "Torso.Changed" didn't make any sense at all. |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Sep 2016 11:26 AM |
because you have more parents than you can count
if this is a local script you can literally do
game.Players.LocalPlayer
|
|
|
| Report Abuse |
|
|
| |
|