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: Script not working think its within the player variable

Previous Thread :: Next Thread 
NikolaTeslaXI is not online. NikolaTeslaXI
Joined: 20 Feb 2012
Total Posts: 138
17 May 2016 04:02 PM
I'm pretty bad with player variables, and wanted to make a script that when a player is on a certain part, so "onTouched" the player would have to say a certain word, and a part's transparency will be set to 1, and will be walkable through.


players = game.Players.LocalPlayer
LetsWork = game.Workspace.LetsWork
Radio = game.Workspace.Radio

function onTouched ()
if players.Character.Text == "ICarly" then
Radio.Transparency = 1
Radio.CanCollide = false
else
Radio.Transparency = 0
Radio.CanCollide = true
end
end

script.Parent.onTouched:connect(onTouched)
Report Abuse
NikolaTeslaXI is not online. NikolaTeslaXI
Joined: 20 Feb 2012
Total Posts: 138
17 May 2016 04:03 PM
Already see some things I could have done wrong, although u guys can drop some help comments into the forum.
Report Abuse
Korniak is not online. Korniak
Joined: 09 Aug 2013
Total Posts: 3538
17 May 2016 04:09 PM
is text inside the player when the player is spawned


Korniak, the antler dude
Report Abuse
NikolaTeslaXI is not online. NikolaTeslaXI
Joined: 20 Feb 2012
Total Posts: 138
17 May 2016 04:10 PM
Hello again :). And nope, Should I use Chat or Bubble Chat to replace text?
Report Abuse
Korniak is not online. Korniak
Joined: 09 Aug 2013
Total Posts: 3538
17 May 2016 04:12 PM
What is the script supposed to do?


Korniak, the antler dude
Report Abuse
NikolaTeslaXI is not online. NikolaTeslaXI
Joined: 20 Feb 2012
Total Posts: 138
17 May 2016 04:15 PM
wanted to make a script that when a player is on a certain part, so I used the "onTouched"Function so that, the player would have to say a certain word, while its on that part, and then the wall infront of the player transparencies would be set to 1, and it will be throughougly walkable in.
Report Abuse
Korniak is not online. Korniak
Joined: 09 Aug 2013
Total Posts: 3538
17 May 2016 04:19 PM
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "iCarly" then
Radio.Transparency = 1
Radio.CanCollide = false
else
Radio.Transparency = 0
Radio.CanCollide = true
end
end)
end)



Korniak, the antler dude
Report Abuse
NikolaTeslaXI is not online. NikolaTeslaXI
Joined: 20 Feb 2012
Total Posts: 138
17 May 2016 04:23 PM
you make it look quite easy! haha.
Is there a way to use that script with the other function form, or do u suggest i switch my function form?
Report Abuse
Korniak is not online. Korniak
Joined: 09 Aug 2013
Total Posts: 3538
17 May 2016 04:25 PM
I see what type of game you're making.

You pretty much have to use this form, unless you're aiming for something unlike the other "Guess the _" type games.


Korniak, the antler dude
Report Abuse
NikolaTeslaXI is not online. NikolaTeslaXI
Joined: 20 Feb 2012
Total Posts: 138
17 May 2016 04:27 PM
alright, thanks!
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