RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"gun system"
-- local script local gun = script.Parent local bullet = gun.Bullet local fireRate = 0.5 local fireTime = 0 function onButton1Down() local now = tick() if now - fireTime > fireRate then fireTime = now local bulletClone = bullet:Clone() bulletClone.Parent = game.Workspace bulletClone.CFrame = gun.CFrame end end gun.Button1Down:Connect(onButton1Down)