It says touched is not a valid member to of model “Workspace.Samurai5”
Could you show your current code?
I copied and pasted the script u sent
1 Like
Oh. Well thats strange. Is the T lowercased or uppercased? Because
T is lowercased here.
I tried uppered and lowered both don’t work
Maybe try this?
local RS = game:GetService("ReplicatedStorage")
local WS = game:GetService("Workspace")
local RedGui = RS:WaitForChild("RedGui")
local Samurai5 = WS:WaitForChild("Samurai5")
for i, v in pairs(Samurai5:GetChildren()) do
v.Touched:Connect(function(hit)
if hit.Parent.Name == "BR Key" then
RedGui:FireAllClients()
end
end)
end
Now it says touched is not a valid member of model workspace.Samurai5.AnimSaved
Oops. Forgot to add an if statement whether the part that is inside the Samurai is a BasePart.
local RS = game:GetService("ReplicatedStorage")
local WS = game:GetService("Workspace")
local RedGui = RS:WaitForChild("RedGui")
local Samurai5 = WS:WaitForChild("Samurai5")
for i, v in pairs(Samurai5:GetChildren()) do
if v:IsA("BasePart") then
v.Touched:Connect(function(hit)
if hit.Parent.Name == "BR Key" then
RedGui:FireAllClients()
end
end)
end
end
A lot of errors this time saying, remote event invocation queue exhausted for replicated storage.redgui, could you team create that would be easier but if u don’t want to that’s fine
I feel like we should discuss this in private messaging. I will message you right now