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: why wont this work?

Previous Thread :: Next Thread 
EliteProCraft is not online. EliteProCraft
Joined: 05 Jun 2014
Total Posts: 1468
11 Aug 2017 09:56 AM
Tool = script.Parent

function fire(v)

Tool.Handle.Fire:Play()


"The LORD is my shepherd, I lack nothing." Psalm 23:1
Report Abuse
EliteProCraft is not online. EliteProCraft
Joined: 05 Jun 2014
Total Posts: 1468
11 Aug 2017 09:58 AM
bump


"The LORD is my shepherd, I lack nothing." Psalm 23:1
Report Abuse
Horrible_Pun is not online. Horrible_Pun
Joined: 13 May 2017
Total Posts: 5102
11 Aug 2017 09:59 AM
you havent called the function
Report Abuse
EliteProCraft is not online. EliteProCraft
Joined: 05 Jun 2014
Total Posts: 1468
11 Aug 2017 10:00 AM
how do i do that?


"The LORD is my shepherd, I lack nothing." Psalm 23:1
Report Abuse
Horrible_Pun is not online. Horrible_Pun
Joined: 13 May 2017
Total Posts: 5102
11 Aug 2017 10:01 AM
well when do you want to use the function?
Report Abuse
EliteProCraft is not online. EliteProCraft
Joined: 05 Jun 2014
Total Posts: 1468
11 Aug 2017 10:02 AM
when the player firesthe gun



"The LORD is my shepherd, I lack nothing." Psalm 23:1
Report Abuse
Horrible_Pun is not online. Horrible_Pun
Joined: 13 May 2017
Total Posts: 5102
11 Aug 2017 10:03 AM
"when the player firesthe gun"
so call the function when the player fires the gun, which im assuming is by clicking the screen
Report Abuse
LeafDoode is not online. LeafDoode
Joined: 29 May 2017
Total Posts: 3094
11 Aug 2017 10:11 AM
function lmao()
print("yay")
end


Tool.Activated:connect(lmao)
Report Abuse
EliteProCraft is not online. EliteProCraft
Joined: 05 Jun 2014
Total Posts: 1468
11 Aug 2017 10:14 AM
i did

script.Parent.Activated:connect(onActivated)


"The LORD is my shepherd, I lack nothing." Psalm 23:1
Report Abuse
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
11 Aug 2017 10:17 AM
you have the idea down

Tool = script.Parent

function fire()
Tool.Handle.Fire:Play()
end

Tool.Activated:connect(fire)
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