of     1   

MHX
#36218233Saturday, October 30, 2010 11:42 AM GMT

Ive made this myself, and since Im not such a good scripter ... Its very easy. How to make this one easier? It laggs a lot when I use it. If there's a way to make this easier, tell me HOW please. Not just "use tables"; I dont know how to use them and I failed at understanding the wiki. print("JumperScript_Loaded") function onTouched(part) if part.Parent ~= nil then local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.Parent.Torso.Velocity=Vector3.new(0,200,0) local sec = script.Parent.Parent:findFirstChild("OneWayJumpSecurity") sec.Transparency = 1 sec.CanCollide = false F = Instance.new("Fire") F.Parent = sec F.Heat = 25 F.Size = 30 wait(1.5) sec.Transparency = 0 sec.CanCollide = true wait(8.5) sec.Fire:Remove() S = Instance.new("Smoke") S.Parent = sec S.Opacity = 1 S.RiseVelocity = 24 S.Size = 38 wait(1) S.Size = 36 wait(1) S.Size = 34 wait(1) S.Size = 32 wait(1) S.Size = 30 wait(1) S.Size = 28 wait(1) S.Size = 26 wait(1) S.Size = 24 wait(1) S.Size = 22 S.RiseVelocity = 22 wait(1) S.Size = 20 S.RiseVelocity = 20 wait(1) S.Size = 18 S.RiseVelocity = 18 wait(1) S.Size = 16 S.RiseVelocity = 16 wait(1) S.Size = 14 S.RiseVelocity = 14 wait(1) S.Size = 12 S.RiseVelocity = 12 wait(1) S.Size = 10 S.RiseVelocity = 10 wait(1) S.Size = 8 S.RiseVelocity = 8 wait(1) S.Size = 6 S.RiseVelocity = 6 wait(1) S.Size = 4 S.RiseVelocity = 4 wait(1) S.Size = 2 S.RiseVelocity = 2 wait(1) S.Size = 1 S.RiseVelocity = 1 wait(1) sec.Smoke:Remove() end end end script.Parent.Touched:connect(onTouched)
AgentFirefox
Top 100 Poster
#36218637Saturday, October 30, 2010 12:05 PM GMT

print("JumperScript_Loaded") deb = false function onTouched(part) if part.Parent ~= nil and not deb then deb = true local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.Parent.Torso.Velocity=Vector3.new(0,200,0) local sec = script.Parent.Parent:findFirstChild("OneWayJumpSecurity") if not sec then deb = false return end sec.Transparency = 1 sec.CanCollide = false F = Instance.new("Fire") F.Parent = sec F.Heat = 25 F.Size = 30 wait(1.5) sec.Transparency = 0 sec.CanCollide = true wait(8.5) sec.Fire:Remove() S = Instance.new("Smoke", sec) S.Opacity = 1 S.RiseVelocity = 24 for i = 38, 1, -1 do S.Size = i if i < 23 then S.RiseVelocity = i wait(1) end end sec.Smoke:Remove() end end deb = false end script.Parent.Touched:connect(onTouched)
AgentFirefox
Top 100 Poster
#36218678Saturday, October 30, 2010 12:06 PM GMT

Crap... The above script doesn't work as desired. Use this one: print("JumperScript_Loaded") deb = false function onTouched(part) if part.Parent ~= nil and not deb then deb = true local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.Parent.Torso.Velocity=Vector3.new(0,200,0) local sec = script.Parent.Parent:findFirstChild("OneWayJumpSecurity") if not sec then deb = false return end sec.Transparency = 1 sec.CanCollide = false F = Instance.new("Fire") F.Parent = sec F.Heat = 25 F.Size = 30 wait(1.5) sec.Transparency = 0 sec.CanCollide = true wait(8.5) sec.Fire:Remove() S = Instance.new("Smoke", sec) S.Opacity = 1 S.RiseVelocity = 24 for i = 38, 1, -1 do S.Size = i if i < 23 then S.RiseVelocity = i end wait(1) end sec.Smoke:Remove() end end deb = false end script.Parent.Touched:connect(onTouched)
MHX
#36219078Saturday, October 30, 2010 12:22 PM GMT

I'm trying to understand the script and the tables. Please answer y questions: print("JumperScript_Loaded") deb = false --Whats 'Deb', could you explain to me, please? function onTouched(part) if part.Parent ~= nil and not deb then deb = true local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.Parent.Torso.Velocity=Vector3.new(0,200,0) local sec = script.Parent.Parent:findFirstChild("OneWayJumpSecurity") if not sec then deb = false return end sec.Transparency = 1 sec.CanCollide = false F = Instance.new("Fire") F.Parent = sec F.Heat = 25 F.Size = 30 wait(1.5) sec.Transparency = 0 sec.CanCollide = true wait(8.5) sec.Fire:Remove() S = Instance.new("Smoke", sec) --Whats 'sec' for at this part? Do you want to spawn 'sec', or what's that for? S.Opacity = 1 S.RiseVelocity = 24 for i = 38, 1, -1 do -- 38 is Size, 1 is the time between the Sizes and -1 the number to subtract everytime, am I right? Is the order always Value, Time, Effect? S.Size = i --Adds Size to the definition i, am I right? if i < 23 then -- if Size is below 23 the same process happens to RiseVelocity, right? But what about i = 38, is the script ignoring this part because you defined RiseVelocity before? S.RiseVelocity = i -- Does Size get disabled or does i work for Size and RiseVelocity now? wait(1) end end sec.Smoke:Remove() end end deb = false end script.Parent.Touched:connect(onTouched)
AgentFirefox
Top 100 Poster
#36219399Saturday, October 30, 2010 12:34 PM GMT

I guess I didn't explain it, did I? S = Instance.new("Smoke", sec) --Whats 'sec' for at this part? Do you want to spawn 'sec', or what's that for? --sec is your defined brick. In the Instance.new function, the first argument (a string) represents the className, --and the second argument (a userdata) is the PARENT of the newly created object. The default value for the --second argument is nil, unless stated otherwise. for i = 38, 1, -1 do -- 38 is Size, 1 is the time between the Sizes and -1 the number to subtract everytime, am I right? Is the --order always Value, Time, Effect? --This line just creates a countdown. It starts from 38 and counts to 1 by adding -1. S.Size = i --Adds Size to the definition i, am I right? --No. Size is SET to the value of i. Since we know i is a number between 38 and 1, it is valid. if i < 23 then -- if Size is below 23 the same process happens to RiseVelocity, right? -- But what about i = 38, is the script ignoring this part because you defined RiseVelocity before? --The same process happens to RiseVelocity when i is less than 23. The script does ignore this part when the --condition (i < 23) is false. If statement only continue if the condition is true. S.RiseVelocity = i -- Does Size get disabled or does i work for Size and RiseVelocity now? --Since Size has been changed already, it stays its changed value. RiseVelocity is changing now, because we know i < 23.
AgentFirefox
Top 100 Poster
#36219432Saturday, October 30, 2010 12:35 PM GMT

Also, I did NOT use any tables. There was a better way using a numeric for loop. If you want to learn about tables, let me know. I may be able to come up with a small tutorial.
MHX
#36219918Saturday, October 30, 2010 12:51 PM GMT

Thanks for the explanation =P I've understood everything after reading it a couple of times. Maybe I'll ask you about tables later, I'm writing down your name, I'll ask you when I need help with tables / When I need them. I'm working on a Build, Fight and Life place since I dont like the current ones.
MHX
#36220069Saturday, October 30, 2010 12:56 PM GMT

Oh; One last question: Whats 'Deb' for, could you explain to me, please?
Overscores
#36220204Saturday, October 30, 2010 12:59 PM GMT

debounce
AgentFirefox
Top 100 Poster
#36220415Saturday, October 30, 2010 1:04 PM GMT

I use it as a debounce to prevent the same thing happening again before the first one finishes.
MHX
#36220417Saturday, October 30, 2010 1:05 PM GMT

What is that for?
MHX
#36220440Saturday, October 30, 2010 1:05 PM GMT

Ah, right. Ive seen this with "Enabled = true / false" before.
AgentFirefox
Top 100 Poster
#36221040Saturday, October 30, 2010 1:23 PM GMT

It's the same concept. ^_^
stephan122
#36223441Saturday, October 30, 2010 2:20 PM GMT

how do u script send me a pm plz be my script teatcher and if i were bc but im not i would donate to u
MHX
#36234137Saturday, October 30, 2010 5:26 PM GMT

I've been trying the script now; The deb part does not work. Any fix?
MHX
#36235094Saturday, October 30, 2010 5:39 PM GMT

Whats wrong with the deb part. Its just not de-enabling the function of touching.
MHX
#36236531Saturday, October 30, 2010 6:01 PM GMT

Okay; Other question: How to disable the script when it starts and enable it when it ends, so the script cant run twice at the same time.

    of     1