A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
HomeFAQRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Log in automatically: 
:: I forgot my password
Top posters
Top posting users this month
Latest topics
» Send me an Email
January 8th 2016, 10:14 am by naknak

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
July 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
July 6th 2015, 4:16 pm by m27frogy

» Ambassador!
April 15th 2015, 11:40 pm by naknak

» Boop - Tag
April 13th 2015, 9:46 pm by naknak

» Vip Class Script
April 13th 2015, 4:54 pm by naknak

» Who's active?!
April 13th 2015, 4:52 pm by naknak

» Where to go from here.
April 13th 2015, 4:51 pm by naknak

» Genesis Point
July 17th 2014, 7:04 pm by branefreez

» Reward System
July 17th 2014, 5:41 am by m27frogy

» Script Request
July 10th 2014, 11:43 am by naknak

» local scripts?
July 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
July 10th 2014, 11:36 am by naknak

» Hi. I am new here
April 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
January 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
January 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
January 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
November 26th 2013, 3:33 pm by Keanu73

» Improve Coding
October 26th 2013, 1:12 pm by pook03

» Simple Button
September 1st 2013, 6:19 pm by branefreez

Share | 

 local script help:

Go down 
Novice Scripter
Novice Scripter

Posts : 2
Join date : 2012-04-07
Age : 21
Location : Buckinghamshire, England

PostSubject: local script help:   April 7th 2012, 7:28 am

Hi, I have got this script and I was told to put it into a local script then put the local script into the Starter Gui. My problem is how do I put it into a local script. (I am fairly new to scripting but i know the basics). Here is the script:

repeat wait() until game.Players.LocalPlayer.Character
script.Parent = game.Players.LocalPlayer.Character

TimeToKill = 30
NoDamageItem = "Name of item here"

Torso = script.Parent.Torso
Humanoid = script.Parent.Humanoid

while wait(30/Humanoid.MaxHealth) do
if Torso.Position.Y >= 59 then
if script.Parernt:FindFirstChild(NoDamageItem) == nil then
script.Parent.Humanoid.Health = script.Parent.Humanoid.Health -1
Back to top Go down
Expert Scripter
Expert Scripter

Posts : 25
Join date : 2011-03-06
Age : 22

PostSubject: Re: local script help:   April 7th 2012, 9:27 am

You know how to insert a script when in Roblox Studio?

Insert -> Object -> Script

Well simply find the object named LocalScript instead of Script. If you need in-depth help on Roblox Studio, then search it on wiki.roblox.com.
Back to top Go down
Novice Scripter
Novice Scripter

Posts : 2
Join date : 2012-04-07
Age : 21
Location : Buckinghamshire, England

PostSubject: Re: local script help:   April 7th 2012, 11:22 am

Thank you, I just didn't know how to do local scripts as i have only used normal scripts before now
Back to top Go down
Sponsored content

PostSubject: Re: local script help:   

Back to top Go down
local script help:
Back to top 
Page 1 of 1
 Similar topics
» Chess Script
» Another Cinderella Story Movie Script
» Firefox 4 - Mybrute stuff
» Phantom Zone Chatswood closing it's doors.
» JavaScript Chess

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Questions and Help :: Scripting-
Jump to: