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

Can someone make a click to get morph that require a stat to get?

1 answer

Well, let me introduce you to Conditional Structures.

From what i've read, you want to get a morph, but you'll need a certain stat to get it.

First, i will locate the stat. In this example, i'll be using a stat called Strength(Number value)

local p = game.Players.LocalPlayer
local stat = p.Character:WaitForChild("Strength")

-- using a mouseclick function since you want to get the morph when you click something

ClickDetector.MouseClick:Connect(function(c)
	if stat.Value == 10 then -- if my strength value is 10, then you can clone the morph in below
		-- blah blah
	end
end)

I hope this helped, if you have any questions, feel free to let me know!

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