are31
|
  |
| Joined: 09 Nov 2007 |
| Total Posts: 13767 |
|
|
| 23 Jul 2011 02:45 PM |
function match_name(name) for _,v in pairs(game.Players:GetChildren()) do player = string.match(v.Name, name) if player then player.Character.Head:Remove() end end end
match_name("Soul")
how do i execute this script? or run it |
|
|
| Report Abuse |
|
|
harpiesd
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 230 |
|
|
| 23 Jul 2011 02:49 PM |
you need a trigger line
like if you want that to happen everytime a player touches a brick then type this in a separate line:
game.Workspace.BRICK.Touched:connect(match_name)
there |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2011 03:00 PM |
@harp
1. Its a CONNECTION line. 2. He doesn't need a connection line.
Example:
function Add(num, num2) print(num+num2) end
Add(1, 2) >3 |
|
|
| Report Abuse |
|
|