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: Bools

Previous Thread :: Next Thread 
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
16 Mar 2014 09:52 PM
A Broken Bool Script for Morphs. Any thoughts on how to fix it?


-- 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
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
16 Mar 2014 10:07 PM
--this goes into the morph
for i,v in pairs(game.Players:GetChildren()) do
v.Morphed.Value = true
end

I won a math debate
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