generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Please Help

Previous Thread :: Next Thread 
drco12 is not online. 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 is not online. 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 is not online. 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
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
12 Mar 2014 11:56 PM
"Morphed" is not a valid member of game.Players.
Report Abuse
drco12 is not online. 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 is not online. drco12
Joined: 26 Sep 2009
Total Posts: 234
16 Mar 2014 08:12 PM
Bump. Could someone please help????? :)
Report Abuse
drco12 is not online. drco12
Joined: 26 Sep 2009
Total Posts: 234
16 Mar 2014 08:18 PM
B2
Report Abuse
drco12 is not online. drco12
Joined: 26 Sep 2009
Total Posts: 234
16 Mar 2014 09:08 PM
B3
Report Abuse
drco12 is not online. drco12
Joined: 26 Sep 2009
Total Posts: 234
16 Mar 2014 09:43 PM
B4
Report Abuse
drco12 is not online. drco12
Joined: 26 Sep 2009
Total Posts: 234
16 Mar 2014 10:08 PM
B5
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image