local par = script.Parent
local remote = par.RemoteEvent
remote.OnServerEvent:Connect(function(player, info)
if info == "s1" then
print("chocolate syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce1.Transparency = 0.35
Pancakes.Name = "Chocolate Syrup Pancakes"
print("Chocolate Syrup placed on Pancakes!")
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s2" then
print("Maple syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce2.Transparency = 0.35
Pancakes.Name = "Maple Syrup Pancakes"
print("Maple Syrup placed on Pancakes!")
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s3" then
print("Buttermilk syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce3.Transparency = 0.35
Pancakes.Name = "Buttermilk Syrup Pancakes"
print("Buttermilk Syrup placed on Pancakes!")
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s4" then
print("Strawberry syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce4.Transparency = 0.35
Pancakes.Name = "Strawberry Syrup Pancakes"
print("Strawberry Syrup placed on Pancakes!")
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s5" then
print("Vanilla syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce5.Transparency = 0.35
Pancakes.Name = "Vanilla Syrup Pancakes"
print("Vanilla Syrup placed on Pancakes!")
end
end)
local par = script.Parent
local remote = par.RemoteEvent
remote.OnServerEvent:Connect(function(player, info)
if info == "s1" then
print("chocolate syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce1.Transparency = 0.35
Pancakes.Name = "Chocolate Syrup Pancakes"
print("Chocolate Syrup placed on Pancakes!")
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s2" then
print("Maple syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce2.Transparency = 0.35
Pancakes.Name = "Maple Syrup Pancakes"
print("Maple Syrup placed on Pancakes!")
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s3" then
print("Buttermilk syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce3.Transparency = 0.35
Pancakes.Name = "Buttermilk Syrup Pancakes"
print("Buttermilk Syrup placed on Pancakes!")
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s4" then
print("Strawberry syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce4.Transparency = 0.35
Pancakes.Name = "Strawberry Syrup Pancakes"
print("Strawberry Syrup placed on Pancakes!")
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s5" then
print("Vanilla syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce5.Transparency = 0.35
Pancakes.Name = "Vanilla Syrup Pancakes"
print("Vanilla Syrup placed on Pancakes!")
end
end)
What is wrong here … is it showing the script is errored in the editor?
Looks like you’re missing an “end”
if that is it …
local par = script.Parent
local remote = par.RemoteEvent
remote.OnServerEvent:Connect(function(player, info)
if info == "s1" then
print("chocolate syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce1.Transparency = 0.35
Pancakes.Name = "Chocolate Syrup Pancakes"
print("Chocolate Syrup placed on Pancakes!")
end
elseif info == "s2" then
print("Maple syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce2.Transparency = 0.35
Pancakes.Name = "Maple Syrup Pancakes"
print("Maple Syrup placed on Pancakes!")
end
elseif info == "s3" then
print("Buttermilk syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce3.Transparency = 0.35
Pancakes.Name = "Buttermilk Syrup Pancakes"
print("Buttermilk Syrup placed on Pancakes!")
end
elseif info == "s4" then
print("Strawberry syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce4.Transparency = 0.35
Pancakes.Name = "Strawberry Syrup Pancakes"
print("Strawberry Syrup placed on Pancakes!")
end
elseif info == "s5" then
print("Vanilla syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce5.Transparency = 0.35
Pancakes.Name = "Vanilla Syrup Pancakes"
print("Vanilla Syrup placed on Pancakes!")
end
end
end)
local par = script.Parent
local remote = par.RemoteEvent
remote.OnServerEvent:Connect(function(player, info)
if info == "s1" then
print("chocolate syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce1.Transparency = 0.35
Pancakes.Name = "Chocolate Syrup Pancakes"
print("Chocolate Syrup placed on Pancakes!")
end
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s2" then
print("Maple syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce2.Transparency = 0.35
Pancakes.Name = "Maple Syrup Pancakes"
print("Maple Syrup placed on Pancakes!")
end
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s3" then
print("Buttermilk syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce3.Transparency = 0.35
Pancakes.Name = "Buttermilk Syrup Pancakes"
print("Buttermilk Syrup placed on Pancakes!")
end
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s4" then
print("Strawberry syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce4.Transparency = 0.35
Pancakes.Name = "Strawberry Syrup Pancakes"
print("Strawberry Syrup placed on Pancakes!")
end
-- dividerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
elseif info == "s5" then
print("Vanilla syrup triggered")
local Character = player.Character
local Pancakes = Character["Plain Pancakes"]
print(Character)
if Pancakes.Name == "Plain Pancakes" then
Pancakes.Sauce5.Transparency = 0.35
Pancakes.Name = "Vanilla Syrup Pancakes"
print("Vanilla Syrup placed on Pancakes!")
end
end
end)