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: Simple commands failing to work?

Previous Thread :: Next Thread 
CrimeByte is not online. CrimeByte
Joined: 08 Mar 2015
Total Posts: 360
04 May 2015 08:24 PM
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if player == "CrimeByte" and msg == ("hi") then
for i,v in pairs(game.Workspace.BasePlates:GetChildren()) do
if v:FindFirstChild("ParticleEmitter") then
v.ParticleEmitter.Enabled = true
end
end
elseif player == "CrimeByte" and msg == ("bye") then
for i,v in pairs(game.Workspace.BasePlates:GetChildren()) do
if v:FindFirstChild("ParticleEmitter") then
v.ParticleEmitter.Enabled = false
end
end
end
end)
end)

-DHS
Report Abuse
CrimeByte is not online. CrimeByte
Joined: 08 Mar 2015
Total Posts: 360
04 May 2015 08:28 PM
bump8uOPq

-DHS
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
04 May 2015 08:28 PM
'if player == "CrimeByte"'

The player object is not equal to the string "CrimeByte".
Report Abuse
CrimeByte is not online. CrimeByte
Joined: 08 Mar 2015
Total Posts: 360
04 May 2015 08:30 PM
What..?

That's my name. I said the command and it doesn't work.

-DHS
Report Abuse
CrimeByte is not online. CrimeByte
Joined: 08 Mar 2015
Total Posts: 360
04 May 2015 08:31 PM
Oh wait. *FACEPALM*

player.Name
k

-DHS
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