|
| 20 Dec 2016 12:46 AM |
So I have a Local Script that makes a button visible if you touch a local part and if you click the button to teleport back to a lobby the button turns invisible. The script to make it visible has a lot of things that it checks about the thing that touched it until it allows the button to turn visible (because there are a bunch of npc's that touch it and somehow the local script thinks that something touches it and makes the button appear). It is: "if hit.Parent.Parent ~= game.Players.LocalPlayer.Character then print("Player Did Not Touch!") return end" and "if button.Visible == true then print("Button Is Already Visible!") return end". If you touch the part to make the button visible, reset, and try to touch the part again, the local script thinks that your not a player and something other than a player (an npc) and doesn't allow the button to be visible. Can you please help me with this.
#code game.Workspace.Trash.WithSalt = true |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2016 12:59 AM |
(Now its easier to read)
So I have a Local Script that makes a button visible if you touch a local part and if you click the button to teleport back to a lobby the button turns invisible. The script to make it visible has a lot of things that it checks about the thing that touched it until it allows the button to turn visible (because there are a bunch of npc's that touch it and somehow the local script thinks that something touches it and makes the button appear). It is:
"if hit.Parent.Parent ~= game.Players.LocalPlayer.Character then print("Player Did Not Touch!") return end" and "if button.Visible == true then print("Button Is Already Visible!") return end".
If you touch the part to make the button visible, reset, and try to touch the part again, the local script thinks that your not a player and something other than a player (an npc) and doesn't allow the button to be visible. Can you please help me with this.
#code game.Workspace.Trash.WithSalt = true |
|
|
| Report Abuse |
|
|
Binaar
|
  |
| Joined: 15 Oct 2015 |
| Total Posts: 122 |
|
| |
|
|
| 20 Dec 2016 01:51 AM |
wot
#code game.Workspace.Trash.WithSalt = true |
|
|
| Report Abuse |
|
|