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

How do I fix the not a valid member?

Asked by 4 years ago
Edited 4 years ago
01local Player = game:GetService("Players").LocalPlayer
02 
03local rp = game:GetService("ReplicatedStorage")
04local Punch = rp:WaitForChild("Miststand1"):WaitForChild("Punch")
05 
06local UIS = game:GetService("UserInputService")
07 
08local debounce = false
09local cooldown = .75
10 
11UIS.InputBegan:Connect(function(input,IsTyping)
12    if IsTyping then
13        return
14    elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
15 
View all 27 lines...

the thing i need help with is line 3 Error:Waitforchild is not a valid member of Folder "ReplicatedStorage.Miststand1"

0
You don't really need WaitForChild if an object already exists in the first place cherrythetree 130 — 4y
0
oh Not_prototype 50 — 4y
0
so just get rid of it and it will work? Not_prototype 50 — 4y
0
do i replace it? and which one? Not_prototype 50 — 4y
View all comments (3 more)
0
can someone pls give me a more indepth answer Not_prototype 50 — 4y
0
Like this "local Punch = rp:WaitForChild("Miststand1").Punch", also make sure RemoteEvent **Punch** exists in Folder **Miststand1** cherrythetree 130 — 4y
0
bro thanks Not_prototype 50 — 4y

Answer this question