#Click button to reset stage level

70 messages · Page 1 of 1 (latest)

random shard
#

here is the stage scripts

#

as u can see, i am at the first level but my stage level in the leaderboard is still 12

#

i dont have any scripting knowledge so i dont know what to modify; this was a kit i used

minor cedar
#
local Sound = script.Parent.Sound
local Clicker = script.Parent.ClickDetector

local function OnClick(player)
    
    Sound:Play(1169755927)
    
    player.leaderstats.Stage = 0
    
end

Clicker.MouseClick:Connect(OnClick)
fleet swan
#

Wdym by reset stage level back to one

random shard
#

oooh

fleet swan
#

I am a little dumb so ig ot confused

fleet swan
#

Or is that what he's tryna do

minor cedar
random shard
#

when i press the rebirth button mesh i want it to teleport me back to stage one (which it does) and reset my stage level back to one (but it doesnt)

fleet swan
random shard
#

yeah or change the leaderboard

fleet swan
#

Yep izan's code will work then

#

I got confused 😅

random shard
minor cedar
random shard
minor cedar
#

yes

random shard
#

i sent two scrips

#

ok!

fleet swan
#

Ye

random shard
#

hmmm it doesnt work

fleet swan
random shard
#

ill put it in the other script

#

no errors from what i can

#

maybe wrong placement?

minor cedar
#

do print(player)

#

and test

random shard
#

print(player) where? 😅

minor cedar
#
local Sound = script.Parent.Sound
local Clicker = script.Parent.ClickDetector

local function OnClick(player)
    
    Sound:Play(1169755927)
    
    player.leaderstats.Stage = 0
    
    print(player)
    
end

Clicker.MouseClick:Connect(OnClick)
random shard
#

did it, nothing happened

minor cedar
#

Could u send photo or where it is located in the explorer?

random shard
#

oh waiy

fleet swan
random shard
errant nymphBOT
#

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

random shard
fleet swan
#

And after sound:play

#

Tell if it prints test twice

minor cedar
#

oh

#

wait

#

lol

#

forgot the value

#

what a dumb

#
local Sound = script.Parent.Sound
local Clicker = script.Parent.ClickDetector

local function OnClick(player)
    
    Sound:Play(1169755927)
    
    player.leaderstats.Stage.Value = 0
    
    print(player)
    
end

Clicker.MouseClick:Connect(OnClick)
random shard
fleet swan
#

I am dumb

#

😭

random shard
#

OMFg

#

IT WORKSSS!!!!

#

YYAYYYY

#

OMG FINALLY TYSMMM!!

#

now my game is actually playable lol

#

tysm!!

fleet swan
#

np even though I didn't do anything

#

😅

random shard
#

loll

fleet swan
#

People get this far without any scripting knowledge

#

Then there is me

#

so lazy that I can't bother finishing a levelling system since last week

random shard
#

lol

#

at least ur not purely using free models