ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:13 PM |
I am in play solo, it is more than one line and I am confidante it works, I have hit pause then play, but it still does not work. The script is:
local brick = Workspace.Brick function onTouch(part) brick.Transparency = 1 wait(1) brick.Transparency = 0 end brick.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 20 Jul 2012 01:15 PM |
| You need to touch the brick for it to work. |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
| |
|
|
| 20 Jul 2012 01:17 PM |
| Try going to tools, then play solo. |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
| |
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
| |
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
| |
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:20 PM |
@liavt I am completely new other words wtf is that. |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 20 Jul 2012 01:22 PM |
Go to View>Output
Then test it.
The thing at the bottom of the screen is called the 'Output'
It tells you errors with scripts and scripts that run.
http://wiki.roblox.com/index.php/Output |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:23 PM |
@Liavt It does not say anything |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2012 01:23 PM |
| Cut the script (item) and paste it back into workspace |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 20 Jul 2012 01:24 PM |
Is it a localscript?
If no, remove the local before brick. |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:26 PM |
| That did not work @thedeath |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:28 PM |
@Liav It is a local script, I was using script, I switched it to local but it still did not work. This is just getting frustrating. |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 20 Jul 2012 01:29 PM |
| Remove the local before 'brick'. |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 20 Jul 2012 01:30 PM |
brick = Workspace.Brick
function onTouch(part) brick.Transparency = 1 wait(1) brick.Transparency = 0 end
brick.Touched:connect(onTouch)
And put it in a regular script. |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:34 PM |
@Liav Nothing happened
I have the brick there, I inserted a script into the brick, in the script I put:
brick = Workspace.Brick
function onTouch(part) brick.Transparency = 1 wait(1) brick.Transparency = 0 end
brick.Touched:connect(onTouch)
Is there anything wrong with that? |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 20 Jul 2012 01:37 PM |
brick = script.Parent
function onTouch() brick.Transparency = 1 wait(1) brick.Transparency = 0 end
brick.Touched:connect(onTouch)
Try this. |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:39 PM |
@Liav Nothing, I have the right script, it just wont work once I put it in a brick. Im about done with it. |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2012 01:46 PM |
On the connection line
script.Parent.Touched:connect(OnTouched) |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
| |
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 20 Jul 2012 01:51 PM |
| Is the brick CanCollideable or Archivable? |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:53 PM |
in properties there is archivable [x] disabled [ ] |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 20 Jul 2012 01:56 PM |
| No, the brick I was talking about. |
|
|
| Report Abuse |
|
|
ShadowSTR
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 24465 |
|
|
| 20 Jul 2012 01:57 PM |
| I have no idea wtf you are talking about. |
|
|
| Report Abuse |
|
|