weradealer.blogg.se

Roblox gun script
Roblox gun script













roblox gun script

Set this to 0 to always play it at the same pitch. This prevents players from firing a single shot from multiple different weapons in quick succession.Īmount that the pitch can vary for the Fired sound of the weapon. Length of time after equipping the weapon before the player can shoot. Waiting time after shooting/clicking before recoil is added to camera. Weapon's current recoil will never exceed this value.ĭecay multiplier for recoil essentially the rate at which recoil diminishes after shooting. Name of the aim zooming animation track in Assets/ Animations of the system folder. Name of the aim animation track in Assets/ Animations of the system folder. Name of the reload animation track in Assets/ Animations of the system folder. Set to true if you want to use the scope that's specified in Weapons System GUI. For example, this value for the Crossbow is 1 because arrows arc during flight, but this value for the Rocket Launcher is 0 because propelled rockets travel straight. Maximum distance bullets/projectiles travel before disappearing.Īmount that gravity should influence each bullet/projectile. Setting this to a very high value like 20000 simulates raycasting weapons like laser guns. Speed that bullets/projectiles travel when shot. Anything hit beyond this distance will receive less and less damage as the distance nears ZeroDamageDistance.Īnything hit at or beyond this distance will receive no damage. Maximum distance that shots will do full damage.

roblox gun script roblox gun script

Number of shots per click/burst only matters if you set FireMode to Burst. Time between each shot in a burst only matters if you set FireMode to Burst. For weapons with FireMode of Automatic, this is also the time between shots while pressing the fire button or holding click. Note that ammo is unlimited and this does not specify how much ammo a player is carrying.Ĭhoose from either Semiautomatic (one shot per click/tap), Automatic (continuous fire), or Burst (burst of shots equal to NumBurstShots on each click/tap). Number of shots in each "ammo clip" before player must reload.















Roblox gun script