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: need help with this script

Previous Thread :: Next Thread 
are31 is not online. 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 is not online. 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
boynedmaster is not online. boynedmaster
Joined: 28 Jun 2008
Total Posts: 9735
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
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