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 this simple script

Previous Thread :: Next Thread 
SwordSmite is not online. SwordSmite
Joined: 23 Aug 2013
Total Posts: 49
05 Sep 2013 06:03 PM
Textbutton, it teleports but doesn't heal/make visible = false
thanks

function click()
p = game.Players.LocalPlayer.Character
p.Humanoid.Health = 100
p.Humanoid.MaxHealth = 100

script.Parent.Visible = false
wait(60)
script.Parent.visible = true

script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(263, 58, -21)
end

script.Parent.MouseButton1Down:connect(Click)
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
05 Sep 2013 06:04 PM
No need to make a new thread.
Report Abuse
SwordSmite is not online. SwordSmite
Joined: 23 Aug 2013
Total Posts: 49
05 Sep 2013 06:04 PM
@Screw
Sorry, I was just adding in the other part of the script
Report Abuse
LbpPlayer34 is not online. LbpPlayer34
Joined: 08 Jul 2012
Total Posts: 523
05 Sep 2013 06:10 PM
function click()
local p = game.Players.LocalPlayer.Character
p.Humanoid.Health = 100
p.Humanoid.MaxHealth = 100

script.Parent.Visible = false
wait(60)
script.Parent.visible = true

script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(263, 58, -21)
end

script.Parent.MouseButton1Click:connect(Click)
Report Abuse
HILLBILLYY is online. HILLBILLYY
Joined: 08 May 2010
Total Posts: 764
05 Sep 2013 07:02 PM
p = script.Parent.Parent.Parent.Character
function click()
p.Humanoid.Health = 100
p.Humanoid.MaxHealth = 100
script.Parent.Visible = false
wait(60)
script.Parent.visible = true
p.Torso.CFrame = CFrame.new(263, 58, -21)
end

script.Parent.MouseButton1Down:connect(click)
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