#how to make a player model change when leveling up?

1 messages · Page 1 of 1 (latest)

hollow hearth
#

For example i have a froakie model then i wanna make it evolve how would i change the model

nocturne kelp
#

do Model:Destroy()

#

nah

#

is joke

#

idk

tropic vortex
#

yes bro

#

do Model:Destroy()

#

epic

nocturne kelp
#

lol

nocturne kelp
#

nah

#

they warned me

hollow hearth
#

😭😭😭

nocturne kelp
#

lol

#

@hollow hearth

#

what you need?

hollow hearth
#

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

west jayBOT
#

studio** You are now Level 1! **studio

nocturne kelp
#

uh

west jayBOT
#

studio** You are now Level 3! **studio

nocturne kelp
#

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

hollow hearth
#

Okay ikay

#

Thabk you ill try it

#

I dont know ANYTHING about code so uhk

#

Wishbme luck

past edge
#

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")

past edge
past edge
hollow hearth
#

I know 😔

past edge
#

wait is deprecated (not recommended)

hollow hearth
#

Im doing the models animations and coding know 😔

nocturne kelp
#

@past edge i didnt know that

#

i will redo it so

#

wow

nocturne kelp
#

@hollow hearth let me cook

hollow hearth
#

Go on?

#

also unrelated kinda

#

should i make him T pose or

#

have a stance

#

@nocturne kelp

past edge
#

T pose is only used because it is easier to rig

nocturne kelp
#

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?

hollow hearth
nocturne kelp
#

@past edge

#

lua thing dont work

hollow hearth
#

im using the roblox script btw

nocturne kelp
#

uh and the animation thing you do that

hollow hearth
nocturne kelp
#

i didnt prove it so idk if it work or not

#

im trying to do lua in discord

#

wait

west jayBOT
#

studio** You are now Level 4! **studio

nocturne kelp
#

uhh

past edge
#

copy my message

nocturne kelp
#

yeah

#

now?

past edge
#
print("now just type whatever you want")

#

nonoo

#

it needs to be between lua and the final line

#
print("A")

nocturne kelp
#
print("Ohhh")
past edge
#

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

nocturne kelp
#
while true do
print("idk")
#

ok

past edge
#

also always add a task.wait on while true do loops

#

because if no task.wait roblox studio crashes

nocturne kelp
#

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

daring lily
#

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

hollow hearth
#

Omg i went

west jayBOT
#

studio** You are now Level 2! **studio

hollow hearth
#

Came back

#

And got a early christmas present

#

Thanknyo7uu7

daring lily