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: Local Script Issue

Previous Thread :: Next Thread 
SaltyTrashOfBelAir is not online. SaltyTrashOfBelAir
Joined: 17 Oct 2015
Total Posts: 369
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
SaltyTrashOfBelAir is not online. SaltyTrashOfBelAir
Joined: 17 Oct 2015
Total Posts: 369
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 is not online. Binaar
Joined: 15 Oct 2015
Total Posts: 122
20 Dec 2016 01:50 AM
tl;dr
Report Abuse
SaltyTrashOfBelAir is not online. SaltyTrashOfBelAir
Joined: 17 Oct 2015
Total Posts: 369
20 Dec 2016 01:51 AM
wot

#code game.Workspace.Trash.WithSalt = true
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