A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog 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
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
naknak
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
Supernapalm
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
m27frogy
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
slayer9365
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
myrco919
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
branefreez
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
ninga95
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
CloneTrooper787
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
raboy117
local script help: Vote_lcaplocal script help: Voting_barlocal script help: Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
local script help: EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
local script help: EmptySeptember 14th 2020, 1:16 pm by MrNicNac

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

» New Site Possibly
local script help: EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
local script help: EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
local script help: EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
local script help: EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
local script help: EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
local script help: EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
local script help: EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
local script help: EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
local script help: EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
local script help: EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
local script help: EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
local script help: EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
local script help: EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
local script help: EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
local script help: EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
local script help: EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
local script help: EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 local script help:

Go down 
2 posters
AuthorMessage
Lukasm
Novice Scripter
Novice Scripter
Lukasm


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

local script help: Empty
PostSubject: local script help:   local script help: EmptyApril 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
end
end
end
Back to top Go down
MrNicNac
Expert Scripter
Expert Scripter
MrNicNac


Posts : 27
Join date : 2011-03-06
Age : 28

local script help: Empty
PostSubject: Re: local script help:   local script help: EmptyApril 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
Lukasm
Novice Scripter
Novice Scripter
Lukasm


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

local script help: Empty
PostSubject: Re: local script help:   local script help: EmptyApril 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





local script help: Empty
PostSubject: Re: local script help:   local script help: Empty

Back to top Go down
 
local script help:
Back to top 
Page 1 of 1
 Similar topics
-
» The Local Script: A Robloxian's Worst Nightmare
» local scripts?
» Find a local solar panel installer.
» I just make a Local, Tool-less weapon system, and a radar complete with a rotating compass.
» C++ script

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