sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
|
| 20 Oct 2014 12:25 PM |
Here is a brick I want, I will try to show it in LUA
OnPlayerTouch wait (60) kick Player that touched the part End |
|
|
| Report Abuse |
|
|
| |
|
sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
|
| 20 Oct 2014 12:29 PM |
| Lua, you know... The scripting language that is used in ROBLOX... |
|
|
| Report Abuse |
|
|
UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
|
| 20 Oct 2014 12:37 PM |
function onTouched(hit) if game.Players:GetPlayerFromCharacter(hit.Parent)then game.Players:GetPlayerFromCharacter(hit.Parent):Kick() end end script.Parent.Touched:connect(onTouched)
--Put that inside the "Kick Block" |
|
|
| Report Abuse |
|
|
sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
| |
|
sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
|
| 20 Oct 2014 12:53 PM |
It doesnt work.
It kicks them straight away. |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2014 12:54 PM |
function onTouched(hit) wait(60) if game.Players:GetPlayerFromCharacter(hit.Parent)then game.Players:GetPlayerFromCharacter(hit.Parent):Kick() end end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
sarim786
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 206 |
|
|
| 20 Oct 2014 01:01 PM |
| Thx but i already figured it out |
|
|
| Report Abuse |
|
|