|
| 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
|
  |
| 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 |
|
|
|
| 27 Dec 2014 06:08 PM |
Simple.
PATHTOBRICK.Touched:connect(function() game.Workspace.Vanilla.Player.StarterGui.Survive.Backpack.BackpackType.Value = NEWVALUE end) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 27 Dec 2014 06:15 PM |
| It just doesn't change the value of BackpackType |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 27 Dec 2014 06:37 PM |
| Ah, it does, but when the game starts, not when it's touched |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|