Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make my pancakes stack?

So, I've been trying to figure out why this script won't stack my pancakes on one and other. Any help will be appreciated.

local WeldModule = require(game.ServerStorage.WeldModule)

local Pancakes = {}

game.ReplicatedStorage.Events.GetPancakes.OnServerEvent:Connect(function(player, amount)
	player.leaderstats.Pancakes.Value = player.leaderstats.Pancakes.Value + amount
	local PancakeClone = game.ServerStorage.Pancake:Clone()
	table.insert(Pancakes, PancakeClone)
	local PancakePosition = Pancakes[#Pancakes]
	local Weld = WeldModule.new(PancakeClone, player.Character.Pancake.Pancake, (PancakePosition.Position + Vector3.new(0,0.2,0) or player.Character.Pancake.Pancake.Position + Vector3.new(0,0.2,0)))
	PancakeClone.Parent = player.Character 
end)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.