#how to make a player model change when leveling up?
1 messages · Page 1 of 1 (latest)
lol
😭😭😭
Like
You know pokemon fighers EX?
Yk how like over time
You would gain exp
Then when you hit level 16
You could press a button to evolve
And 36 for last evolution
And sometimes you could mega
I wanna know how to like
A. Make the model change whenever you evolve
B. Make moves change when you evolve
** You are now Level 1! **
uh
** You are now Level 3! **
you need firts a leaderstats
make a script in serverscriptservice called "Leaderstats"
now do this script
Local Players = game:GetService("Players") Players.PlayerAdded:Connect(Function(player) local leaderstats = instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local xp = instance.new("IntValue") xp.Name = "leaderstats" xp.Parent = leaderstats xp.value = 0
then do
while true do wait(1) xp.value = xp.value +1
Okay ikay
Thabk you ill try it
I dont know ANYTHING about code so uhk
Wishbme luck
yo
dont do that
when you write a code here on discord
type three `
and then type lua
and then enter and more three `
print("Like that")
copy this message to see how it is written
and if you want to do a game you need to learn coding
I know 😔
and use task.wait(1) instead of wait()
wait is deprecated (not recommended)
Im doing the models animations and coding know 😔
@hollow hearth let me cook
Go on?
also unrelated kinda
should i make him T pose or
have a stance
@nocturne kelp
it actually doesnt matter
T pose is only used because it is easier to rig
ok put make a script where you want
and put your character in replicatedstorage
and name it "Character"
uhm
the lua thing dont work
how you did it?
ahhh got you
uh and the animation thing you do that
** You are now Level 4! **
uhh
print("now just type whatever you want")
nonoo
it needs to be between lua and the final line
print("A")
print("Ohhh")
and if you press enter
inside it
you will just add one line
not send the message
to send the message you need to leave the area between lua and the last line
this is working
because it will only work with lua keywords
like
if else while etc
roblox studio language is Luau
also always add a task.wait on while true do loops
because if no task.wait roblox studio crashes
UH
i didnt know that too
i didnt prove the script so dk if it works
local Players = game:GetService("Players")
local Character = game.ReplicatedStorage:WaitForChild("Character")--Put your upgraded character here
while true do
task.wait(3)
script.Parent = game.ServerScriptService
script.Name = "Leaderstats"
end
Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local xp = Instance.new("IntValue")
xp.Name = "XP"
xp.Parent = leaderstats
local level = Instance.new("IntValue")
level.Name = "Level"
level.Parent = leaderstats
while true do
task.wait(1)
xp.Value = xp.Value +1
end
if xp.Value == 36 then
xp.Value = xp.Value -36
level.Value = level.Value +1
end
if level.Value == 16 then
level.Value = level.Value -16
player.Character.Humanoid.Health = 0
Character.Parent = game.StarterPlayer
end
end)
@hollow hearth
try it
what is this abomination
lowkey just make a numbervalue
named in xp
add a script that control the xp
use xp.Changed(val)
if val == 36 then
xp.Val - 36
then do all your character stuff
Omg i went
** You are now Level 2! **
what did you get 
This
Managed to make this in the time