Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

4 comments

0

Please use the code block formatting to make it easier to read.

0

You'd need a StringValue, and just replace the if me.Data.DevilFruit.Value == 1 to if me.Data.DevilFruit.Value == "HieHie".

0

Thanks!!

0

You can edit the original post on the right side of the question. Under your avatar.

2 answers

✓ Accepted answer

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

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~~~~~~~~~~~~~~~~~


This discussion is preserved as it was. New answers, comments, and votes are closed.