Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

i got this erorrinvalid argument #1 to 'Connect' (RBXScriptSignal expected, got function)? [closed]

Asked by
kiref81 -24
3 years ago
Edited 3 years ago
01local gun = script.Parent
02local runService = game:GetService('RunService')
03local replicatedStorage = game:GetService('ReplicatedStorage')
04local player = game:GetService('Players')
05 
06local viewModel = replicatedStorage:WaitForChild('MainGame'):WaitForChild('Guns'):WaitForChild('Pistol'):Clone()
07local camera = workspace.CurrentCamera
08local player = player.LocalPlayer
09local mouse = player:GetMouse()
10local character = player.Character or player.CharacterAdded:Wait()
11viewModel.Parent = replicatedStorage.UnequippedGuns
12 
13local config = require(viewModel:WaitForChild('Config'))
14 
15local cf = CFrame.new()
View all 97 lines...
0
gun.Activated.Connect to gun.Activated:Connect(function()) lehoaiquoc248 23 — 3y

Marked as Duplicate by JesseSong

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?