|
| 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 |
|
|
|
| 01 Mar 2015 10:46 AM |
| Ah, it seems your last thread didn't work well, so why not try it again? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 01 Mar 2015 11:23 AM |
| I tested it and it didn't work, it just prints 'bang". |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 01 Mar 2015 12:15 PM |
@prehistoricman
lol'ed
those four years of wumbology are really paying off |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 12:19 PM |
I will show you the error.
MouseButton1Down is not a valid member of PlayerMouse. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 01 Mar 2015 12:27 PM |
Eliru kaj ne revenu. Ni ne amu vi. |
|
|
| Report Abuse |
|
|