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 Doesnt This Work?

Previous Thread :: Next Thread 
HuskiesPancake is online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
23 Jan 2016 12:45 PM
while true do
if p.name == "HuskiesPancake" then
p.name =("HuskiesPancake","[Dev]")

end


if p.name == "Awsper" then
p.name =("Awsper","[Owner]")`
end

end



Report Abuse
HuskiesPancake is online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
23 Jan 2016 12:48 PM
Bump
Report Abuse
HuskiesPancake is online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
23 Jan 2016 12:56 PM
Bumper
Report Abuse
HuskiesPancake is online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
23 Jan 2016 01:10 PM
b1
Report Abuse
HuskiesPancake is online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
23 Jan 2016 01:19 PM
b2
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
23 Jan 2016 01:22 PM
You can't assign two things to one variable. Try concatenating instead.
Report Abuse
HuskiesPancake is online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
23 Jan 2016 02:18 PM
while true do
if p.name == "HuskiesPancake" then
p.name =("HuskiesPancake".."[Dev]")

end


if p.name == "Awsper" then
p.name =("Awsper".."[Owner]")`
end

end

Still Doesn't Work
Report Abuse
HuskiesPancake is online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
23 Jan 2016 02:24 PM
;/
Report Abuse
Aetricity is not online. Aetricity
Joined: 29 Mar 2012
Total Posts: 51079
23 Jan 2016 02:31 PM
i don't think you can concatenate names via a comma, you can concatenate printing, however, via a comma

for i = 1, 5 do
print("test ", i, "!")
end

^ would work but

script.Parent.Parent.Object.Name = ("test", "two")

^ would not work

x = ("test", "two")
script.Parent.Parent.Object.Name = x

^ might work; try it out

so a quick easy fix:

game.Players.PlayerAdded:connect(function(c)
c.CharacterAdded:connect(function(p)
if p.Name == "HuskiesPancake" then
p.Name = "HuskiesPancake" .. " [DEV]"
elseif p.Name == "Awsper" then
p.Name = "Awsper" .. " [OWNER]"
end
end)
end)

Henceforth, we shall venture! | http://www.roblox.com/1-Post-item?id=318384228 | [+3.2k]
Report Abuse
Aetricity is not online. Aetricity
Joined: 29 Mar 2012
Total Posts: 51079
23 Jan 2016 02:32 PM
The "while true do" loop requires a wait time, or else it'll just crash.

Henceforth, we shall venture! | http://www.roblox.com/1-Post-item?id=318384228 | [+3.2k]
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