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

Problem while putting text into brackets()?

Asked by
dyon0 -37
7 years ago
Edited 7 years ago

Output is argument 1 missing or nil Its on line 46

dot = false
Player = game.Players.dyon0
Character = Player.Character
Billboard = Instance.new("BillboardGui")
t = Instance.new("HopperBin")
bb = Instance.new("BillboardGui",Character.Head)
bb.Enabled = true
bb.AlwaysOnTop = true
bb.Size = UDim2.new(0,200,0,50)
bb.StudsOffset = Vector3.new(0,1,0)
gui=Instance.new("TextBox",bb)
gui.Size = UDim2.new(0,200,0,50)
gui.Position=UDim2.new(0,0,0,-48)
gui.BackgroundColor3=Color3.new(255,255,255)
gui.BorderSizePixel = 0
gui.TextWrapped = true
gui.Font = "SourceSansBold"
gui.TextScaled = true
gui.TextXAlignment = "Left"
gui.TextYAlignment = "Top"
gui.Visible = true
gui.Text = "Dyon0's admin script [in progress]"
gui.TextColor3 = Color3.new(0/255, 171/255, 0/255)
wait(5)
gui.BackgroundTransparency = 1
gui.Text = " "
wait(2)
pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
local plr = game.Players.LocalPlayer
repeat wait() until plr.Character
plr = game.Players.dyon0   
char = plr.Character
torso = char.Torso
head = char.Head
neck = torso.Neck
sound = Instance.new("Sound", head)
sound.SoundId = "rbxassetid://"
sound.Volume = 500
sound:Play()
sound.Looped = true
plr.Chatted:connect(function(message)
            if message:sub(1,4) == "Play" then
            sound:Stop()
                sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
    sound:Play()
local Asset = game:GetService("MarketplaceService"):GetProductInfo()..message:sub(6)
print(Asset.Name .. " :: " .. Asset.Description)
    end
end)
wait(2)
plr.Chatted:connect(function(message)
            if message:sub(1,4) == "god" then
wait(2)
game.Workspace.dyon0.Humanoid.MaxHealth = math.huge 
game.Workspace.dyon0.Humanoid.Health = math.huge
end
end)

U will need to execute in roblox and do Play 605319592

0
Because your variable "Asset" is empty. npott13 23 — 7y
0
No it's not. Async_io 908 — 7y
0
Please learn to properly indent and clean your code so that it's easier for debugging. Also, you'll need to add a few waitforchilds, as the guis and such are not loaded yet. Also you'll get an error on line 2 becauseif someone else joins, there is no dyon0. Async_io 908 — 7y
2
I usually downvote questions where the code is not indented. I've decided that I will now just give the asker a link and let you decide whether you want to fix it or not. I won't read or touched poorly formatted code. http://wiki.roblox.com/index.php?title=Writing_Clean_Code AZDev 590 — 7y

Answer this question