So, I have tried something that i thought could work, turns out it really doens't
Basically i have 3 parts in the workspace and i put them all inside a folder named "Parts"
After that I create a table named parts which has all of the Folder's parts in it (hence why i used game.Workspace.Parts:GetChildren())
Then i ran a for loop so when a player (well, right now when anything) touches the part, a print function runs
I thought this would work, but it really doesn't, can anyone help? I'd appreciate it
local parts = {game.Workspace.Parts:GetChildren()} for i, v in pairs(parts) do v.Touched:Connect(function() print("one of the parts has been touched") end) end
Locked by Xapelize
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?