Spleef Questions! (HELP)

Hello! I’m LuaGirlDeveloper. I’m currently making a spleef game and I need help connecting two scripts and a module.

To clarify, I have a “Round” script. I’ve tagged players’ legs and the tiles, and I can detect when a leg touches something. Now I need to tell the “Round” script to remove that object.

Here’s my setup:

  • Round Script: Script
  • Tagging Legs: Module
  • Round Module: Module

can’t you just do a simple touch event? like

-- get your parts
part.Touched:Connect(function(hit: instance)
  if hit.Parent:FindFirstChild("Humanoid") then
    print("is a player")
    local char = hit.Parent
    local Player = game:GetSerivce("Players"):GetPlayerFromCharacter(char)

    local HasTag = player:HasTag("TagName")
     if HasTag then
       Part:Destroy()
     end
  end
end)

and then at the start of the round just regenerate the parts again.
edit: changed GetTag to HasTag because my dumb brain thought it was GetTag

Because sometimes I will have a lot of tiles and I use the legs to detect when there touched