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: script that gives a script

Previous Thread :: Next Thread 
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 07:57 PM

If the value of Read is 1 and humanoid ~- nil, then a script inside of this script(Jumping script) is to be put inside a player's characer, it doesn't work for some reason.

script.Parent.Touched:connect(function(hit)
human = hit.Parent:FindFirstChild("Humanoid")
rdy = script.Parent.Parent.Ready
js = script.JumpingScript:Clone()
if rdy.Value ~= 1 then return end
if human == nil then return end
human.Walkspeed = 0
js.Parent = hit.Parent
rdy.Value = 2
end)
Report Abuse
HaileyForever is not online. HaileyForever
Joined: 01 Oct 2011
Total Posts: 1496
22 Nov 2011 07:58 PM
Script that gives a script:

s = Instance.new("Script", Workspace.drmiewlo)

~iHailey
Report Abuse
Admiral1160 is not online. Admiral1160
Joined: 11 Jun 2010
Total Posts: 364
22 Nov 2011 07:58 PM
What does the error message in Output say? This'll help us get an impression of the problem (remember, don't post 1337 lines of script and say, "IT NOET WERK!!!!1!!1!11!111)
Report Abuse
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 08:02 PM
I hate how people ask what the output is, DO YOU REALLY THINK I'D BE ASKING IF THE OUTPUT SAID ANYTHING!?!?!

There is nothing in the output.
Report Abuse
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 08:07 PM
@Admiral, you're a scripting noob, you said so yourseld in another post(http://www.roblox.com/Forum/ShowPost.aspx?PostID=58408968)

So don't even TRY to tell me what to do.
Report Abuse
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 08:08 PM
@Hailey, That inserts an empty script, I'm inserting a script that is not empty.
Report Abuse
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 08:12 PM
bump
Report Abuse
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 08:18 PM
I'm guessing this is the part of day when no one is online?
Report Abuse
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 08:25 PM
Anyone?
Report Abuse
VictoryEagle is not online. VictoryEagle
Joined: 07 Nov 2011
Total Posts: 75
22 Nov 2011 10:21 PM
I'm no expert, but can't you just have that script off somewhere where it doesn't do anything, and then copy it into the person when you need it to? Or... it kind'a looks like you've already done that. No clue, really.
Well, maybe it's impossible to clone written scripts. Because that could be used for major trolling. Like those "anti-lag" scripts, which, as far as I can tell, just clone themselves as children of other blocks or models or whatnot.
Report Abuse
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 10:36 PM
Seriously, don't even click on the scripting helpers section if your intention is to answer and you don't have a bloody clue abot scripting.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
22 Nov 2011 11:20 PM
script.Parent.Touched:connect(function(hit)
human = hit.Parent:FindFirstChild("Humanoid")
rdy = script.Parent.Parent.Ready
js = script.JumpingScript:clone()
if rdy.Value == 1 then return end
if human ~= nil then return end
human.WalkSpeed = 0
js.Parent = hit.Parent
rdy.Value = 2
end)
Report Abuse
drmiewlo is not online. drmiewlo
Joined: 14 Mar 2012
Total Posts: 1782
22 Nov 2011 11:48 PM
Yah I caught Walkspeed should be WalkSpeed, just forgot to post it, Thanks anyways.

Signature: want meshes returned? http://www.roblox.com/Forum/ShowPost.aspx?PostID=58420981
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