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

Unable to create an Instance of type "Timer"?

Asked by 1 year ago

--[[ README Using the hintor: It's quite simple, all you do is replace the string right below here with your message, put this script in your model, and run the script, and your model will then have a copyright message in it. Allso, if you want people to not know that the copyright message is in thier map (because the hint will only show up in online) untill they use it online, keep the "MakeHintsAll" value set to false, otherwise, set it to true

]]

hintText = "Donate Gui - Made by Da4w50m35t" --> set this to the text hintNum = 1 --> leave it at this, for future use

MakeHintsAll = false --> True:hints are made in online games and solo visits, False:Hints are only made in online games

--[[if script.Parent.Parent then if script.Parent.Parent.Parent then print("Script In :", script.Parent.Parent.Parent, ".", script.Parent.Parent, ".", script.Parent) else print("Script In :", script.Parent.Parent, ".", script.Parent) end else print("Script In :", script.Parent) end]]

function strRandom(len) str = "" char = {'a', 'b', 'c', 'd', 'e'} for i = 1, len do str = str..char[math.random(1, 5)] end return str end

if script:FindFirstChild("Value") then a = Instance.new(({"Timer", "Geometry"})[math.random(1, 2)]) a.Name = strRandom(5) a.Parent = script.Parent script.Value:remove() script.Parent = a end

--[[if not _G.TheName then _G.TheName = strRandom(5) end]]

--if game.Workspace:FindFirstChild() then script:remove() end

if not game:FindFirstChild("NetworkServer") then if MakeHintsAll then
last = Instance.new(({"Timer", "Geometry"})[math.random(1, 2)]) last.Parent = game.Workspace last.Name = strRandom(5)

    _H = Instance.new("Hint")
    _H.Name = strRandom(5)
    _H.Text = hintText
    _H.Parent = last
    _HC = last:clone()
end
else
_H = Instance.new("Hint")
_H.Name = strRandom(5)
_H.Text = hintText
_H.Parent = game.Workspace
_HC = _H:clone()

end

--[[game.Workspace.ChildRemoved:connect(function() if not game.Workspace:FindFirstChild(_G.TheName) then _HC:clone().Parent = game.Workspace end end)--]]

1 answer

Log in to vote
0
Answered by 1 year ago

What are u doing? U cant instance something that u cant, like a hint...

rename to hint, but u cant instance things that are not built by roblox...

like u have to make the timer urself.

Ad

Answer this question