Hello I know how to insert parts with a script;
Part299 = Instance.new("Part", game.Workspace) Part299.Anchored = true; Part299.BrickColor = BrickColor.new(199); Part299.Material = Enum.Material.Slate; Part299.Size = Vector3.new(15, 12, 2); Part299.formFactor = Enum.FormFactor.Symmetric; Part299.CFrame = CFrame.new(125.5, 5.9999876, -26.0001297, 1, -1.49922732e-006, -1.6778944e-005, 1.49924051e-006, 1, 7.89515695e-007, 1.6778944e-005, -7.8954082e-007, 1); Part299.Position = Vector3.new(125.5, 5.9999876, -26.0001297);
but I want it to kill everyone that's not me so I wrote this simple script;
function kill(hit) local name = hit.Parent.Name if name == "NAMEHERE" then return end local h = hit.Parent:FindFirstChild("Humanoid") if (h ~= nil) then fh.Health = 0 end end script.Parent.Touched:connect(kill)
I'm assuming on the second one it should be model = instance.new("<something but I'm sure sure what,game.Workspace)
btw,
how would I combine these 2 scripts so anyone that touches the block dies, but if the person in the name here block touches it, there fine