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: What's wrong with this script?

Previous Thread :: Next Thread 
Flippenout is not online. Flippenout
Joined: 01 Apr 2013
Total Posts: 54
29 May 2013 11:37 AM
function onTouch(part)
game.Workspace.Player1.Head:Remove()
end

script.Parent.Touched:connect(onTouch)


I'm a beginner at scripting.
Report Abuse
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
29 May 2013 11:38 AM
Test it...
Report Abuse
Flippenout is not online. Flippenout
Joined: 01 Apr 2013
Total Posts: 54
29 May 2013 11:39 AM
I did...
Report Abuse
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
29 May 2013 11:40 AM
What did it say in the output?
Report Abuse
Flippenout is not online. Flippenout
Joined: 01 Apr 2013
Total Posts: 54
29 May 2013 11:41 AM
I kept checking to see, but it didn't say anything... :/
One sec, I'll try again.
Report Abuse
JoeLuke001 is not online. JoeLuke001
Joined: 04 Oct 2008
Total Posts: 5861
29 May 2013 11:41 AM
That should work perfectly.
Report Abuse
Flippenout is not online. Flippenout
Joined: 01 Apr 2013
Total Posts: 54
29 May 2013 11:43 AM
Oh wait it does say something.

It says: Head is not a valid member of model.
Report Abuse
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
29 May 2013 11:44 AM
Is the script inside a Part?
Report Abuse
JoeLuke001 is not online. JoeLuke001
Joined: 04 Oct 2008
Total Posts: 5861
29 May 2013 11:46 AM
Are you testing it in studio mode, or online mode? In online, the player isn't called player1.
Report Abuse
Flippenout is not online. Flippenout
Joined: 01 Apr 2013
Total Posts: 54
29 May 2013 11:52 AM
It was in a part but now it's under Workspace and I'm in studio mode.
Report Abuse
JoeLuke001 is not online. JoeLuke001
Joined: 04 Oct 2008
Total Posts: 5861
29 May 2013 11:53 AM
Ok, if it's in workspace, it should work.
Report Abuse
Flippenout is not online. Flippenout
Joined: 01 Apr 2013
Total Posts: 54
29 May 2013 11:54 AM
Nope, it doesn't. Now it's saying: Touched is an invalid member of workspace.
Report Abuse
Looah is not online. Looah
Joined: 22 Feb 2013
Total Posts: 922
29 May 2013 11:55 AM
PUT THE SCRIPT IN A PART
GEEZ.
btw, try going efficient.


0A+0B=15
Report Abuse
Flippenout is not online. Flippenout
Joined: 01 Apr 2013
Total Posts: 54
29 May 2013 12:08 PM
I did. It still doesn't work. xD
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