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: Obbby For Admin Script

Previous Thread :: Next Thread 
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
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 is not online. 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 is not online. alemojica
Joined: 19 Aug 2011
Total Posts: 363
17 Apr 2013 10:00 PM
What is scripting?
Report Abuse
MrChubbs is not online. 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
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
17 Apr 2013 10:18 PM
Thank you so much, ill look into that, owe you one! =)
Report Abuse
ShadowSpy123 is not online. ShadowSpy123
Joined: 15 Jun 2010
Total Posts: 325
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
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
17 Apr 2013 11:12 PM
Should be:


    s.Texture = ""http://www.roblox.com/asset/?id=112526350"

(╯°□°)> KMXD
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
17 Apr 2013 11:12 PM

    s.Texture = "http://www.roblox.com/asset/?id=112526350"


(╯°□°)> KMXD
Report Abuse
UnknownOrangeBanana is not online. UnknownOrangeBanana
Joined: 30 Apr 2012
Total Posts: 93
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
UnknownOrangeBanana is not online. UnknownOrangeBanana
Joined: 30 Apr 2012
Total Posts: 93
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
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
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
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
18 Apr 2013 10:50 AM
bump
Report Abuse
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
18 Apr 2013 01:16 PM
bump
Report Abuse
awas3 is not online. 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
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
18 Apr 2013 01:19 PM
Im a noob with swag ;D
Report Abuse
DandamanGAMEZ is not online. DandamanGAMEZ
Joined: 13 Mar 2013
Total Posts: 156
18 Apr 2013 03:18 PM
bump
Report Abuse
jobro13 is not online. 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
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