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: Invisibility Button

Previous Thread :: Next Thread 
Bugslack is not online. Bugslack
Joined: 19 Nov 2011
Total Posts: 22
26 Jan 2013 09:23 AM
So far I got this, but in the output it says I need an eof at line 31. I added parenthesis, still nothing. Here's my original:

function Click(mouse)
player = script.Parent.Parent.Parent.Parent
if player.Character ~= nil then
local char = player.Character
local c = player.Character:GetChildren()
for i =1,#c do
if c.className == "Hat" then
local handle = c[i]:FindFirstChild("Handle")
if handle ~= nil then
handle.Transparency = 1
end end
if c.className == "Part" then
c.Transparency = 1
if c.Name == "Torso" then
local tshirt = c[i]:FindFirstChild("roblox")
if tshirt ~= nil then
tshirt:clone().Parent = char
tshirt:remove()
end end
if c.Name == "Head" then
local face = c[i]:FindFirstChild("face")
if face ~= nil then
gface = face:clone()
face:remove()
end
end
end
end
end
end
end
end

script.Parent.MouseButton1Down:connect(Click)
Report Abuse
Bugslack is not online. Bugslack
Joined: 19 Nov 2011
Total Posts: 22
26 Jan 2013 09:24 AM
Note, not my entire script, but I've edited it a lot.
Report Abuse
Bugslack is not online. Bugslack
Joined: 19 Nov 2011
Total Posts: 22
26 Jan 2013 09:25 AM
...*entire implying: "fully mine"
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
26 Jan 2013 09:25 AM
eof = End Of Line

Must mean you have too many 'end's

~One must risk everything to find the truth. Even if the truth isn't what you want it to be, it is better than living a lie.~
Report Abuse
Bugslack is not online. Bugslack
Joined: 19 Nov 2011
Total Posts: 22
26 Jan 2013 09:28 AM
That's what was wrong with it?
Well, I'm not getting an output error anymore, but it's still not working.
Report Abuse
Bugslack is not online. Bugslack
Joined: 19 Nov 2011
Total Posts: 22
26 Jan 2013 09:31 AM
bump
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