Here is code
wait (10)
local dil = game.Players.LocalPlayer.Backpack.Stats.Dil.Value
if dil == "ES" then
GUI = game.ReplicatedStorage.SehireES
else
if dil == "EN" then
GUI = game.ReplicatedStorage.SehireEN
else
GUI = game.ReplicatedStorage.Sehire
end
end
Play = game.Players
script.Parent.Touched:connect(function (hit)
if hit.Parent and game.Players:FindFirstChild(hit.Parent.Name) then
Play = game.Players[hit.Parent.Name]
if Play:FindFirstChild("PlayerGui") and not Play.PlayerGui:FindFirstChild(GUI.Name) then
GUI:Clone().Parent = Play.PlayerGui
end
end
end)
it needs to work but this script is not working

1 comment
change connect to Connect, alo fix the indentation cause it looks like vomit, and change the "Play" to a local variable