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: Help

Previous Thread :: Next Thread 
Shomex is not online. Shomex
Joined: 04 Sep 2012
Total Posts: 690
03 Apr 2013 05:43 PM
function onTouched(Hit)
if script.Parent:FindsFirstChild then
Workspace.Part.Transparency=1
Workspace.Part.CanCollide=false
wait(5)
end
end
print 'Worked'
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
03 Apr 2013 05:46 PM
Connection line?

FindFirstChild*
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
03 Apr 2013 05:54 PM
t = Workspace["Part"]
script.Parent.Touched:connect(function(p)
if p.Parent:FindFirstChild("Humanoid") then
t.Transparency = 1
t.CanCollide = false
wait()
print("Worked")
end
end

~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
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 05:55 PM
--Made By Darkggod

p = game.Workspace:findFirstChild("") --Put the name of the part in workspace in the quotations.

delay = 10 --Default time I use change it to the amount of time its gonna wait before doing the next thing you want..

script.Parent.Touched:connect(function()
if script.Parent:findFirstChild("") then --Dunno what you want to check for so yeah.
p.Transparency = 1
p.CanCollide = false
wait(delay)
end
print("Worked")
end)

~LS Emperor Darkggod~
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 05:56 PM
@Ver you forgot you're closing ) on the last end and other small errors.

~LS Emperor Darkggod~
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
03 Apr 2013 05:57 PM
Dark, my mistake.
But I see no other errors in my code.
It's simple you know .-.

~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
Shomex is not online. Shomex
Joined: 04 Sep 2012
Total Posts: 690
03 Apr 2013 06:05 PM
--Shomex
g=Workspace.Baseplate.
p=FindFirstChild
w=wait
p=print

function onTouched(hit)

end

if script.Parent.p then
gTransparency=1
gCanCollide=false
wait(5)
gTransparecny=0
gCanCollide=true
end
script.Parenct.Touched:connect(onTouched)

output:
Error in script: unexpected symbol near '='
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 06:07 PM
-- Made By Darkggod

g = game.Workspace:findFirstChild("Baseplate")
delay = 5

script.Parent.Touched:connect(function()

g.Transparency = 1
g.CanCollide = false

wait(delay)

g.Transparency = 0
g.CanCollide = true
end)

~LS Emperor Darkggod~
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 06:08 PM
Oh That script is for sho, I fixed it up.


~LS Emperor Darkggod~
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