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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: ontouched?

Previous Thread :: Next Thread 
Parametric is not online. Parametric
Joined: 22 Dec 2014
Total Posts: 351
27 Dec 2014 06:07 PM
how would i make it so that when a brick is touched(called bpack)

it changes the value of something?

here the path to the value

game.Workspace.Vanilla.Player.StarterGui.Survive.Backpack.BackpackType.Value
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
27 Dec 2014 06:08 PM
>game.Workspace.Vanilla.Player.StarterGui.Survive.Backpack.BackpackType.Value

Wha-
Uhm..

Please post the classnames of every object used.
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
27 Dec 2014 06:08 PM
Simple.

PATHTOBRICK.Touched:connect(function()
game.Workspace.Vanilla.Player.StarterGui.Survive.Backpack.BackpackType.Value = NEWVALUE
end)
Report Abuse
Parametric is not online. Parametric
Joined: 22 Dec 2014
Total Posts: 351
27 Dec 2014 06:13 PM
fire, that doesn't work, I tried that lol

and Trioxide,

game.Workspace.Vanilla.Player.StarterGui.Survive.Backpack.BackpackType.Value


Vanilla - Configuration
Player - Configuration
StarterGui - Configuration
Survive - Configuration
Backpack - Configuration
BackpackType - IntValue
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
27 Dec 2014 06:15 PM
According to your description of the situation and given information, there is no reason why my code shouldn't work. What happens?
Report Abuse
Parametric is not online. Parametric
Joined: 22 Dec 2014
Total Posts: 351
27 Dec 2014 06:15 PM
It just doesn't change the value of BackpackType
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
27 Dec 2014 06:17 PM
I thought you royally messed up the path + Fireheart's script should work.
Report Abuse
Parametric is not online. Parametric
Joined: 22 Dec 2014
Total Posts: 351
27 Dec 2014 06:37 PM
Ah, it does, but when the game starts, not when it's touched
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
27 Dec 2014 07:01 PM
PATHTOBRICK.Touched:connect(function(toucher)
if game.Players:GetPlayerFromCharacter(toucher.Parent) ~= nil then
game.Workspace.Vanilla.Player.StarterGui.Survive.Backpack.BackpackType.Value = NEWVALUE
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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