How to get Wins Gui

can you help me make a win gui

image


I am quiet new

it would be long if i actually wrote an entire tutorial for GUI, i recommend watching this

and reading this

1 Like

can you help me with above
Please

remove the ) in line 5 after the end

image

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?

game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new('Folder')
leaderstats.Name = 'leaderstats'
leaderstats.Parent = player

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

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

WinPart.Touched:Connect(function(touchedPart)
	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.
	end
end)

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