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
 

Hey guys. [ Need Moderate to Skilled Scripter ] Offering $$$

Previous Thread :: Next Thread 
Chadthedestroyer2 is not online. Chadthedestroyer2
Joined: 10 Dec 2007
Total Posts: 792
12 Jan 2012 07:42 PM
So I'm in the final stages of making an upgradable weapon, and I know how the upgrades will happen. You'll buy a tool, and the tool will upgrade your weapon by enabling a script within the weapon, and disappear when it's done. I know how to make a weapon disappear when it's used, but I don't know how to repurpose this script so the only script enabled is the one inside the weapon the player is holding. And if it's possible, I'd like the script to have an 'if weapon isn't present then nil' part.

Here it is. Good luck. I'm offering a high pay if it's done. Anywhere between 50 and 400 robux.

function onActivated()

script.Parent["Handle"].BrickColor = BrickColor.new("New Yeller")
a = game.Workspace:GetChildren()
for i=1, #a do
if a[i].className == "Script" then
b = a[i]:clone()
a[i]:remove()
wait(0.01)
b.Disabled = false
b.Parent = game.Workspace
end
end
script.Parent["Handle"].BrickColor = BrickColor.new("Black")
end

script.Parent.Activated:connect(onActivated)
Report Abuse
ChrisMackle is not online. ChrisMackle
Joined: 13 Jul 2011
Total Posts: 18
12 Jan 2012 07:59 PM
just put a _G.upgraded variable and put an put an if statement in your script and change the global variable depending on whether its upgraded and make the if statement check if its upgraded and if it is run your upgraded code
Report Abuse
tiger33333321 is not online. tiger33333321
Joined: 28 Mar 2010
Total Posts: 2115
12 Jan 2012 08:01 PM
lua is raging at you.


you've given it a task to do but it doesn't know *when*.
Report Abuse
Chadthedestroyer2 is not online. Chadthedestroyer2
Joined: 10 Dec 2007
Total Posts: 792
12 Jan 2012 08:08 PM
What are you talking about? I want it to do this on click, and it already changes color on click.
Report Abuse
tiger33333321 is not online. tiger33333321
Joined: 28 Mar 2010
Total Posts: 2115
12 Jan 2012 08:10 PM
We didn't know that.
Report Abuse
ChrisMackle is not online. ChrisMackle
Joined: 13 Jul 2011
Total Posts: 18
12 Jan 2012 08:10 PM
put your script in a while loop so when its not upgraded it runs the code, when it is upgraded it stops it and at the VERY END after your while loop put in your other script
Report Abuse
tiger33333321 is not online. tiger33333321
Joined: 28 Mar 2010
Total Posts: 2115
12 Jan 2012 08:11 PM
but you could also configure the setup as values...?


and just do the (onclick)yadayada
game.Whatever.whatever.value = 123
Report Abuse
Chadthedestroyer2 is not online. Chadthedestroyer2
Joined: 10 Dec 2007
Total Posts: 792
12 Jan 2012 08:25 PM
You guys aren't really helping... lol
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
12 Jan 2012 09:27 PM
And that would be your fault for not understanding...
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
12 Jan 2012 09:30 PM
You're going to get banned for trying to buy services.
Report Abuse
ChrisMackle is not online. ChrisMackle
Joined: 13 Jul 2011
Total Posts: 18
12 Jan 2012 09:52 PM
LOL this topic is funny, i think you need to describe the issue more clearly
Report Abuse
Chadthedestroyer2 is not online. Chadthedestroyer2
Joined: 10 Dec 2007
Total Posts: 792
12 Jan 2012 10:29 PM
My fault for not understanding? Well forgive me for not knowing everything from birth. I'm sure I know much more about everything else over you. Apparently I do, because I've had over 3 slam-hit games released to the front page before. Your argument is invalid.
Report Abuse
ChrisMackle is not online. ChrisMackle
Joined: 13 Jul 2011
Total Posts: 18
13 Jan 2012 04:10 AM
Not knowing everything at birth?! Didnt you goto school??
Report Abuse
becabooz is not online. becabooz
Joined: 22 Oct 2011
Total Posts: 313
13 Jan 2012 04:46 AM
just put a _G.upgraded

sorry someone has already answered!
Report Abuse
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
13 Jan 2012 06:34 AM
Well instead of completily removing every script in workspace, and then cloning it.. why don't you just Disable, and re-enable them? It takes a longer for Lua to read instanced Scripts than The same ones that have been disabled, and then Re-enabled. Plus because of hackers, I believe many instanced scripts into workspace are no longer trusted, and will not Read the Source of the script.

Try this:

function onActivated()

script.Parent["Handle"].BrickColor = BrickColor.new("New Yeller")
a = game.Workspace:GetChildren()
for i=1, #a do
if a[i].className == "Script" then
a[i].Disabled = true
wait(0.01)
a[i].Disabled = false
end
end
script.Parent["Handle"].BrickColor = BrickColor.new("Black")
end

script.Parent.Activated:connect(onActivated)
Report Abuse
VitimanA is not online. VitimanA
Joined: 04 Apr 2008
Total Posts: 869
13 Jan 2012 09:52 AM
front page 3 times? i wount be surprised if i slabbed a few free models into a place and get it on 10000000 times in this community :/.

------------------------------------
Let's pull some video out of 5th grade pageant
And compare the way you talked then to how you're rapping - watsky
Report Abuse
tweetytime is not online. tweetytime
Joined: 19 Apr 2008
Total Posts: 397
13 Jan 2012 10:21 AM
-- uhm try this put ur swords in Lighting An dname em like C1 = low lvl , and C2 = higher vlv, EXt... Then change the part i tryped.



function onActivated()
player = game.Players:GetChildren()
for i = 1, #player do
game.Lighting:FindFirstChild("C1"):Clone().Parent = player[i].StarterGear -- Change c1 to ur upgraded wepon thats being upgraded
game.Lighting:FindFirstChild("C1"):Clone().Parent = player[i].Backpack -- Change c1 to ur upgraded wepon thats being upgraded
for _,v in pairs(game.Players:GetPlayers()) do
pcall(function() v.Character.C1:destroy() end) -- Change c1 to ur old wepon thats being replaced
pcall(function() v.Backpack.C1:destroy() end) -- Change c1 to ur old wepon thats being replaced
pcall(function() v.StarterGear.C1:destroy() end) -- Change c1 to ur old wepon thats being replaced
end
end
end

script.Parent.Activated:connect(onActivated)
Report Abuse
Chadthedestroyer2 is not online. Chadthedestroyer2
Joined: 10 Dec 2007
Total Posts: 792
13 Jan 2012 11:04 AM
@VitimanA

My games are legit'. Ever heard of 'After the Flash'?
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
13 Jan 2012 03:43 PM
@chadthedestroyer2

Just because you have front page games definitely does not mean that you are good at building. I've seen totally free modeled games that work like crap on the front page. Try again, buddy.

Also, for those that wanna read his PM>Me,

I don't understand the scripting terminology? Coming from a guy who can't even get 1 game to the front page like me? I'm more intelligent than you because I can get well-built and well-scripted games to the front page, and you can not. Have a nice day, loser. :)
Report Abuse
VitimanA is not online. VitimanA
Joined: 04 Apr 2008
Total Posts: 869
13 Jan 2012 05:28 PM
yes i saw after the flash, what i also see is free models

---

I'm digging for a deeper meaning cause beneath this skin is a beating the temperamental heaving heart of gentle heathen

-- Watksy

what do you know, it fits
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
13 Jan 2012 06:05 PM
Lol, just found a simple solution.

Not telling you though because you seem like a free modeling jerk, and you are arrogant enough to claim you're smarter than us because you're too stupid to understand and you've had front page games.
Report Abuse
ChrisMackle is not online. ChrisMackle
Joined: 13 Jul 2011
Total Posts: 18
13 Jan 2012 06:12 PM
bump 4 fun
Report Abuse
Chadthedestroyer2 is not online. Chadthedestroyer2
Joined: 10 Dec 2007
Total Posts: 792
16 Jan 2012 09:43 PM
I've already solved the problem on my own, so I don't need your help. Arrogance only applies if a person thinks they know they can solve a problem when they really don't know how to. I solved the problem, ergo, I am not as arrogant as you propose.

However, there are no free models in my series 'After the Flash'. The people that say this are like theists. You've 'seen' a free model in my game?

Other than the gun mesh and guns I bought from the leader of VS, I really have no idea what you're talking about. If you can find a genuine 'free model' in my game, I'll pay you 20k robux on the spot. Go ahead and try, all you're going to do is humiliate yourself.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
16 Jan 2012 09:58 PM
"If you can find a genuine 'free model' in my game"

"Other than the gun mesh and guns I bought from the leader of VS,"

Hypocrite. Give me 20K R$

Also..

- Skybox

Report Abuse
Chadthedestroyer2 is not online. Chadthedestroyer2
Joined: 10 Dec 2007
Total Posts: 792
16 Jan 2012 10:13 PM
The guns weren't free models when I bought them.

The skybox is under a category called "Skyboxes" in ROBLOX Studio, not in Free Models.

Insert 25 Cents. Try again.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 2Go to page: [1], 2 Next
 
 
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