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

When this script runs, the message doesn't clear. Why does it not clear?

local t = script.Parent
local h = t.Handle
local d = true

h.Touched:connect(function(hit)
	local n = t.Parent
	local character = hit.Parent
	local hu = character:FindFirstChild("Humanoid")
	local to = n:FindFirstChild("Torso")
	if hu and n and d == true and d ~= false then
		local e = Instance.new("Explosion")
		local m = Instance.new("Message")
		m.Name = "a"
		m.Parent = game.Workspace
		m.Text = "ALLAH AKBAR"
		e.Parent = game.Workspace
		e.Position = to.Position
		d = false
		wait(3)
		m:Destroy()
		d = true		
	end
end)

The Explosion works and the message works but the message does not go away.

2 comments

0

Line 20: Use Hint

0

Line 12 m = Instance.new("Hint"). Then Do game.Workspace.Hint:Destroy. Because The Hint Is In Workspace, Just refer to it as game.Workspace.Hint instead of m. See If That Helps

1 answer

✓ Accepted answer

Comedy, since I've had this happen before, some scripts don't work online, but do work on ROBLOX Studio. Usually, this happens when a LocalPlayer script is inserted in. Although you don't have this, it's probably the fact the variable might have gotten messed up somewhere in there. Try putting "game.Workspace.Hint" instead of the variable before ":Destroy" at line 20

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