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 » Scripters
Home Search
 

Re: basic script, need help

Previous Thread :: Next Thread 
InTheMindOfForrest is not online. InTheMindOfForrest
Joined: 15 Oct 2013
Total Posts: 6
11 Jun 2015 06:53 PM
no errors and it is in a local script in a tool with a handle in the tool.



local Tool = script.Parent

function equip()

script.Parent.Handle.CanCollide = true
end


Tool.Equipped:connect(equip)
Report Abuse
infortality is not online. infortality
Joined: 28 May 2012
Total Posts: 942
11 Jun 2015 06:56 PM
Why don't you just keep CanCollide on so you don't have to set it in the script?
Report Abuse
InTheMindOfForrest is not online. InTheMindOfForrest
Joined: 15 Oct 2013
Total Posts: 6
11 Jun 2015 06:58 PM
What do you mean? if you mean by why not leave the brick inside cancollide true, it makes the cancollide false when I equip it, I don't want that.
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
11 Jun 2015 06:59 PM
No it doesn't...
Or does it...

local tool = script.Parent

tool.Equipped:connect(function()
tool.Handle.CanCollide = true
end)
Report Abuse
InTheMindOfForrest is not online. InTheMindOfForrest
Joined: 15 Oct 2013
Total Posts: 6
11 Jun 2015 07:02 PM
nvm with this forum, I just set it to CanCollide when I was in test mode and I realized that it didn't do what I needed it to do.but I have one question, is there a way to disable the rag doll? like make it so the character can't fall over?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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