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: Can anyone fix this?

Previous Thread :: Next Thread 
MrFahrenheit is not online. MrFahrenheit
Joined: 03 Dec 2009
Total Posts: 9317
11 Oct 2011 02:46 PM

local user = "MrFahrenheit"
local shirt = "http://www.roblox.com/Super-Human-item?id=63543118"


function onTouched(hit)
local character = hit.Parent
local humanoid = character:findFirstChild("Humanoid")

if character:FindFirstChild("Humanoid") then
if character.Name:lower == user:lower(MrFahrenheit) or
character.ShirtGraphic.Graphic == shirt then
character.TeamColor = "Dark green"
print "team changed" then
wait(.1)
humanoid.Health = 0
character.TeamColor = "Dark green"
print "team changed back-up"
humanoid.Walkspeed = 20

end
end

script.Parent.Touched:connect(onTouched)


Thanks.
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
11 Oct 2011 02:49 PM
if character.Name:lower == user:lower(MrFahrenheit) or


-----

if string.lower(character.Name) == string.lower(user) or
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
11 Oct 2011 02:50 PM
Character.TeamColor = "Dark green"

-----

Character.TeamColor = BrickColor.new("Dark green")
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
11 Oct 2011 02:51 PM
and it should be player.TeamColor.
Report Abuse
Glommus is not online. Glommus
Joined: 06 Oct 2011
Total Posts: 150
11 Oct 2011 02:56 PM
local user = "MrFahrenheit"
local shirt = "http://www.roblox.com/Super-Human-item?id=63543118"
function onTouched(hit)
local character = hit.Parent
if character then
local humanoid = character:findFirstChild("Humanoid")
if humanoid then
if character.Name:lower() == user:lower() or character.ShirtGraphic.Graphic == shirt then
game.Players:GetPlayerFromCharacter(character).TeamColor = BrickColor.new("Dark green")
print("Team changed.")
wait(.1)
humanoid.Health = 0
print("Team changed back up.")
humanoid.WalkSpeed = 20
end
end
end
end
script.Parent.Touched:connect(onTouched)
Report Abuse
MrFahrenheit is not online. MrFahrenheit
Joined: 03 Dec 2009
Total Posts: 9317
11 Oct 2011 02:59 PM
Still not working.

Report Abuse
Glommus is not online. Glommus
Joined: 06 Oct 2011
Total Posts: 150
11 Oct 2011 03:01 PM
Are you sure you got the ASSET of that T-Shirt?
Report Abuse
MrFahrenheit is not online. MrFahrenheit
Joined: 03 Dec 2009
Total Posts: 9317
11 Oct 2011 03:04 PM
ohderp

I'm used to retexture so I just used the image ID.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
11 Oct 2011 03:05 PM
http://www.roblox.com/asset/?id=

local user = "MrFahrenheit"
local shirt = "http://www.roblox.com/asset/?id=63543118" --Almost Glomm.
function onTouched(hit)
local character = hit.Parent
if character then
local humanoid = character:findFirstChild("Humanoid")
if humanoid then
if character.Name:lower() == user:lower() or character.ShirtGraphic.Graphic == shirt then
game.Players:GetPlayerFromCharacter(character).TeamColor = BrickColor.new("Dark green")
print("Team changed.")
wait(.1)
humanoid.Health = 0
print("Team changed back up.")
humanoid.WalkSpeed = 20
end
end
end
end
script.Parent.Touched:connect(onTouched)
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
11 Oct 2011 03:05 PM
Or
rbxassetid://63543118
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
11 Oct 2011 03:06 PM
@Fl0x o.o Never seen that be for...
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
11 Oct 2011 03:07 PM
It isn't really known, but it's useful.
http://wiki.roblox.com/index.php/Content#rbxassetid:.2F.2FassetId
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
11 Oct 2011 03:09 PM
Wow didnt really think it was a method.
Report Abuse
MrFahrenheit is not online. MrFahrenheit
Joined: 03 Dec 2009
Total Posts: 9317
11 Oct 2011 03:09 PM
Huzzah it works!

Just need to adjust the timer for walkspeed change.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
11 Oct 2011 03:12 PM
Thanks for the Thank you -.-.
Report Abuse
MrFahrenheit is not online. MrFahrenheit
Joined: 03 Dec 2009
Total Posts: 9317
11 Oct 2011 03:19 PM
:c

sorry


Your help IS appreciated.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
11 Oct 2011 03:20 PM
Lol thanks. :3
Report Abuse
master3395 is not online. master3395
Joined: 27 Aug 2009
Total Posts: 409
12 Oct 2011 08:32 AM
is it a LocalScript or a regular skript?
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