of     2   
chevron_rightchevron_rightchevron_right

zorgan9220
#146414023Saturday, September 20, 2014 7:15 AM GMT

if console.Text:sub(1, 6) == "music/" then local musicId = console.Text:sub(7) local music = Instance.new("Sound", game.Workspace) music.SoundId = ("http://www.roblox.com/asset/?id=" .. musicId) music.Looped = true music:Play() end I don't know how to fix this. -i am atlanticblox
Vulnerite
#146414148Saturday, September 20, 2014 7:20 AM GMT

Any output? And what's the problem with it
zorgan9220
#146414230Saturday, September 20, 2014 7:24 AM GMT

I'm making a command bar made for personal servers and games. Currently that script has no errors as rblx.lua says. So, whenever I go in-game and type in: music/142303063 and press execute, I wait for a while since big sounds take a while to load and nothing happens. -i am atlanticblox
Vulnerite
#146414259Saturday, September 20, 2014 7:26 AM GMT

What I do is inbetween aeach statement print'a' then print'b' etc to figure out how far it gets helps a lot with debugging
zorgan9220
#146414354Saturday, September 20, 2014 7:30 AM GMT

I used my logic and did this: if console.Text:sub(1, 6) == "music/" then local musicId = console.Text:sub(7) local music = Instance.new("Sound", game.Workspace) music.SoundId:sub(1, 32) music.SoundId:sub(33, musicId) print(music.SoundId) music.Looped = true music:Play() end But, when I go in-game and type in: music/142303063 Nothing prints out in the developer console. -i am atlanticblox
Vulnerite
#146414454Saturday, September 20, 2014 7:36 AM GMT

music.SoundId:sub(1, 32) music.SoundId:sub(33, musicId) print(music.SoundId)
zorgan9220
#146414556Saturday, September 20, 2014 7:41 AM GMT

I went to play solo to type in: music/142303063 and I didn't see an instance of Sound under Workspace. What am I doing wrong. o_O if console.Text:sub(1, 6) == "music/" then local musicId = console.Text:sub(7) local music = Instance.new("Sound", game.Workspace) music.SoundId:sub(1, 32) music.SoundId:sub(33, 50, musicId) print(music.SoundId) music.Looped = true music:Play() end -i am atlanticblox
Vulnerite
#146414671Saturday, September 20, 2014 7:48 AM GMT

Did you check the console script
zorgan9220
#146414732Saturday, September 20, 2014 7:52 AM GMT

This is the whole script btw: console = script.Parent.Parent.Parent.FrameOne.TextBox admin = "Player1" name = game.Players.LocalPlayer function findPlayer(name) for _, player in pairs(game.Players:GetPlayers()) do if player.Name:lower() == name:lower() then return player end end end function button() for _,v in pairs(game.Players:GetChildren()) do if v.Name == admin then local code = console.Text wait() if console.Text:sub(1, 3) == "ff/" then local victim = findPlayer(console.Text:sub(4)) if victim and victim.Character then Instance.new("ForceField", victim.Character) end elseif console.Text:sub(1, 4) == "god/" then local victim = findPlayer(console.Text:sub(5)) if victim and victim.Character then victim.Character.Humanoid.MaxHealth = math.huge end elseif console.Text == "tp" then for i,x in pairs(game.Players:GetChildren()) do if x.Name ~= admin then x.Character.Torso.CFrame = CFrame.new(v.Torso.CFrame) end end elseif console.Text == "shine" then for _, char in pairs(v.Character:GetChildren()) do if char:IsA("Hat") then char:Destroy() end if char:IsA("Pants") and char:IsA("Shirt") then char:Destroy() else print'false' end if char:IsA("Part") then Instance.new("Sparkles", char) char.Reflectance = 0.666 char.BrickColor = BrickColor.new("Bright Yellow") end end elseif console.Text:sub(1, 5) == "unff/" then local victim = findPlayer(console.Text:sub(6)) if victim and victim.Character then for _, char in pairs(victim.Character:GetChildren()) do if char:IsA("ForceField") then char:Destroy() end end end end if console.Text == ("kill") then v.Character:BreakJoints() end if console.Text:sub(1,5) == "fire/" then local victim = findPlayer(console.Text:sub(6)) if victim and victim.Character then for _= 1, 2 do Instance.new("Fire", victim.Character.Torso) end end if console.Text:sub(1, 6) == "music/" then local musicId = console.Text:sub(7) local music = Instance.new("Sound", game.Workspace) music.SoundId:sub(1, 32) music.SoundId:sub(33, 50, musicId) print(music.SoundId) music.Looped = true music:Play() end script.Parent.Parent.Parent.FrameOne.TextBox.Text = "" end end end end script.Parent.MouseButton1Down:connect(button) Why isn't this working! -i am atlanticblox
zorgan9220
#146414780Saturday, September 20, 2014 7:55 AM GMT

ugh, why did i write: Why isn't it working! Maybe I was referring to the music/ one. everything else works. -i am atlanticblox
Vulnerite
#146414827Saturday, September 20, 2014 7:58 AM GMT

it's 4:00 AM I'm not thinking properly will reply tomorrow I made 3 stupid scripting errors around this time today so ya night
zorgan9220
#146414842Saturday, September 20, 2014 7:59 AM GMT

omg, you stayed up all night just like I did last night. lol. coincidence. -i am atlanticblox
zorgan9220
#146415122Saturday, September 20, 2014 8:16 AM GMT

i really hate it when no one is on. -i am atlanticblox
zorgan9220
#146416652Saturday, September 20, 2014 9:59 AM GMT

B1 -i am atlanticblox
zorgan9220
#146417140Saturday, September 20, 2014 10:39 AM GMT

B2 -i am atlanticblox
zorgan9220
#146418589Saturday, September 20, 2014 11:58 AM GMT

B3 -i am atlanticblox
zorgan9220
#146434279Saturday, September 20, 2014 5:14 PM GMT

B4 -i am atlanticblox
zorgan9220
#146435681Saturday, September 20, 2014 5:35 PM GMT

B5 -i am atlanticblox
zorgan9220
#146470839Sunday, September 21, 2014 1:40 AM GMT

B6, CAN SOMEONE PLEASE, FIX THIS, PLEASE! -i am atlanticblox
zorgan9220
#146471641Sunday, September 21, 2014 1:52 AM GMT

B7!!! -i am atlanticblox
zorgan9220
#146485704Sunday, September 21, 2014 5:23 AM GMT

b8. . . -i am atlanticblox
zorgan9220
#146490223Sunday, September 21, 2014 7:30 AM GMT

B9. -i am atlanticblox
zorgan9220
#146491297Sunday, September 21, 2014 8:11 AM GMT

B10 -i am atlanticblox
zorgan9220
#146493326Sunday, September 21, 2014 9:48 AM GMT

B11. . . -i am atlanticblox
zorgan9220
#146493738Sunday, September 21, 2014 10:08 AM GMT

B12 . . . it seems like 5 years since the last reply. -i am atlanticblox

    of     2   
chevron_rightchevron_rightchevron_right