I was making the script hurts the script when the part touches the part when the part's name is not the owner's name, script:
local m1 = game.Lighting.Folder.Matches:Clone()
m1.CFrame = ma.CFrame * CFrame.new(0,3,-7.25)
m1.Parent = game.Workspace
m1.Touched:Connect(function(hit)
if not hit.Name == player.Character.Name then
local goal = {}
goal.Size = Vector3.new(5.63, 5.63, 21.101)
goal.Transparency = 1
local goalp = t:Create(m1, TweenInfo.new(1), goal)
goalp:Play()
end
end)
It doesn't even explode (I didn't add the whole script so. This is just the error). (This is was my previous question but the answer I got in the previous question also didn't work.)

1 comment
Thanks! if Hit.Parent.Name ~= game.Players.LocalPlayer.Name then worked!