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: Strings + Stuff + More Strings

Previous Thread :: Next Thread 
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
11 Feb 2012 11:33 AM
script.Parent.Parent.Name = "Greetings "..hit.Parent.Name.. ", and welcome to your adventure!"


What am I doing wrong here...
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
11 Feb 2012 11:34 AM
Is it parented correctly? If it is, show us the whole script.
Report Abuse
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
11 Feb 2012 11:35 AM
Using the hat I am using..

    script.Parent.Parent.Text = "Greetings "..hit.Parent.Name.. ", and welcome to your adventure!"

And I think you meant text? I'm not really sure why you would want to rename something.
Report Abuse
ledger is not online. ledger
Joined: 01 Mar 2008
Total Posts: 1924
11 Feb 2012 11:42 AM
Rename something if it was a humanoid, to show the name of it. (Text)
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
11 Feb 2012 11:43 AM
If it's a model with a humanoid, people often change the name of the model so that it changes the text above the model. It makes it seem like they are talking to you.
Report Abuse
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
11 Feb 2012 11:44 AM
Oh right, well there is nothing wrong with the script you gave us.
Report Abuse
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
11 Feb 2012 11:45 AM
You should include the whole .Touched function if you want help.
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
11 Feb 2012 11:46 AM
What if instead, there was a number value in between those two string sections?

What would I do?
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
11 Feb 2012 11:47 AM
And since you guys asked for it, here's the entire script:

_______________________________________________


local lvlmin = script.Parent.LvlMin
local gauge = script.Parent.ExpGauge

function oCh(changedval)

local amnt = script.Parent.ExpAmount

if amnt.Value == lvlmin.Value or amnt.Value >= lvlmin.Value - 1 then

gauge.Size = UDim2.new(1, 0, 1, 0)

local lvlupui = game.Lighting:findFirstChild("LevelUp!"):clone()
lvlupui.Parent = script.Parent.Parent.Parent
lvlupui.Adornee = script.Parent.Parent.Parent.Parent.Character.Head
local sparkl = Instance.new("Sparkles")
sparkl.Parent = script.Parent.Parent.Parent.Parent.Character.Torso
script.Parent.AmountDisplay.Text = "Experience --- "..lvlmin.." / "..lvlmin.." )"


wait(3.5)

lvlupui:remove()
sparkl:remove()

gauge.Size = UDim2.new(0, 0, 1, 0)

local remainder = amnt.Value - lvlmin.Value

script.Parent.Parent.Parent.Parent.leaderstats.Level.Value = script.Parent.Parent.Parent.Parent.leaderstats.Level.Value + 1
lvlmin.LeveltoGet.Value = script.Parent.Parent.Parent.Parent.leaderstats.Level.Value + 1
script.Parent.ExpAmount.Value = 0

amnt.Value = remainder
script.Parent.AmountDisplay.Text = "Experience --- "..amnt.." / "..lvlmin.." )"

-- -- -- --

elseif amnt.Value <= lvlmin.Value then
gauge.Size = UDim2.new((amnt.Value)/(lvlmin.Value), 0, 1, 0)
script.Parent.AmountDisplay.Text = "Experience --- "..amnt.." / "..lvlmin.." )"

end
end

-- -- -- --

script.Parent.ExpAmount.Changed:connect(oCh)

_______________________________________________________-

I'm having trouble with the Text parts.
Report Abuse
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
11 Feb 2012 11:51 AM
    local lvlmin = script.Parent.LvlMin -- An object
    
    script.Parent.AmountDisplay.Text = "Experience --- "..lvlmin.." / "..lvlmin.." )" --Looking for a string

LvlMin is an object, if it's a value, then use LvlMin.Value
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
11 Feb 2012 11:53 AM
Nevermind; I got it to work. :3
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