#Help please
192 messages · Page 1 of 1 (latest)
I didn't understand really well, if you want the script in the server interact with the client use RemoteEvents
spanish?
wdym
so you want to change the Punch Value and after it reaches a certain amount of punches you reach a new level?
then what
when i click it, it doesnt change from level 0 to redubll
** You are now Level 1! **
you want "level 0" to become "Redbull"?
yea
bc when i click it it doesnt change
but imo its bc the leaderboard is on svs, and the script for the podium is on a piece
Find the player who clicked it,
search their players > leaderboard stats > level thingy
and change its values
ok
use RemoteFunction to send a message to the server and make it so the thing in the leaderboard changes when the RemoteFunction is fired
like
if remotefunction = true then change the lb to redbull?
ty
btw in which script do i add this
in the click detector or serverscript service
You need to have 2 scripts
One server that listens for the remote function to increase your level, and one client to detect the click and trigger the remote function
Np
Yes server script service
And the one in client you can put it wherever you want
In starter player, starter gui or starter character
k
** You are now Level 2! **
Also, you can avoid using remote function using click detector
look
Wait you're already using a click detector ?
yes
You don't need local script and remote function then
Show me your script in the part
Ok show me your script
You want it to increase your level right
yes
i want when i click that, instead of level 0 it says redbull
yes
no
Yes ok then you will have to learn how to script haha
So
First detect when someone clicks on your thingy
Here, you should do something like that
local clickDetect = script.Parent
local function onClick(who: Player)
print(who.Name)
end
clickDetect.MouseClick:Connect(onClick)
Replace everything by that
It should print the player name
Haha
let me test it
For now it shouldn't increase your level
where
When you click
let me see
In the output ?
Im sorry but it didnt do anything
wdym
WAIT
should that script be on the click detector
Well rn the script should display (you know what display means) your player name when you click on the thing
YES
.
oh
Replace your script by the one I sent
The one shouldn't even compile
k, but it doesnt display the name xd
do i make another script in svs ? (i will make that script)
sorry, im not understanding where the output should be
i dont understand the whole english xd
** You are now Level 3! **
ve a vista y a lado de propiedades hay un montón de botonsitos, uno debería decir salida o algo así
Haha
ok
this is it?
Yes, now play your game and click on the redbull
i prob did something wrong
My bad
I changed the script
Check that
oh
Replace the script by that
did i change the script?
Wait
Replace the script content by that
I changed the script
by this?
local clickDetect = script.Parent
local function onClick(who: Player)
print(who.Name)
end
clickDetect.Clicked:Connect(onClick)
i eman
mean
Not that
local clickDetect = script.Parent
local function onClick(who: Player)
print(who.Name)
end
clickDetect.MouseClick:Connect(onClick)
It's mouseXlick
And play again
YEAS
The logs changed when you play
It display ?
that would be in