RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create me the da hood revolver weapon"
-- local script local part = script.Parent local gun = Instance.new("Model") gun.Name = "DaHoodRevolver" gun.Parent = part local handle = Instance.new("Part") handle.Name = "Handle" handle.Size = Vector3.new(1, 2, 1) handle.Parent = gun local barrel = Instance.new("Part") barrel.Name = "Barrel" barrel.Size = Vector3.new(1, 1, 3) barrel.Parent = gun local trigger = Instance.new("Part") trigger.Name = "Trigger" trigger.Size = Vector3.new(1, 0.5, 0.5) trigger.Parent = gun local bullet = Instance.new("Part") bullet.Name = "Bullet" bullet.Size = Vector3.new(0.5, 0.5, 0.5) bullet.Parent = gun local sound = Instance.new("Sound") sound.Name = "ShootSound" sound.SoundId = "rbxassetid://YourSoundIDHere" sound.Parent = gun local animation = Instance.new("Animation") animation.Name = "ShootAnimation" animation.AnimationId = "rbxassetid://YourAnimationIDHere" animation.Parent = gun local function shoot() bullet.CFrame = barrel.CFrame * CFrame.new(0, 0, 3) sound:Play() animation:Play() wait(1) bullet.CFrame = handle.CFrame end trigger.MouseButton1Down:Connect(shoot)