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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Simple Script, Whats The Error

Previous Thread :: Next Thread 
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 06:30 PM
local ting = 0
function Action(hit)

if hit == nil or hit.Parent == nil then return end
if ting == 1 then return end
ting = 1
if hit.Parent.Name == "Code1256" then --This Is Right
print("Success")
ting = 0
else
print("Error")
ting = 0
end
ting = 0
end

script.Parent.Touched:connect(Action)

^It Is Not A LocalScripts, The Output:

Expected String, Got UserData Line 6
Code1256 got, expected object
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 06:40 PM
Edit:

Expected String, Got UserData Line 6
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
05 Sep 2012 07:04 PM
Lua's being a real screw-up lately.

~Don't get mad as to what I said, get mad at me as a person
Report Abuse
Destroshun is not online. Destroshun
Joined: 12 Aug 2012
Total Posts: 764
05 Sep 2012 07:10 PM
Definitely, cntkillme he types like that. I won the war, your main got banned, I'm still rolling :P
Report Abuse
Partials is not online. Partials
Joined: 19 Jul 2012
Total Posts: 47
05 Sep 2012 07:16 PM
People Who Talk Like This Sound Like They're On A Bumpy Road Or Something Of The Sorts.
Report Abuse
BobbyisLOLZ is not online. BobbyisLOLZ
Joined: 17 Aug 2010
Total Posts: 8045
05 Sep 2012 07:38 PM
People Who Talk Like This Annoy Me, So Much.
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 08:16 PM
Destroshun

I am his cousin, and i type like that because my school make me for some reason, even though it's mad grammar, but I'm used to it..
Report Abuse
techn0guyx is not online. techn0guyx
Joined: 24 May 2009
Total Posts: 718
05 Sep 2012 08:20 PM
>my school make me for some reason

Wow, that's just awful, if it's even true.

The script looks like it should work to me. :/
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 08:24 PM
I know, roblox was being weird, it started working after i restarted my computer.
And yes, it's confusing to capitalize the letter of the word for every word.
But my school is a private school, nothing i can do about it, really.
Report Abuse
Luc599345 is not online. Luc599345
Joined: 25 Jul 2008
Total Posts: 1169
05 Sep 2012 08:30 PM
@crusada

>But my school is a private school,

what what what.

A private school that teaches you to capitalize every first letter of every words...
Seems legit ._.
Report Abuse
Osyris is not online. Osyris
Joined: 27 Oct 2007
Total Posts: 4321
05 Sep 2012 08:32 PM
huehuehue
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 08:36 PM
lol its not a religious private school, its like a private one to learn the things but in spanish, its hard to explain
Report Abuse
Koolguy520 is not online. Koolguy520
Joined: 18 Aug 2008
Total Posts: 122
05 Sep 2012 10:14 PM
Is it that LUA is being screwy? 'Cause some of my scripts have been messing up too, like I made an eat script and the ":Destroy()" function crashes the game.
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
05 Sep 2012 10:18 PM
lol maybe try :remove()

adn yea, roblox is messing everything up
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