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: Kill on click error

Previous Thread :: Next Thread 
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
13 Jan 2013 12:16 PM
10:14:51.801 - Workspace.Baseplate.Script:5: unexpected symbol near '='
hmmm
I think that's a problem...
--this may not work, considering my dog messed up the whole thing(deleted)--
Parent=Baseplate game.Workspace.Baseplate=Parent
function onClickdetector(Click)
function onTouch(Click)
if=function = false
then=goto line(4)
if=Parent = Clicked
then=game.Workspace.Player.Torso = Remove(1)
if=line(8) = false
then=game.Workspace.Model.Torso = Remove(1)
if=line(10) = false
then=Script.Parent.Parent.Message.Text = "Error with Baseplate click."
wait(5)
then
Script.Parent.Parent.Message.Text = " "
loop(999999999999999999999999999999999999999999999999999999999999999999999999)
end
blankline(18/19)
--there shouldn't be any errors, but if there is, pm joe11joe99--
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
13 Jan 2013 12:17 PM
I'm just a beginner, remember that.
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
13 Jan 2013 12:19 PM
you should probably start on something easier. your script is littered with errors :\
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
13 Jan 2013 12:22 PM
thx :)

I don't understand a thing :)
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
13 Jan 2013 12:24 PM
I watched a video and then I thought I knew what it ment so I just put down a bunch of functions and properties and stuff :/
Report Abuse
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
13 Jan 2013 12:31 PM
I had a laugh at the very first four lines. You cannot have "function =" anywhere in any script because that's an automatic error.
Try putting a ClickDetector in the brick and then try this:

script.Parent.ClickDetector.MouseClick:connect(function(playerwhoclicked)
playerwhoclicked.Character.Humanoid.Health = 0
end)

You made it way longer than needed.
._.
Report Abuse
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
13 Jan 2013 12:37 PM
Oh and please leave the scripting like this to 11 year olds, like me when I started scripting. Best way to learn is off of other people! Try looking for the free model of what you want, and search the scripts inside it! Reading them is very helpful, and thats how I became as good as I am today!
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
13 Jan 2013 01:09 PM
"Oh and please leave the scripting like this to 11 year olds, like me when I started scripting. "

dats very discouraging, yo
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
13 Jan 2013 02:00 PM
I am 11...
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
13 Jan 2013 02:00 PM
lolnoob
im just a beginner
XD
Report Abuse
jelly134 is not online. jelly134
Joined: 25 Aug 2008
Total Posts: 1137
13 Jan 2013 02:20 PM
A 5 year old could learn Scripting if they were intelligent. It doesn't matter about age, it matters about how you go about learning it, and learning it in a way that is suitable for your age.
Report Abuse
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
13 Jan 2013 03:26 PM
5 year-olds don't have the attention span or patience to learn scripting. I:

Again, best way is reading off of others. It works man, you just gotta be interested...
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