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: i need some help fixing this

Previous Thread :: Next Thread 
LOBOT44 is not online. LOBOT44
Joined: 03 Feb 2010
Total Posts: 23539
11 Jul 2012 02:44 PM
function Plates(part)

end
while true do --keeps it going
wait() -- Now it won't crash.
for i = 1, #c do
local c = script.Parent:GetChildren()
if (c[i].Name == "Plate") then
for i = 0, 1, 0.1 do
c.Transparency = [i]
c.CanCollide = [i]
wait(1) --waits
end --end
end --end
end --end
Report Abuse
LOBOT44 is not online. LOBOT44
Joined: 03 Feb 2010
Total Posts: 23539
11 Jul 2012 02:47 PM
anyone
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
11 Jul 2012 02:48 PM
You have to define c before using it.

while wait() do
local c = script.Parent:GetChildren()
for i = 1, #c do
if (c[i].Name == "Plate") then
for i = 0, 1, 0.1 do
c.Transparency = i
c.CanCollide = false
wait(1)
end
end
end
end
I don't see how you can make CanCollide a numerical value. Change it to true or keep it at false since i have no idea what you were wanting to do with that. And you were missing an end.
Report Abuse
LOBOT44 is not online. LOBOT44
Joined: 03 Feb 2010
Total Posts: 23539
11 Jul 2012 02:50 PM
function Plates(part)

end
while true do --keeps it going
wait() -- Now it won't crash.
local c = script.Parent:GetChildren()
for i = 1, #c do
if (c[i].Name == "Plate") then
for d = 0, 1, 0.1 do
c.Transparency = [d]
c.CanCollide = [d]
wait(1) --waits
end --end
end --end
end --end
--can i test?
Report Abuse
LOBOT44 is not online. LOBOT44
Joined: 03 Feb 2010
Total Posts: 23539
11 Jul 2012 02:50 PM
function Plates(part)

end
while true do --keeps it going
wait() -- Now it won't crash.
local c = script.Parent:GetChildren()
for i = 1, #c do
if (c[i].Name == "Plate") then
for d = 0, 1, 0.1 do
c.Transparency = [d]
c.CanCollide = [d]
wait(1) --waits
end --end
end --end
end --end
--can i test?
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
11 Jul 2012 02:54 PM
function Plates()
while wait() do
local c = script.Parent:GetChildren()
for i = 1, #c do
if (c[i].Name == "Plate") then
for j = 0, 1, 0.1 do
c.Transparency = j
c.CanCollide = false
wait(1)
end
end
end
end
end
Report Abuse
LOBOT44 is not online. LOBOT44
Joined: 03 Feb 2010
Total Posts: 23539
11 Jul 2012 02:56 PM
dont work
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
11 Jul 2012 02:57 PM
Have you called the function as Plates() anywhere in your script?
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