This script runs perfectly in roblox studio solo mode but does not in a normal game. The object that is cloned is a number value

local objecttoclone = game.ServerStorage.DeployNum
local clone = objecttoclone:Clone()



game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:connect(function(char)
		clone.Parent = char
		clone.Value = math.random(15, 50)
		game.Workspace.TestPart.Transparency = 1
	end)
end)

4 comments

0

what is it ur tryna clone

0

its a server script right?

0

Does the transparency part of the function run?

0

yes