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: Would this script work?

Previous Thread :: Next Thread 
S09 is not online. S09
Joined: 22 Aug 2011
Total Posts: 20
23 Aug 2011 11:40 AM
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
if m:lower() == "Torso_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character.Torso
x.MeshType = "Head"
if m:lower() == "RArm_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character["Right Arm"]
x.MeshType = "Head"
if m:lower() == "LArm_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character["Left Arm"]
x.MeshType = "Head"
if m:lower() == "RLeg_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character["Right Leg"]
x.MeshType = "Head"
if m:lower() == "LLeg_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character["Left Leg"]
x.MeshType = "Head"
end
end
end
end
end
end)
end)

If not, please explain why it wouldn't work and how I could fix it. Oh, and please know that I am very knew with the .Chatted script, so if it's way off, don't hate. Thanks
Report Abuse
Nexun is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
23 Aug 2011 11:44 AM
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
if m:lower() == "Torso_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Character.Torso
x.MeshType = "Head"
elseif m:lower() == "RArm_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character["Right Arm"]
x.MeshType = "Head"
elseif m:lower() == "LArm_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character["Left Arm"]
x.MeshType = "Head"
elseif m:lower() == "RLeg_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character["Right Leg"]
x.MeshType = "Head"
elseif m:lower() == "LLeg_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Chatted.Character["Left Leg"]
x.MeshType = "Head"
end
end)
end)
Report Abuse
S09 is not online. S09
Joined: 22 Aug 2011
Total Posts: 20
23 Aug 2011 11:45 AM
@Nexun

So that would work?
Report Abuse
Nexun is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
23 Aug 2011 11:46 AM
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
if m:lower() == "Torso_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Character.Torso
x.MeshType = "Head"
elseif m:lower() == "RArm_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Character["Right Arm"]
x.MeshType = "Head"
elseif m:lower() == "LArm_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Character["Left Arm"]
x.MeshType = "Head"
elseif m:lower() == "RLeg_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Character["Right Leg"]
x.MeshType = "Head"
elseif m:lower() == "LLeg_MA" then
x = Instance.new("SpecialMesh")
x.Parent = p.Character["Left Leg"]
x.MeshType = "Head"
end
end)
end)


Sorry, I made a mistake.
Report Abuse
Nexun is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
23 Aug 2011 11:47 AM
@S09

Yes, my latest post containing the script would work, if I am correct.
Report Abuse
S09 is not online. S09
Joined: 22 Aug 2011
Total Posts: 20
23 Aug 2011 11:47 AM
@Nexun

Okay, thanks a bunch! I'll go test it right now.
Report Abuse
S09 is not online. S09
Joined: 22 Aug 2011
Total Posts: 20
23 Aug 2011 12:00 PM
@Nexun

I just tested it, and it doesn't work. Do you have any idea why it wouldn't work?
Report Abuse
Nexun is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
23 Aug 2011 12:08 PM
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
if m:lower() == "Torso_MA" then
local x1 = Instance.new("SpecialMesh")
x1.Parent = p.Character.Torso
x1.MeshType = "Head"
elseif m:lower() == "RArm_MA" then
local x2 = Instance.new("SpecialMesh")
x2.Parent = p.Character["Right Arm"]
x2.MeshType = "Head"
elseif m:lower() == "LArm_MA" then
local x3 = Instance.new("SpecialMesh")
x3.Parent = p.Character["Left Arm"]
x3.MeshType = "Head"
elseif m:lower() == "RLeg_MA" then
local x4 = Instance.new("SpecialMesh")
x4.Parent = p.Character["Right Leg"]
x4.MeshType = "Head"
elseif m:lower() == "LLeg_MA" then
local x5 = Instance.new("SpecialMesh")
x5.Parent = p.Character["Left Leg"]
x5.MeshType = "Head"
end
end)
end)

Try that.
Report Abuse
S09 is not online. S09
Joined: 22 Aug 2011
Total Posts: 20
23 Aug 2011 12:14 PM
@Nexun

Nope, that doesn't work. Am I supposed to put something with the script, like a value? Or can I just insert the script and it's supposed to work?
Report Abuse
S09 is not online. S09
Joined: 22 Aug 2011
Total Posts: 20
23 Aug 2011 12:19 PM
Bump
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
23 Aug 2011 12:24 PM
Nexun
What is m?
Report Abuse
Nexun is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
23 Aug 2011 03:22 PM
@ross

p.Chatted:connect(function(m)

'm' is the message the person spoke.
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
23 Aug 2011 03:38 PM
Ah didn't see that
Report Abuse
TigerBloodd is not online. TigerBloodd
Joined: 24 Oct 2010
Total Posts: 2430
23 Aug 2011 03:40 PM
Your trying to parent something to a chat.. Fail

~ www.roblox.com/--item?id=60008124 ~
Report Abuse
S09 is not online. S09
Joined: 22 Aug 2011
Total Posts: 20
23 Aug 2011 05:48 PM
@TigerBloodd

Yes, I am new here. Don't hate

I've never used .Chatted before.
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