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 » Game Design
Home Search
 

Re: How do I...

Previous Thread :: Next Thread 
GavAttack12 is not online. GavAttack12
Joined: 04 Aug 2013
Total Posts: 249
31 Dec 2015 02:18 PM
How do I get the game creators name in a script? In my script, it has a little part that goes like this, i need the creators name, not the Id, because you dont type you Id into the bar, you type the name in.

if cmd == "orb" then
if trgt == game.CreatorId then
Orb = Instance.new("Part", trgt)
Orb.Name = "Orb"
Orb.Shape = Enum.PartType.Ball
Orb.CanCollide = false
Orb.BrickColor = BrickColor.new("Electric blue")
Orb.Transparency = 0.25
Orb.Size = Vector3.new(2, 2, 2)
Orb.TopSurface = Enum.SurfaceType.Smooth
Orb.BottomSurface = Enum.SurfaceType.Smooth
Instance.new("ParticleEmitter", Orb)
local BodyPosition = Instance.new("BodyPosition", Orb)
while wait(0) do
BodyPosition.Position = trgt.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0))
end

So can someone tell me what to do for the creator Id part to be changed to the name? Or is it not possible?

--//GavAttack12
Report Abuse
GavAttack12 is not online. GavAttack12
Joined: 04 Aug 2013
Total Posts: 249
31 Dec 2015 02:32 PM
Bump


--//GavAttack12
Report Abuse
GavAttack12 is not online. GavAttack12
Joined: 04 Aug 2013
Total Posts: 249
31 Dec 2015 02:56 PM
Bumpity Bump


--//GavAttack12
Report Abuse
rolbloxguy1876 is not online. rolbloxguy1876
Joined: 18 Sep 2011
Total Posts: 1272
31 Dec 2015 03:00 PM
you git gud


also, you go to the RIGHT sub-forum

(scripting)




local siggy = Instance.new("Siggy", forum.Reply)
Report Abuse
GavAttack12 is not online. GavAttack12
Joined: 04 Aug 2013
Total Posts: 249
31 Dec 2015 03:01 PM
@rol
I can post this in this forum. It doesnt say anything about not posting scripting help in the rules.


--//GavAttack12
Report Abuse
rolbloxguy1876 is not online. rolbloxguy1876
Joined: 18 Sep 2011
Total Posts: 1272
31 Dec 2015 03:04 PM
I never said you couldn't post on this forum


what I was implying was that you would have a better chance of getting help if you went to the sub-forum made for scripting.

this is where most builders hang out/noobs that "ogm I ned a bulder"

you really don't have a good chance here, but you might get lucky.



local siggy = Instance.new("Siggy", forum.Reply)
Report Abuse
GavAttack12 is not online. GavAttack12
Joined: 04 Aug 2013
Total Posts: 249
31 Dec 2015 03:04 PM
@rol
Mk


--//GavAttack12
Report Abuse
RoKjell is not online. RoKjell
Joined: 22 Nov 2012
Total Posts: 1205
31 Dec 2015 03:05 PM
game.CreatorId is the id of the creator, not the name, so to compare them with each other, you need the id of the player, which you can find by going into the player and using UserID

if game.Players.NameOfPlayer.UserID == game.CreatorID then



Tunez, Best. Night. Ever.
Report Abuse
rolbloxguy1876 is not online. rolbloxguy1876
Joined: 18 Sep 2011
Total Posts: 1272
31 Dec 2015 03:08 PM
ayyyy you got lucky




local siggy = Instance.new("Siggy", forum.Reply)
Report Abuse
RoKjell is not online. RoKjell
Joined: 22 Nov 2012
Total Posts: 1205
31 Dec 2015 03:08 PM
Indeed he did



Tunez, Best. Night. Ever.
Report Abuse
GavAttack12 is not online. GavAttack12
Joined: 04 Aug 2013
Total Posts: 249
31 Dec 2015 03:10 PM
Thanks RoK! I really appreciate it!


--//GavAttack12
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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