Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Dual Pistol Scripting?

Asked by
KAAK82 16
10 years ago

If I was making a Dual Pistol how would I script them so that a Bullet would come out from the left if u left click or from right if u right click... thnx...

1 answer

Log in to vote
4
Answered by
bloxxyz 274 Moderation Voter
10 years ago

Well, you would have to create 2 functions. MouseButton1Click() and MouseButton2Click() and have each function inside of it individually shoot a bullet upon click. To shoot bullets I would recommend raycasting, but it depends on your gun type so I can't be specific for you.

0
I knew it... hmmm... not as hard as I though it would be... I'll make an attempt to make a realistic gun... and not Raycast... I'll make the Gun tommorow maybe... If only I was an Advanced scripter, I'd make a skill thing for my Game and if Pistol Skill has reached 100 then u could use 2 pistols but a not advanced :( but thnx anyway for saying :D cos lol I forgot about ButtonClick functions... KAAK82 16 — 10y
Ad

Answer this question