K cool then all you have to do is basically make a part which is when it gets touched and place the script inside it so like
script.Parent.Touched:Connect(function(touched)
if touched.Parent:IsA("Model") and touched.Parent:FindFirstChild("Humanoid") then
--Put here stuff you wanna do
end
end)
Edit: xxlamInevitable is better idea