Hello everyone, I have a question, somehow you could do a part that when you touch it suddenly, the credits are shown, I attach a demonstration of what I am thinking of doing thanks
local creditPart = -- part here
creditPart.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
player.PlayerGui["Credits ScreenGui Name Here"].Enabled = true
end
end)
1 Like
Make sure that you write the correct gui element here. If your “Credits” is located in a ScreenGui for example, you would write:
player.PlayerGui.ScreenGui["Credits"].Visible = true
(I would personally use Visible instead of Enabled)
Hope this helps!
You should move “Credits”, to startergui and go to properties and disable it.
The reason why it is giving an error is because Credits doesn’t exist in the player gui.
2 Likes
Hello? Can you respond?
characters