Im making a sun model and I want it to kill players and delete parts when they are near the sun but I dont know how to make a script that deletes parts when they touch the sun model. How do I do that?
Pretty simple, like what deth said, just like this:
local Part = game.Workspace.Part Part.Touched:Connect(function(hit) hit:Destroy() end)
or for player do
local Part = game.Workspace.Part Part.Touched:Connect(function(hit) local Char = hit.Parent if Char.Humanoid then Char.Humanoid.Health = 0 end end)