kissrelop.blogg.se

Gun script roblox
Gun script roblox




Local reloading = false - Variable to check if we are currently reloading Local sound = tool:WaitForChild( “Gunfire”)

gun script roblox

Local mouse = player:GetMouse() - Getting the mouse Local player = game:GetService( “Players”).LocalPlayer - Getting the player Local tool = script.Parent - Getting the tool Local Script, which goes inside the tool If game.Workspace:FindFirstChild( “Torso”) then - R6 If game.Workspace:FindFirstChild( “LowerTorso”) then - R15 Local reloadAnim = :LoadAnimation(animation) :Connect( function(player,animation)įor i,v in pairs(game.Workspace:GetChildren()) do Local newAnim = :LoadAnimation(animation)

gun script roblox

Local humanoid = part.Parent:FindFirstChild( “Humanoid”) ReplicatedStorage.Headshot:FireClient(player)

gun script roblox

:Connect( function(player,tool,position,part) Local replicatedStorage = game:GetService( “ReplicatedStorage”) Local serverStorage = game:GetService( “ServerStorage”)






Gun script roblox