
Keyless
while wait() and game:IsLoaded() ~= true do end
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local camera = workspace.CurrentCamera
local bulletSpeed = 150
local bulletSize = Vector3.new(0.2, 0.2, 2)
local bulletColor = Color3.fromRGB(255, 0, 0)
local function shoot()
local character = player.Character
if not character then return end
local root = character:FindFirstChild("HumanoidRootPart")
if not root then return end
local bullet = Instance.new("Part")
bullet.Size = bulletSize
bullet.Color = bulletColor
bullet.Material = Enum.Material.Neon
bullet.CanCollide = false
bullet.Anchored = false
bullet.Shape = Enum.PartType.Cylinder
bullet.CFrame = CFrame.new(root.Position, mouse.Hit.Position)
local velocity = Instance.new("BodyVelocity")
velocity.Velocity = (mouse.Hit.Position - root.Position).Unit * bulletSpeed
velocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
velocity.Parent = bullet
bullet.Parent = workspace
game:GetService("Debris"):AddItem(bullet, 3)
bullet.Touched:Connect(function(hit)
local hitPlayer = game.Players:GetPlayerFromCharacter(hit.Parent)
if hitPlayer ~= game.Players.LocalPlayer then
local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
end)
end
mouse.Button1Down:Connect(shoot)
Only Replicates On Client Replication
useless, no games, other than games mode for scripts like these, work @exeserdashdev