Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do i make a value a text instead of a number?

Asked by 9 years ago

This is the script and i want to have the 1 as a text and i want it has HieHie.

if me.Data.DevilFruit.Value == 1 then if script.Parent:findFirstChild("HieHie") == nil then game.Lighting.Afruit:findFirstChild("HieHie"):clone().Parent = script.Parent game.Lighting.Animate:findFirstChild("AnimateHie"):clone().Parent = me.Character me.Character:findFirstChild("AnimateHie").Disabled = false end end

Thanks for reading :3

0
Please use the code block formatting to make it easier to read. Necrorave 560 — 9y
0
You'd need a StringValue, and just replace the if me.Data.DevilFruit.Value == 1 to if me.Data.DevilFruit.Value == "HieHie". ISellCows 2 — 9y
0
Thanks!! blestdude 0 — 9y
0
You can edit the original post on the right side of the question. Under your avatar. Necrorave 560 — 9y

2 answers

Log in to vote
0
Answered by 9 years ago

For starters, please insert your code into a code block.


if me.Data.DevilFruit.Value == 1 then if script.Parent:findFirstChild("HieHie") == nil then game.Lighting.Afruit:findFirstChild("HieHie"):clone().Parent = script.Parent game.Lighting.Animate:findFirstChild("AnimateHie"):clone().Parent = me.Character me.Character:findFirstChild("AnimateHie").Disabled = false end end

I'm guessing you'd like to animate the player. For that you may want to do something like:


if me.Data.DevilFruit.Value then if not script.Parent:findFirstChild("HieHie") then Anim=Instance.new("Animation") Anim.AnimationId="(insert export id here)" LoadedAnim=(Path to Humanoid):LoadAnimation(Anim) LoadedAnim:Play() end end

If this does not work, check your output for errors.

If it does, hit that accept button!

~Chem

Ad
Log in to vote
0
Answered by 9 years ago

This is the script and i want to have the 1 as a text and i want it has HieHie.

if me.Data.DevilFruit.Value == 1 then if script.Parent:findFirstChild("HieHie") == nil then game.Lighting.Afruit:findFirstChild("HieHie"):clone().Parent = script.Parent game.Lighting.Animate:findFirstChild("AnimateHie"):clone().Parent = me.Character me.Character:findFirstChild("AnimateHie").Disabled = false end end

Thanks for reading :3~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~

Answer this question