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

Tycoon Droppers do not Work Outside of Studio?

Asked by 2 years ago
Edited 2 years ago

I'm using Zed's Tycoon Kit to develop a tycoon game and improve my scripting skills, however once I published my game to Roblox and actually played outside of studio, the droppers no longer work. Both manual and non-manual, in all 4 tycoons. Everything works completely fine in studio, and I'm not really familiar with "Server" issues.

This is the dropper script:

wait(2)
workspace:WaitForChild("PartStorage")

while true do
    wait(1.5) -- How long in between drops
    local part = Instance.new("Part",workspace.PartStorage)
    part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
    part.Material=script.Parent.Parent.Parent.MaterialValue.Value
    local cash = Instance.new("IntValue",part)
    cash.Name = "Cash"
    cash.Value = 5 -- How much the drops are worth
    part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.4,0)
    part.FormFactor = "Custom"
    part.Size=Vector3.new(1.2, 1.2, 1.2) -- Size of the drops
    part.TopSurface = "Smooth"
    part.BottomSurface = "Smooth"
    game.Debris:AddItem(part,20) -- How long until the drops expire
end

Any help would be greatly appreciated!

0
file>publishtoroblox will add the latest updates of your game super00rocket 27 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

Use pcall to catch a error if not printed. Im not ready to make a tutorial for pcall yet, so take this as a example: Pcalls

Ad

Answer this question