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 » Scripters
Home Search
 

Re: Why doesn't this work

Previous Thread :: Next Thread 
EarthKingIV is not online. EarthKingIV
Joined: 02 Apr 2011
Total Posts: 2376
17 Jun 2017 07:58 PM
script.Parent.Touched:Connect(function(h)
Player= h.Parent:GetPlayerFromCharacter()
if Player.TeamColor==BrickColor.new("Bright red") then
print("hi")
end
end)

ik the problem is with player, any help?
Report Abuse
hollowlucas is not online. hollowlucas
Joined: 06 May 2012
Total Posts: 170
17 Jun 2017 08:00 PM
It 𝑓𝑢𝑐𝑘𝑖𝑛𝑔 looks right lol
Report Abuse
hollowlucas is not online. hollowlucas
Joined: 06 May 2012
Total Posts: 170
17 Jun 2017 08:01 PM
Add me with teamcreate and I'll fix it :D
Report Abuse
EarthKingIV is not online. EarthKingIV
Joined: 02 Apr 2011
Total Posts: 2376
17 Jun 2017 08:01 PM
it's not tho D:
Report Abuse
veryveryveryhidden is online. veryveryveryhidden
Joined: 16 Dec 2012
Total Posts: 486
17 Jun 2017 08:02 PM
local player = game.Players:GetPlayerFromCharacter(character)
script.Parent.Touched:Connect(function(h)
local player = game.Players:GetPlayerFromCharacter(h.Parent)
if Player and Player.TeamColor==BrickColor.new("Bright red") then
print("hi")
end
end)
Report Abuse
hollowlucas is not online. hollowlucas
Joined: 06 May 2012
Total Posts: 170
17 Jun 2017 08:02 PM
Add me on teamcreate
Report Abuse
veryveryveryhidden is online. veryveryveryhidden
Joined: 16 Dec 2012
Total Posts: 486
17 Jun 2017 08:02 PM
script.Parent.Touched:Connect(function(h)
local player = game.Players:GetPlayerFromCharacter(h.Parent)
if Player and Player.TeamColor==BrickColor.new("Bright red") then
print("hi")
end
end)

lol there
Report Abuse
hollowlucas is not online. hollowlucas
Joined: 06 May 2012
Total Posts: 170
17 Jun 2017 08:02 PM
Dude... that's 𝑓𝑢𝑐𝑘𝑖𝑛𝑔 wrong
Report Abuse
hollowlucas is not online. hollowlucas
Joined: 06 May 2012
Total Posts: 170
17 Jun 2017 08:03 PM
Now that's 𝑓𝑢𝑐𝑘𝑖𝑛𝑔 right! Be sure to 𝑓𝑢𝑐𝑘𝑖𝑛𝑔 copy 𝑓𝑢𝑐𝑘𝑖𝑛𝑔 :D

Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
17 Jun 2017 08:04 PM
script.Parent.Touched:connect(function(part)
h = part.Parent:FindFirstChild("Humanoid")
if~=nil then
Player= game.Players:GetPlayerFromCharacter(h.Parent)
if Player and Player.TeamColor==BrickColor.new("Bright red") then
print("hi")
end
end
end)
Report Abuse
hollowlucas is not online. hollowlucas
Joined: 06 May 2012
Total Posts: 170
17 Jun 2017 08:05 PM
Even more 𝑓𝑢𝑐𝑘𝑖𝑛𝑔 right lol

𝑓𝑢𝑐𝑘𝑖𝑛𝑔 COPY THAT
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
17 Jun 2017 08:06 PM
rip 2012 account
Report Abuse
EarthKingIV is not online. EarthKingIV
Joined: 02 Apr 2011
Total Posts: 2376
17 Jun 2017 08:07 PM
@very thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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