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
 

I have a exercise for you

Previous Thread :: Next Thread 
StickMasterNinja2 is not online. StickMasterNinja2
Joined: 18 May 2013
Total Posts: 1170
01 Mar 2015 10:46 AM
You are creating a gun, make the function do when you click with the mouse button 1 when the gun is equipped. Write the answer on "type here".

function fire()
bullet = Instance.new("Part", workspace)
bullet.TopSurface = "Smooth"
bullet.BottomSurface = "Smooth"
bullet.FormFactor = "Custom"
bullet.Size = Vector3.new(range, 0.2, 0.2)
bullet.BrickColor = BrickColor.new("Bright yellow")
bullet.Name = "Bullet"
wait(0.01)
bullet:remove()
end

"type here"
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
01 Mar 2015 10:46 AM
Ah, it seems your last thread didn't work well, so why not try it again?
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
01 Mar 2015 10:47 AM
local mouse = game.Players.LocalPlayer:GetMouse()

function fire()
bullet = Instance.new("Part", workspace)
bullet.TopSurface = "Smooth"
bullet.BottomSurface = "Smooth"
bullet.FormFactor = "Custom"
bullet.Size = Vector3.new(range, 0.2, 0.2)
bullet.BrickColor = BrickColor.new("Bright yellow")
bullet.Name = "Bullet"
wait(0.01)
bullet:remove()
end

mouse.Button1Down:connect(function()
while true do
fire()
end
end)
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
01 Mar 2015 10:48 AM
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
fire()
Report Abuse
StickMasterNinja2 is not online. StickMasterNinja2
Joined: 18 May 2013
Total Posts: 1170
01 Mar 2015 11:23 AM
I tested it and it didn't work, it just prints 'bang".
Report Abuse
StickMasterNinja2 is not online. StickMasterNinja2
Joined: 18 May 2013
Total Posts: 1170
01 Mar 2015 12:13 PM
I hate bumps.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
01 Mar 2015 12:14 PM
We hate you.
Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
01 Mar 2015 12:15 PM
i don't like exercises at all

nice way to lure scripters though

try and figure this out on your own qq


those four years of wumbology are really paying off
Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
01 Mar 2015 12:15 PM
@prehistoricman

lol'ed




those four years of wumbology are really paying off
Report Abuse
StickMasterNinja2 is not online. StickMasterNinja2
Joined: 18 May 2013
Total Posts: 1170
01 Mar 2015 12:19 PM
I will show you the error.

MouseButton1Down is not a valid member of PlayerMouse.
Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
01 Mar 2015 12:20 PM
stop trying nobody cares

you didn't even post the code of mousebutton1down



those four years of wumbology are really paying off
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
01 Mar 2015 12:27 PM
Eliru kaj ne revenu.
Ni ne amu vi.
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