How to get Wins Gui

remove the ) in line 5 after the end


Where did you place the script? Is there a part that triggers if the player reaches the end?

What should i do first a GUI or the wins

Whats better to do first ? gui or wins script

gui, then make a leaderstats for wins

to make leaderstats check these out

after those two, you can now do the win part script earlier

Sorry for asking you so much but cold you write me a script
for wins

it’s super easy?

local leaderstats ='Folder')
leaderstats.Name = 'leaderstats'
leaderstats.Parent = player

local wins ='IntValue')
wins.Name = 'Wins' --any name
wins.Value = 0 --default when player joins
wins.Parent = leaderstats

Thanks its just i am new and I dont know yet how to code

Wait so it would reastart each time ?

1 Like

no, do this

local WinPart = script.Parent

	local player = game:GetService("Players"):GetPlayerFromCharacter(touchedPart.Parent)
	if touchedPart.Parent:FindFirstChildOfClass("Humanoid") and player then -- Check if it's a player
		local character = touchedPart.Parent
		-- from here, just give the player a win.

quite, sorry for the grammar correction.

Watch a tutorial everyday when your free.

no it will only restart when the player leaves and joins again, but you can use DataStores so that it can still save everytime the player leaves

@CarrotusPrime Can you look on my new post to tell me what (how to fix it)

you should watch GnomeCode he explains things nicely