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 fix

Previous Thread :: Next Thread 
HoloEngineer is not online. HoloEngineer
Joined: 01 Nov 2011
Total Posts: 37
13 Nov 2011 09:01 PM
while true do
wait()--that means one frame.
if workspace.Player.Humanoid.Health > 6 then
workspace.Player:MoveTo(0,50,0)--the room for the dead :O
end
end


no idea why its not working :/
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
13 Nov 2011 09:12 PM
Workspace.Player:MoveTo(Vector3.new(0,50,0))
Report Abuse
HoloEngineer is not online. HoloEngineer
Joined: 01 Nov 2011
Total Posts: 37
13 Nov 2011 09:19 PM
while true do
wait()--that means one frame.
if workspace.Player.Humanoid.Health > 6 then
Workspace.Player:MoveTo(Vector3.new(0,50,0))
end
end

ahah ill try it out
Report Abuse
HoloEngineer is not online. HoloEngineer
Joined: 01 Nov 2011
Total Posts: 37
13 Nov 2011 09:21 PM
still wont work
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
13 Nov 2011 09:25 PM
Did you change Workspace.Player to your name?
Report Abuse
HoloEngineer is not online. HoloEngineer
Joined: 01 Nov 2011
Total Posts: 37
13 Nov 2011 09:26 PM
i wanted it to be General so it works for everyone not just me D:
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
13 Nov 2011 09:28 PM
You woud have to use a Generic for then.
Report Abuse
HoloEngineer is not online. HoloEngineer
Joined: 01 Nov 2011
Total Posts: 37
13 Nov 2011 09:32 PM
:( hmmmmm well ill have to Learn that another day im a slow reader and the wiki is alot to read.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
13 Nov 2011 09:37 PM
No wait, my bad. I think you mean this

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
if c.Humanoid.Health > 6 then
--code
end
end)
end)

Sorry, I wasn't thinking right. I think you need events.
Report Abuse
HoloEngineer is not online. HoloEngineer
Joined: 01 Nov 2011
Total Posts: 37
13 Nov 2011 09:45 PM
I see thank you kind sir sadly its my bed time now so good night robloxian of roblox and the scripting helpers forum!
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
13 Nov 2011 09:46 PM
-_-

C yeah?
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