Local reloading = false - Variable to check if we are currently reloading Local sound = tool:WaitForChild( “Gunfire”) 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) Local humanoid = part.Parent:FindFirstChild( “Humanoid”) ReplicatedStorage.Headshot:FireClient(player) :Connect( function(player,tool,position,part) Local replicatedStorage = game:GetService( “ReplicatedStorage”) The first problem is that it for some reason only rotates the tool and the other one is that I already have another script that uses the shoulder his C0 so the tool follows the mouse.Local serverStorage = game:GetService( “ServerStorage”) Local Shoulder = Arm:WaitForChild(“RightShoulder”)Ĭonnection = RunService.RenderStepped:Connect(function()Ĭhar:WaitForChild(“RightUpperArm”).RightShoulder.C0 = ShoulderOriginC0 * CFrame.Angles(0,0,1)Ĭhar:WaitForChild(“RightUpperArm”).RightShoulder.C0 = ShoulderOriginC0 Local Arm = char:WaitForChild(“RightUpperArm”) This really helped out a lot already but there is something wrong I think. RunService.RenderStepped:Connect(function()Ĭamera.CameraType = ĭoes anyone know how to solve it and how I can get it the camera then moving again? also does anyone know how to get back to your normal camera position so ur not aiming anymore? Tool.Equipped:Connect(function() mouse.Button2Down:Connect(function() Local RunService = game:GetService(“RunService”) Local player = game:GetService(“Players”).LocalPlayer I’m currently working on an aiming script for my FPS gun that im making, Right now I Already have a script that makes the camera move to the impart but the problem is that I can’t move my camera up or down, left ,right.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |