|
| 06 Aug 2012 09:05 PM |
c/ p = Instance.new("Part") p.Position = game.Workspace.snowboarder199.Head.Position p.Anchored = true p.Size = Vector3.new(5,1,5) p.Parent = game.Workspace p.Transparency = 0 p.TopSurface = "Smooth" p.BottomSurface = "Smooth" p.FormFactor = "Symmetric" p.Touched:connect(function(hit) hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil then pl = game.Players:GetPlayerFromCharacter(hit. Parent) if pl.Name ~= "snowboarder199" or "lkira66" then hit.Humanoid.MaxHealth = 0 end end end)
ts supposed to kill anyone thats not me or lkira66 but it wont ._. whats going wrong? |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2012 09:07 PM |
It won't let me post it, but just check if the player's name again, like if pl.Name ~= name or pl.Name ~= othername.
† KMXD † |
|
|
| Report Abuse |
|
|
DangCool
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 5568 |
|
| |
|
|
| 06 Aug 2012 09:08 PM |
I'm going to try again:
if string.lower(pl.Name) ~= "snowboarder199" or string.lower(pl.Name) ~= "lkira66" then
† KMXD †
|
|
|
| Report Abuse |
|
|
|
| 06 Aug 2012 09:09 PM |
@Dang irk?
I finally got it, maybe it didn't like me using the shortcut to that particular string manipulation?
† KMXD † |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Aug 2012 09:11 PM |
Wait no! Logic error...
Try:
if string.lower(pl.Name) == "snowboarder199" or string.lower(pl.Name) == "lkira66" then
† KMXD † |
|
|
| Report Abuse |
|
|
DangCool
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 5568 |
|
| |
|
|
| 06 Aug 2012 09:17 PM |
Wow, forgot about that!
c/ p = Instance.new("Part") p.Position = game.Workspace.snowboarder199.Head.Position p.Anchored = true p.Size = Vector3.new(5,1,5) p.Parent = game.Workspace p.Transparency = 0 p.TopSurface = "Smooth" p.BottomSurface = "Smooth" p.FormFactor = "Symmetric" p.Touched:connect(function(hit) hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil then pl = game.Players:GetPlayerFromCharacter(hit. Parent) if string.lower(pl.Name) == "snowboarder199" or string.lower(pl.Name) == "lkira66" then print("Yay") else hit.Parent:BreakJoints() end end end)
† KMXD † |
|
|
| Report Abuse |
|
|