#Click button to reset stage level
70 messages · Page 1 of 1 (latest)
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
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)
Wdym by reset stage level back to one
oooh
I am a little dumb so ig ot confused
isn't that just changing leaderboard value tho
Or is that what he's tryna do
That's what he said¿?
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)
Idk what he's tryna do I got confused
Then try that if u can
yeah or change the leaderboard
by reset your stage level back to one you mean change leaderboard right
Yep izan's code will work then
I got confused 😅
replace with this in the button script?
yeah lol
replace that with the script that you sended
this?
yes
Ye
hmmm it doesnt work
Any errors?
print(player) where? 😅
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)
did it, nothing happened
Could u send photo or where it is located in the explorer?
oh waiy
ofc!
Does the sound play?
** You are now Level 4! **
yep, the sound works perfectly fine
add print("test") Before sound:play
And after sound:play
Tell if it prints test twice
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)
yes?
how did I not notice that
I am dumb
😭
OMFg
IT WORKSSS!!!!
YYAYYYY
OMG FINALLY TYSMMM!!
now my game is actually playable lol
tysm!!