Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why Isn't notification not sending a message?

So I have gotten Into a problem where I am trying to have a notification pop up when It touched a part however the problem Is that It doesn't show let me break It down:

This Is the part: (Note: The part Is Inside of a model)

local part = script.Parent

local function findBot()
	game.StarterGui.findBot.Disabled = false
	wait(0.1)
	game.StarterGui.findBot.Disabled = true
end

part.Touched:Connect(findBot)



This Is the starterGUI local script:


local part = script.Parent

local function findBot()
	game.StarterGui.findBot.Disabled = false
	wait(0.1)
	game.StarterGui.findBot.Disabled = true
end

part.Touched:Connect(findBot)

Hopefully this Is enough Information to get you started on nerfing It, thank you!

1 answer

✓ Accepted answer

You should change PlayerGui not the StarterGui, for example:

game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui").findBot.Disabled = true

not

game.StarterGui.findBot.Disabled = true

Full script:

local part = script.Parent

local function findBot()
	game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui").findBot.Disabled = false
	wait(0.1)
	game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui").findBot.Disabled = true
end

part.Touched:Connect(findBot)

2 comments

0

Omg no variables

0

@Puppynniko this is old post and you replied so you basicaly broke every single rules in scripting helpers ill ban you now!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

This discussion is preserved as it was. New answers, comments, and votes are closed.