drco12
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 234 |
|
|
| 12 Mar 2014 11:02 PM |
This is a bool value for morphs, and I can't get it to work. I want a brick to kill non-morphed players, but it kills both morphed and non-morphed players. What is wrong?
-- This script goes into workspace:
function onPlayerEntered(newPlayer)
local bool = Instance.new("BoolValue", newPlayer)
bool.Name = "Morphed"
end
game.Players.PlayerAdded:connect(onPlayerEntered)
-- This goes into the morph:
game.Players.Morphed = true
-- Kill Brick Script:
script.Parent.Touched:connect(function(obj) local plr = game.Players:GetPlayerFromCharacter(obj.Parent) if (plr) and plr.Morphed.Value == false then plr.Character:BreakJoints() end end) |
|
|
| Report Abuse |
|
|
devLucas
|
  |
| Joined: 10 Dec 2013 |
| Total Posts: 526 |
|
|
| 12 Mar 2014 11:05 PM |
game.Players.Morphed = true
??? Its not accessing the player ??? |
|
|
| Report Abuse |
|
|
drco12
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 234 |
|
|
| 12 Mar 2014 11:46 PM |
| I think that is the problem but I am not sure... It has been hard for me to identify. |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2014 11:56 PM |
| "Morphed" is not a valid member of game.Players. |
|
|
| Report Abuse |
|
|
drco12
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 234 |
|
|
| 13 Mar 2014 12:55 AM |
| well.... ummm how would I make it so that the morphed value is true for any player who is a morph according to the bool? :) |
|
|
| Report Abuse |
|
|
drco12
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 234 |
|
|
| 16 Mar 2014 08:12 PM |
| Bump. Could someone please help????? :) |
|
|
| Report Abuse |
|
|
drco12
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 234 |
|
| |
|
drco12
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 234 |
|
| |
|
drco12
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 234 |
|
| |
|
drco12
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 234 |
|
| |
|