|
| 03 Aug 2013 06:39 PM |
| A script when you walk on a brick it ff's you when you walk off it unff's you |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Aug 2013 06:41 PM |
Brick.Touched:connect(function(hit) if not hit or not hit.Parent then return end local user = game.Players:GetPlayerFromCharacter(hit.Parent) if not user or hit.Parent:FindFirstChild("ForceField") then return end Instance.new("ForceField", hit.Parent) end)
Brick.Untouched:connect(function(hit) if not hit or not hit.Parent then return end local user = game.Players:GetPlayerFromCharacter(hit.Parent) if not user or not hit.Parent:FindFirstChild("ForceField") then return end hit.Parent["Force Field"]:Destroy() end) |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2013 06:51 PM |
| cnt, i put a brick down opened script then pasted it, it didnt work -.- |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Aug 2013 06:53 PM |
http://wiki.roblox.com/index.php/TouchEnded_(Event)
TouchEnded, not Untouched |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2013 06:57 PM |
| what do you mean, can you post working one |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Aug 2013 06:58 PM |
"Brick.Untouched:" "Brick.TouchEnded:"
pbaogmafmaseigmkanfj |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2013 07:00 PM |
| PLEASE JUST POST THE WORKING SCRIPT! IM GETTING CONFUSED |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Aug 2013 07:00 PM |
Brick.Touched:connect(function(hit) if not hit or not hit.Parent then return end local user = game.Players:GetPlayerFromCharacter(hit.Parent) if not user or hit.Parent:FindFirstChild("ForceField") then return end Instance.new("ForceField", hit.Parent) end)
Brick.TouchEnded:connect(function(hit) if not hit or not hit.Parent then return end local user = game.Players:GetPlayerFromCharacter(hit.Parent) if not user or not hit.Parent:FindFirstChild("ForceField") then return end hit.Parent["Force Field"]:Destroy() end) |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
| |
|
Foged
|
  |
| Joined: 21 Jun 2008 |
| Total Posts: 307 |
|
|
| 03 Aug 2013 09:09 PM |
Go to Roblox Studio > Your place > Tools > Test > Play Solo
View > Output Window.
Paste output here. |
|
|
| Report Abuse |
|
|
im2awsm
|
  |
| Joined: 25 Aug 2010 |
| Total Posts: 2295 |
|
|
| 03 Aug 2013 09:17 PM |
| It would be preferabble if you knew something about scripting before coming here, it seems like you don't know much about it, not even knowing what the Output is. |
|
|
| Report Abuse |
|
|