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

Player gaming titles in a script?

Asked by 7 years ago

Not sure if this thing needs a script or not, but I was wondering how you go about adding titles for your game. For example, if a player gets to a certain level they unlock the title "Demigod". I've tried to figure out on my own but no luck, I need some assistance please.

1 answer

Log in to vote
0
Answered by 7 years ago

I would try something like this, value is meaning points you would need a seperate script to change values this just reads them so make a model with all the scripts in it then do this code make a INT value and name it NameChange if it is not already.

local Points = script.Parent.Value

if NameChange.Value >= 34 then -- how ever many points it is to change name stuff watever
h = script.Parent.Parent.Humanoid
function onTouch()
    script.Parent.Name = "Demigod" -- if does not work add another Parent
    wait(5) 
end
h.Touched:connect(onTouch)

have not tested it so not sure if it works

Ad

Answer this question