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
 

Help

Previous Thread :: Next Thread 
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
07 Dec 2011 04:35 PM
the function does the else condition even though I'm in the group.


script.Parent.Touched:connect(function(hit)
player = game.Players:GetPlayerFromCharacter(hit.Parent)
torso = hit.Parent:FindFirstChild("Torso")
if player.Character then
if (player:IsInGroup(418063)) then
player.Character.Health = 0
else
torso.CFrame = CFrame.new(Vector3.new(25.5, 13, 0.5))
script.Parent.Gui:clone().Parent = player.PlayerGui
end
end
end)
Report Abuse
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
07 Dec 2011 04:38 PM
bump
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
07 Dec 2011 04:46 PM
Try using elseif and no

elseif (not player:IsInGroup(#)))
Report Abuse
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
07 Dec 2011 04:59 PM
dirk, that didn't work.
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