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
 

for alll you people who cant script

Previous Thread :: Next Thread 
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
03 Sep 2011 03:13 PM
use this and if it dosent work sorry i tried


http://www.roblox.com/lua-basics-item?id=60457014
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Sep 2011 03:15 PM
Post source on this thread. I can't see D:
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
03 Sep 2011 03:15 PM
not work lol i mean if it dosent help sorry i tried
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
03 Sep 2011 03:16 PM
I suggest you don't learn from him. If you learn the wrong way, you'll have troubles learning the right way.

Look at dingdong's tutorials instead. I don't rust someone who doesn't capitalize 'Lua'.

­<'+1 Post. Ujelly?'> IT'S A PEAR http://www.roblox.com/Pear-Hat-item?id=60907280
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Sep 2011 03:16 PM
No I meant, I don't want to take the model, and look at the thing. Just post the article here.
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
03 Sep 2011 03:16 PM
source???? nervousryry is my real account i got banned so im on my alt so im the source :P
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
03 Sep 2011 03:17 PM
Post the writing here. Post your tutorial.

­<'+1 Post. Ujelly?'> IT'S A PEAR http://www.roblox.com/Pear-Hat-item?id=60907280
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Sep 2011 03:17 PM
No. Uh. Post the WORDS from your tutorial here. The WORDS man.
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
03 Sep 2011 03:17 PM
nate890 that was kinda mean but i was just tryin to help peoples
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
03 Sep 2011 03:18 PM
Well, we'll see how good the tutorial is.
Post whatever you put in a script in the book here.

­<'+1 Post. Ujelly?'> IT'S A PEAR http://www.roblox.com/Pear-Hat-item?id=60907280
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Sep 2011 03:18 PM
No one is going to read your help. if you don't post the direct article here. >_<
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
03 Sep 2011 03:18 PM
I cant get in to it its on my alt account and i dont wanna take it i will in 5 days when i can get back on
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Sep 2011 03:19 PM
So you wrote this tutorial, but you yourself, cannot even get to it now? Why don't you take the model yourself, and post the writing here. If it is public domain you can take it yourself.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
03 Sep 2011 03:19 PM
Take the model, and copy and paste the source of the script.

­<'+1 Post. Ujelly?'> IT'S A PEAR http://www.roblox.com/Pear-Hat-item?id=60907280
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
03 Sep 2011 03:20 PM
I just took the model, and from what I see, there are multiple articles in several different scripts.

Do you teach generic for loops?


­<'+1 Post. Ujelly?'> IT'S A PEAR http://www.roblox.com/Pear-Hat-item?id=60907280
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
03 Sep 2011 03:21 PM
This is one of the examples;
print("Music Customizer Script Loaded")
-- Put whatever you want into the Pitch! Put Volume etc.
-- And rename the "BGMusic" to the name of the sound!

while true do
script.Parent.BGMusic.Pitch = 1
wait(0.1)
script.Parent.BGMusic.Pitch = 0.9
wait(0.1)
script.Parent.BGMusic.Pitch = 0.8
wait(0.1)
script.Parent.BGMusic.Pitch = 0.7
wait(0.1)
script.Parent.BGMusic.Pitch = 0.6
wait(0.1)
script.Parent.BGMusic.Pitch = 0.5
wait(0.1)
script.Parent.BGMusic.Pitch = 0.4
wait(0.1)
script.Parent.BGMusic.Pitch = 0.3
wait(0.1)
script.Parent.BGMusic.Pitch = 0.2
wait(0.1)
script.Parent.BGMusic.Pitch = 0.1
wait(0.1)
script.Parent.BGMusic.Pitch = 0
wait(0.1)
script.Parent.BGMusic.Pitch = 0.1
wait(0.1)
script.Parent.BGMusic.Pitch = 0.2
wait(0.1)
script.Parent.BGMusic.Pitch = 0.2
wait(0.1)
script.Parent.BGMusic.Pitch = 0.3
wait(0.1)
script.Parent.BGMusic.Pitch = 0.4
wait(0.1)
script.Parent.BGMusic.Pitch = 0.5
wait(0.1)
script.Parent.BGMusic.Pitch = 0.6
wait(0.1)
script.Parent.BGMusic.Pitch = 0.7
wait(0.1)
script.Parent.BGMusic.Pitch = 0.8
wait(0.1)
script.Parent.BGMusic.Pitch = 0.9
wait(0.1)
script.Parent.BGMusic.Pitch = 1
end

-- Script by nervousryry

­<'+1 Post. Ujelly?'> IT'S A PEAR http://www.roblox.com/Pear-Hat-item?id=60907280
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Sep 2011 03:21 PM
@nate890
Post here, so I can see. I'm on a Mac so I can't retrieve the content.
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
03 Sep 2011 03:24 PM
i probly made a couple mistakes so if i did sorry
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
03 Sep 2011 03:24 PM
Part 1 Functions
-- Go threw the scripts in order or you won`t learn annything.


--Part one...... functions. Here`s the one`s that are mostely used

onTouch,onClick,onChat

--Now you have just learned a couple functions. It might not make sense right
--now but just memerize these, because without one of these you`r script will never work

-- this is by nervousryry

Part 2 Tagging A Object

--Now were going to learn to find
--the object in Workspace. This is probly the seccond most important thing in a script

--Ok say you want to find a part you would type in

script.Parent.game.Workspace.Part

--You can tag annything at all even Player parts such as Right Arm,Left arm,Right Leg,Left Leg,Torso,Head

--this is by nervousryry

Part 3 first basic script

-- ok this is simple folow my steps and you will see how all this comes in to place

-- now the function
function onTouch(Part) -- this lets the script know how to start what you want the script to do so right now if you touch it it does nothing

--now we can make the Part do something

game.Workspace.Part5.Transparency = 1 --makes the Part invisable
wait(2) -- now that you made it wait 2 you can make it do something else were going to make the part visable again
game.Workspace.Part5.Transparency = 0 -- this makes it visable again
end -- you have to always put a end in a function remember Always!!!!
--and now learning what i had trouble with
game.Workspace.Touched:connect(onTouch) --this i had trouble remembering if it comes before end or after end it comes after btw this lets the script to know to do everything we just said onTouch,Or,onClick,Or,onChat whichever you used

--now lets see this script neat and put together

function onTouch(Part)
game.Workspace.Part5.Transparency = 1
wait(2)
game.Workspace.Part5.Transparency = 0
end
game.Workspace.Part5.Touched:connect(onTouch)

-- by nervousryry

Helpfull pages

--[[Here are some links to some usefull ROBLOX pages if you get stuck:

http://www.roblox.com/Help/Builderman.aspx
http://www.roblox.com/Forum/ShowForum.aspx?ForumID=19
http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20
http://www.roblox.com/Groups/group.aspx?gid=429
http://www.roblox.com/Groups/group.aspx?gid=372
http://wiki.roblox.com/index.php/Absolute_beginner%27s_guide_to_scripting
http://wiki.roblox.com/index.php/Your_first_script

other scripts to memorise
DecalTextureChangeScript

print("Decal Texture Changer Script Loaded")
while true do
script.Parent.Feli63.Head.face.Texture = "http://www.roblox.com/asset/?id=16554022"
wait(0.6)
script.Parent.Feli63.Head.face.Texture = "http://www.roblox.com/asset/?id=19014489"
wait(0.6)
script.Parent.Feli63.Head.face.Texture = "http://www.roblox.com/asset/?id=19575865"
wait(0.6)
script.Parent.Feli63.Head.face.Texture = "http://www.roblox.com/asset/?id=21175849"
wait(0.6)
script.Parent.Feli63.Head.face.Texture = "http://www.roblox.com/asset/?id=20971578"
wait(0.6)
end

-- Script by nervousryry

MusicCustomizerScript

print("Music Customizer Script Loaded")
-- Put whatever you want into the Pitch! Put Volume etc.
-- And rename the "BGMusic" to the name of the sound!

while true do
script.Parent.BGMusic.Pitch = 1
wait(0.1)
script.Parent.BGMusic.Pitch = 0.9
wait(0.1)
script.Parent.BGMusic.Pitch = 0.8
wait(0.1)
script.Parent.BGMusic.Pitch = 0.7
wait(0.1)
script.Parent.BGMusic.Pitch = 0.6
wait(0.1)
script.Parent.BGMusic.Pitch = 0.5
wait(0.1)
script.Parent.BGMusic.Pitch = 0.4
wait(0.1)
script.Parent.BGMusic.Pitch = 0.3
wait(0.1)
script.Parent.BGMusic.Pitch = 0.2
wait(0.1)
script.Parent.BGMusic.Pitch = 0.1
wait(0.1)
script.Parent.BGMusic.Pitch = 0
wait(0.1)
script.Parent.BGMusic.Pitch = 0.1
wait(0.1)
script.Parent.BGMusic.Pitch = 0.2
wait(0.1)
script.Parent.BGMusic.Pitch = 0.2
wait(0.1)
script.Parent.BGMusic.Pitch = 0.3
wait(0.1)
script.Parent.BGMusic.Pitch = 0.4
wait(0.1)
script.Parent.BGMusic.Pitch = 0.5
wait(0.1)
script.Parent.BGMusic.Pitch = 0.6
wait(0.1)
script.Parent.BGMusic.Pitch = 0.7
wait(0.1)
script.Parent.BGMusic.Pitch = 0.8
wait(0.1)
script.Parent.BGMusic.Pitch = 0.9
wait(0.1)
script.Parent.BGMusic.Pitch = 1
end

-- Script by nervousryry

Texture character changeing scri

--[[
bin = script.Parent



function onButton1Down(mouse)
local player = game.Players.LocalPlayer
if player == nil then return end


player.Character.Shirt.ShirtTemplate="Texture here"
player.Character.Pants.PantsTemplate="Texture here"
player.Character.Head.BrickColor= BrickColor.new(125)
p = player.Character:GetChildren()
for i=1, #p do
if p[i].className == "Hat" then
p[i]:Remove()
end
end

h = Instance.new("Hat")
m = Instance.new("Part")
h.Name = "John"
m.Parent = h
m.Position = player.Character.Head.Position
m.Name = "Handle"
m.formFactor = 0
m.Size = Vector3.new(1, 1, 1)
m.BottomSurface = 0
m.TopSurface = 0
m.Locked = true
script.Parent.Mesh:clone().Parent = m
h.Parent = player.Character
h.AttachmentPos = Vector3.new(0, -0.25, 0)

Sound1 = script.Parent.Tele
Sound2 = script.Parent.music
Sound1:play()

wait(1000)

Sound1:Stop()
Sound2:Play()




player.Character.Humanoid.Health=0
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"

end

function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

bin.Selected:connect(onSelected)



Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Sep 2011 03:24 PM
._.

That is the most inefficient thing I've seen in a LONG time. Here is something more improved (yes I know I could have abstracted the for loops into a function, but I don't really care).

coroutine.wrap(function(music)
while wait() and music do
for i = 1, 0, -.1 do
music.Pitch = i
wait()
end
for i = 0, 1, .1 do
music.Pitch = i
wait()
end
end
end)(script.Parent:findFirstChild 'BGMusic')
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
03 Sep 2011 03:25 PM
O.o you really posted everything woah i didnt realize i typed so much XD
Report Abuse
Crush47 is not online. Crush47
Joined: 17 Feb 2009
Total Posts: 626
03 Sep 2011 03:27 PM
Curse these macs and their unfortunate inability to play on ROBLOX V.V

Anyhow, I reccomend using these.

lua.org/pil
wiki.roblox.com

Also, I learned from studying scripts from free models. I started off editing them, then after I had memorized the syntax and some other things, I began scripting.

And also, did anyone else notice that the sample code posted above has a signature from a different player?
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
03 Sep 2011 03:29 PM
"--Part one...... functions. Here`s the one`s that are mostely used onTouch,onClick,onChat"
> Those aren't functions, those are names for functions that people use sometimes.

"script.Parent.game.Workspace.Part"
> DataModel is certainly not a valid member of the parent of the current thread.

Just two out of many mistakes. I suggest you learn scripting yourself, before you start teaching ;)

Though very biased (because I wrote it) I suggest you read:
wiki.roblox.com/index.php/Cookbook
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