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: Why won't this work?

Previous Thread :: Next Thread 
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
07 Aug 2012 01:53 PM
If you're on the team that's team color is white, It's suppose to give you infinite health, teleport you to a place and make your team color bright red. ( I can't figure out that last part so if you can help me with it thanks)




function player()
local p = script.Parent.Parent.Parent.Parent.Character:FindFirstChild("Humanoid")
if p.TeamColor == BrickColor.new("White") then
p.MaxHealth = math.huge
p.Health = p.MaxHealth
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-180, 44.2, 5.984)
script.Parent.Parent.Parent.OuterGui.Visible = false
script.Parent.Parent.Visible = false
end
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
07 Aug 2012 01:54 PM
Missing an 'end'.
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
07 Aug 2012 02:03 PM
Still doesn't work
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 02:04 PM
it would help if you gave some output
Report Abuse
Wolfe7112 is not online. Wolfe7112
Joined: 24 Jul 2011
Total Posts: 15891
07 Aug 2012 02:05 PM
insert>object>throw potatoe at screen>fixed or try

player.epicpatrick123.potatoe.'wolfe7112 likes waffles'







~*●*Ш☺ʟḟε子112 ☤ṧ ⊥нε ♭@∂ⅾε﹩т ◎ḟ тнε ßαⅾ*●*~
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
07 Aug 2012 02:05 PM
Do you call the function?
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
07 Aug 2012 02:06 PM
LMaD -.-
Report Abuse
Wolfe7112 is not online. Wolfe7112
Joined: 24 Jul 2011
Total Posts: 15891
07 Aug 2012 02:06 PM
Dark im the only LMaD'er im not here to start a war i was looking for some help when i saw this thread by my friend epicpatrick123







~*●*Ш☺ʟḟε子112 ☤ṧ ⊥нε ♭@∂ⅾε﹩т ◎ḟ тнε ßαⅾ*●*~
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
07 Aug 2012 02:07 PM
lol wolf, but srsly someone fix this, it doesn't give me output, if it did i wouldn't be here
Report Abuse
Wolfe7112 is not online. Wolfe7112
Joined: 24 Jul 2011
Total Posts: 15891
07 Aug 2012 02:08 PM

Function.Player()
local p = Script.Parent.Parent.Parent.Character:FindFirstChild("Humanoid")
if p.TeamColor == BrickColor.new("White") then
p.MaxHealth. = math.huge
p.Health = p.MaxHealth
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-180, 44.2, 5.984)
script.Parent.Parent.Parent.OuterGui.Visible = false
script.Parent.Parent.Visible = false
end
end


try that






~*●*Ш☺ʟḟε子112 ☤ṧ ⊥нε ♭@∂ⅾε﹩т ◎ḟ тнε ßαⅾ*●*~
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 02:10 PM
what happens when you run the script?
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
07 Aug 2012 02:12 PM
Nothing happens
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
07 Aug 2012 02:13 PM
@wolf all you did was put a dot after maxhealth... which breaks it
Report Abuse
Wolfe7112 is not online. Wolfe7112
Joined: 24 Jul 2011
Total Posts: 15891
07 Aug 2012 02:13 PM
I captilizaed and added end







~*●*Ш☺ʟḟε子112 ☤ṧ ⊥нε ♭@∂ⅾε﹩т ◎ḟ тнε ßαⅾ*●*~
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 02:15 PM
PlayerAdded will be better.
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 02:18 PM
do you have a connection line
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 02:18 PM
@wolf That's so wrong, do you know to even basic script?
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 02:19 PM
Oh wait, you don't even have a connection line..
Report Abuse
Wolfe7112 is not online. Wolfe7112
Joined: 24 Jul 2011
Total Posts: 15891
07 Aug 2012 02:19 PM

I dont even know 1 word in scripting besides end






~*●*Ш☺ʟḟε子112 ☤ṧ ⊥нε ♭@∂ⅾε﹩т ◎ḟ тнε ßαⅾ*●*~
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
07 Aug 2012 02:22 PM
You obviously don't know how to script then..
Report Abuse
Wolfe7112 is not online. Wolfe7112
Joined: 24 Jul 2011
Total Posts: 15891
07 Aug 2012 02:38 PM
obviously :P

Watching videos on how to script now and this is what i learned so far

If true do
Wait(1)
Workspace.Player.Wolfe7112.Huminoid.health = 0

Would that work if i put it in my game it would kill me?







~*●*Ш☺ʟḟε子112 ☤ṧ ⊥нε ♭@∂ⅾε﹩т ◎ḟ тнε ßαⅾ*●*~
Report Abuse
human is not online. human
Joined: 06 May 2007
Total Posts: 2765
07 Aug 2012 02:39 PM
@wolf that wouldn't work

game.Players.PlayerAdded:connect(function(player)
wait(1) --I forget how to wait for the character to load..
player.TeamColor = BrickColor.new("Bright red")
player.Character.Humanoid.MaxHealth = math.huge
player.Character.Torso.CFrame = CFrame.new(-180, 44.2, 5.984)
end)
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
07 Aug 2012 02:41 PM
game.Players.PlayerAdded:connect(function(player)
Player.CharacterAdded:wait() --how about this?
player.TeamColor = BrickColor.new("Bright red")
player.Character.Humanoid.MaxHealth = math.huge
player.Character.Torso.CFrame = CFrame.new(-180, 44.2, 5.984)
end)


???
Report Abuse
Wolfe7112 is not online. Wolfe7112
Joined: 24 Jul 2011
Total Posts: 15891
07 Aug 2012 02:42 PM
@human y do i need cframe and whats bright red? my character is all white:?







~*●*Ш☺ʟḟε子112 ☤ṧ ⊥нε ♭@∂ⅾε﹩т ◎ḟ тнε ßαⅾ*●*~
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
07 Aug 2012 02:43 PM
wolf... white is the teamcolor and cframe is moving the position
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