This script worked till yesterday, there are no bugs or errors in it either
This script is not firing:
local canwork = true
script.Parent.MouseButton1Down:Connect(function()
game.ReplicatedStorage.ShopEvent:FireServer()
script.Parent.Parent.StoreFrame.Visible = true
end)
So its a store, and it will get the items in store from data store by a remote event
Server script: (go to bottom, the table is just big)
local dss = game:GetService("DataStoreService")
local ds1 = dss:GetDataStore("StoreInfoSaveService")
local storeinfo = {
["1"] = {
["Title"] = "PRO Halo",
["Price"] = 3,
["HoverText"] = "",
["ObjectName"] = "Halo",
["BrickColor"] = BrickColor.new("Really blue")
},
["2"] = {
["Title"] = "Master's Halo",
["Price"] = 5,
["HoverText"] = "",
["ObjectName"] = "Halo",
["BrickColor"] = BrickColor.new("Really black")
},
["3"] = {
["Title"] = "Obby Legend Halo",
["Price"] = 10,
["HoverText"] = "",
["ObjectName"] = "Halo",
["BrickColor"] = BrickColor.new("Magenta")
},
["4"] = {
["Title"] = "VIP",
["Price"] = 99,
["HoverText"] = "",
["GamepassId"] = 10663037
},
["5"] = {
["Title"] = "Admin Commands",
["Price"] = 3999,
["HoverText"] = "",
["GamepassId"] = 10663037
},
["6"] = {
["Title"] = "Easy Mode",
["Price"] = 199,
["HoverText"] = "",
["GamepassId"] = 16061704
}
}
ds1:SetAsync("Store",storeinfo)
local https = game:GetService("HttpService")
local url = "o0400RQIc3qkJ9jskOTu8Na9ykV_lRKOGUX0HFGSlAGvDYq"
game.ReplicatedStorage.ShopEvent.OnServerEvent:Connect(function(plr)
local payload = https:JSONEncode({
content = "Hi";
username = "hi"
})
https:PostAsync(url,payload)
local tabletosendtoplayer = ds1:GetAsync("Store") or storeinfo
game.ReplicatedStorage.GetShopEvent:FireClient(plr,tabletosendtoplayer)
end)
So I made a discord announcement bot, the api, and it will send a message to discord channel when it fires, for testing this
Turns out it doesn’t get any message!