|
| 17 Apr 2013 09:46 PM |
| Hey there, im very new to scripting, but i am trying to learn (lualearners.org) and some other resources. Anyways, I own this beat the obby for admin game, but the problem is... i ALWAYS have to be there in order to give ppl admin when they win! (im not requesting) But is there anyway to make a morph or something that gives them admin shirt when they get to last obstacle automatically? Just wondering if possible, if so... ill figure out someway to do it. thanks! |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 17 Apr 2013 09:53 PM |
Easy actually. Learn onTouched and table.insert just DO NOT give the ban and kick commands, only give them simple commands to stop abuse. |
|
|
| Report Abuse |
|
|
alemojica
|
  |
| Joined: 19 Aug 2011 |
| Total Posts: 363 |
|
| |
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 17 Apr 2013 10:01 PM |
| It's a type of plant illegal in the US and UK though legal throughout most of europe, when ingested it causes you to become exicited and open to suggestion. |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 10:18 PM |
| Thank you so much, ill look into that, owe you one! =) |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 10:48 PM |
| Instead of onTouch, make it add their name to an admin table when they join the "Admin" team. |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 11:07 PM |
Would this work? when they touch the block they get my admin shirt
function onTouched(hit) if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then debounce = false s = Instance.new ("Decal") s.Texture = "http://www.roblox.com/Admin-for-Beat-the-Obby-for-Admin-item?id=112526351" s.Face = "Front" head = hit.Parent:findFirstChild("Head") torso = hit.Parent:findFirstChild("Torso") left_arm = hit.Parent:findFirstChild("Left Arm") right_arm = hit.Parent:findFirstChild("Right Arm") left_leg = hit.Parent:findFirstChild("Left Leg") right_leg = hit.Parent:findFirstChild("Right Leg") s.Parent = torso wait(5) debounce = true end end
Thanks for the help btw =) |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 11:08 PM |
There's no point in defining the body parts if you're not using them. And no, the decal should be in asset form.
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 11:09 PM |
| How do i make it in asset form? sorry, i started roblox a month ago... still trying to get a grip on things >.< |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 11:12 PM |
Should be:
s.Texture = ""http://www.roblox.com/asset/?id=112526350"
(╯°□°)> KMXD
|
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 11:12 PM |
s.Texture = "http://www.roblox.com/asset/?id=112526350"
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 11:15 PM |
"function onTouched(hit) if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then debounce = false s = Instance.new ("Decal") s.Texture = "http://www.roblox.com/Admin-for-Beat-the-Obby-for-Admin-item?id=112526351" s.Face = "Front" head = hit.Parent:findFirstChild("Head") torso = hit.Parent:findFirstChild("Torso") left_arm = hit.Parent:findFirstChild("Left Arm") right_arm = hit.Parent:findFirstChild("Right Arm") left_leg = hit.Parent:findFirstChild("Left Leg") right_leg = hit.Parent:findFirstChild("Right Leg") s.Parent = torso wait(5) debounce = true end end" ----
Close enough.
I don't have anything on me right now,but remove the defined body parts and use InsertService (or clone from Lighting or somewhere) to add it to the player. I suggest you have an admin spawnlocation to do this automatically.
Make sure you detect if the script is already present or you'll make the admin commands run twice/triple times. |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 11:16 PM |
Dang, I misread. Saying it is like 1 right now...
Yeah, http://www.roblox.com/asset/?ID=IDHERE |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2013 11:47 PM |
| The script i made is only giving them the decal.... anyways, the admin commands script is only allowing ppl who OWN the item get VipAdmin, not just the decal. to change the admin script to make it where it makes ppl with the decal only have vip admin? Thanks a bunches! (FYI: im using Khol's Admin Commands) Or even better a way to change my script to actually giving the ppl the t-shirt? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
awas3
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 2854 |
|
|
| 18 Apr 2013 01:18 PM |
| You started a month ago and already have Bricksmith? WOW e.e |
|
|
| Report Abuse |
|
|
| |
|
| |
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
|
| 18 Apr 2013 03:21 PM |
LuaLearners :/ :/ :/ :/
"onTouched"
Please, understand that an "onTouched" function is nothing
function onChatted() print("This function won't run when someone chats") end
function EpicFunctionThatDoesNothing(Message) print(Message) end
game.Players.LocalPlayer.Chatted:connect(EpicFunctionThatDoesNothing)
Just sayin' |
|
|
| Report Abuse |
|
|