Hello! I want a bullet to go out of the tip of a gun, can somebody help me?
This is my server script:
local remoteEvent = game.ReplicatedStorage.FireBullet local bullet = game.ServerStorage.Bullet remoteEvent.OnServerEvent:Connect(function(player) local clone = bullet:Clone() clone.Parent = workspace while true do clone.CFrame = clone.CFrame * CFrame.new(0.5, 0, 0) wait() end end)
This is my local script:
local player = game.Players.LocalPlayer local Mouse = player:GetMouse() local remoteEvent = game.ReplicatedStorage.FireBullet Mouse.Button1Down:Connect(function() remoteEvent:FireServer() end)
Gun: https://gyazo.com/dc81d2f2186ce56f44047eeea2c3fc44
Thanks.