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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Kick block

Previous Thread :: Next Thread 
sarim786 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
20 Oct 2014 12:28 PM
What is LUA?
Report Abuse
sarim786 is not online. 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 is not online. 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 is not online. sarim786
Joined: 02 Oct 2011
Total Posts: 206
20 Oct 2014 12:39 PM
Thanks
Report Abuse
sarim786 is not online. sarim786
Joined: 02 Oct 2011
Total Posts: 206
20 Oct 2014 12:53 PM
It doesnt work.

It kicks them straight away.
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
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 is not online. sarim786
Joined: 02 Oct 2011
Total Posts: 206
20 Oct 2014 01:01 PM
Thx but i already figured it out
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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