Making server sound with a rollback

  1. What do you want to achieve? Keep it simple and clear!
    So, i’m working on a tycoon and i have 2 methods of sounds. Local and Server. Local are used for buttons and switchers, server sounds used for objects which every player could possible hear, so they should be called from the server. The main problem i can do rollback only in two ways, put sound into an invisible part and play it so rollback will work, this is bad solution because i have 4 tycoons across server, or as i was thinking putting it inside of a place where it should play and then play, all sounds are hold in Sounds folder in workspace.
  2. What is the issue? Include screenshots / videos if possible!
    So i can’t decide how to make it accurate working, because only possible way for me is playing sound from object it created
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Explained at top

My current playing code is this(does not support rollback), so i’m asking for someone to give me some advice how to make it rollback

local SpawnPart = script.Parent
local Conveyor = script.Parent.Parent.Parent
local Ore = game.ServerStorage.OreStuff.Ore2
local DropSound = workspace.Sounds.DropSound
--Conveyor:GetPropertyChangedSignal("Parent"):Connect(function()
while Conveyor.Parent == workspace.Template.Floor3 do
	local OreClone = Ore:Clone()
	OreClone.Parent = script.Parent.Parent.Ores
	OreClone.CFrame = SpawnPart.CFrame
	DropSound:Play() -- just playing sound
	wait(1)
	end
	--end)

What do you mean when you say rollback?

Closed, i used method with sound cloning from main folder and it works absolutely fine.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.