01 | local gun = script.Parent |
02 | local runService = game:GetService( 'RunService' ) |
03 | local replicatedStorage = game:GetService( 'ReplicatedStorage' ) |
04 | local player = game:GetService( 'Players' ) |
05 |
06 | local viewModel = replicatedStorage:WaitForChild( 'MainGame' ):WaitForChild( 'Guns' ):WaitForChild( 'Pistol' ):Clone() |
07 | local camera = workspace.CurrentCamera |
08 | local player = player.LocalPlayer |
09 | local mouse = player:GetMouse() |
10 | local character = player.Character or player.CharacterAdded:Wait() |
11 | viewModel.Parent = replicatedStorage.UnequippedGuns |
12 |
13 | local config = require(viewModel:WaitForChild( 'Config' )) |
14 |
15 | local cf = CFrame.new() |
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?