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

Previous Thread :: Next Thread 
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
04 May 2014 06:08 PM
function onTouch(part)
game.workspace.killingthing.sharp.part1.Anchored = false

end

script.Parent.Touched:connect(onTouch)

Supposed to when the part let's call it button is pressed, then part1 is unanchored

game.workspace.killingthing.sharp -- this is needed because it's for locating
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
04 May 2014 06:10 PM
What? Supposed to what?
Report Abuse
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
04 May 2014 06:10 PM
When button (the part name) is pressed then part1 is unanchored
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
04 May 2014 06:19 PM
script.Parent.Touched:connect(function(part)
if part.Parent:findFirstChild("Humanoid") then
game.Workspace:findFirstChild("killingthing").sharp.part.Anchored = false
end
end)
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
04 May 2014 06:20 PM
part1* Fix it in the script.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
04 May 2014 06:51 PM
"game.Workspace:findFirstChild("killingthing")"

Why are you using FindFirstChild?
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