|
| 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 |
|
|
| |
|
|
| 31 Dec 2015 02:56 PM |
Bumpity Bump
--//GavAttack12 |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 31 Dec 2015 03:08 PM |
ayyyy you got lucky
local siggy = Instance.new("Siggy", forum.Reply) |
|
|
| Report Abuse |
|
|
RoKjell
|
  |
| Joined: 22 Nov 2012 |
| Total Posts: 1205 |
|
|
| 31 Dec 2015 03:08 PM |
Indeed he did
Tunez, Best. Night. Ever. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 03:10 PM |
Thanks RoK! I really appreciate it!
--//GavAttack12 |
|
|
| Report Abuse |
|
|