Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make my pancakes stack?

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago

Never mind found out how to do it

Ad

Answer this question