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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 11 Feb 2012 11:44 AM |
| Oh right, well there is nothing wrong with the script you gave us. |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 11:45 AM |
| You should include the whole .Touched function if you want help. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 22 Dec 2008 |
| Total Posts: 4761 |
|
|
| 11 Feb 2012 11:53 AM |
| Nevermind; I got it to work. :3 |
|
|
| Report Abuse |
|
|