How do i Set math.random to set Current_Taunt to a Random Value inside the TauntsID Table?
TauntsID = {138093241,130779878, 15331714, 139455448, 132179181, 140649307}
for _, asset in ipairs(TauntsID) do
Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. asset)
end
Sounds.TauntS.Parent = Client_Char.Head
TauntS = Client_Char.Head.TauntS
Client_Mouse.KeyDown:connect(function(TKey_Val)
if (TKey_Val == "g") and not (TauntDeb) then
Current_Taunt = math.random(1,#TauntsID)
TauntS.SoundId = "http://www.roblox.com/asset/?id="..Current_Taunt
wait(1)
TauntDeb = true
TauntS:play()
wait(15)
TauntDeb = false
end
end)

1 comment
Wow, I didn't think of that XDDDDDDddd