Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
Edited 7 years ago
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.

0
Line 20: Use Hint tonyv537 95 — 7y
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 tonyv537 95 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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

Ad

Answer this question