First you need Insert Part and put script in side of it

Second you need put the GUi you want give player in Lightning

Then copy this script and put in script inside the part

local Gui =  game.Lighting.GUI

function GiveGui(Player)
	if Player.PlayerGui:FindFirstChild(Gui.Name)~= nil then return end
	Gui:Clone().Parent=Player.PlayerGui
end

script.Parent.Touched:connect(function(hit)
	
	local Player=game.Players:GetPlayerFromCharacter(hit.Parent)
	if Player==nil then return end
	GiveGui(Player)
	
end)

and there you go

3 comments

0

Wow, this is new. Turning a question into a tutorial.

0

This guy is probably desperate for reputation and thinks he can do this

1

Honestly, a whole seperate section for tutorials would be a really cool addition to SH.