Parts with File-Mesh showing up on server, but not showing up at all on client

Hi,

I’m working on a weather system. And as such I need it to create clouds like supercells. I wrote some code that generates me a cloud, and the cloud shows up 100% fine on the server, but nothing at all shows up on client.

Video Demonstration:

--// Variables
local Module = {}

local Settings = require(script.Parent.Settings)

--// Module
function Module:GenerateSupercell()
	local CloudMeshIDs = {11121508256, 9467809818, 12407664415, 4351690111}
	local LastCloudPart = nil
	local Supercell = Instance.new("Model", workspace)
	
	local OriginPosition = Vector3.new(
		math.random(
			-Settings.GeneralSettings.Map.MapSizeX,
			Settings.GeneralSettings.Map.MapSizeX
		),
		
		math.random(
			4000,
			4800
		),
		
		math.random(
			-Settings.GeneralSettings.Map.MapSizeZ,
			Settings.GeneralSettings.Map.MapSizeZ
		)
	)
	
	for Index = 1, math.random(10, 15) do
		if LastCloudPart == nil then
			local Cloud = Instance.new("Part", Supercell)
			Cloud.Size = Vector3.new(1, 1, 1)
			Cloud.Name = "CloudPart"..Index
			Cloud.CanCollide = false
			Cloud.Anchored = true
			Cloud.Color = Color3.fromRGB(45, 45, 45)
			Cloud.Position = OriginPosition
			
			local Mesh = Instance.new("FileMesh", Cloud)
			Mesh.MeshId = "rbxassetid://"..CloudMeshIDs[math.random(1, #CloudMeshIDs)]
			Mesh.Scale = Vector3.new(
				math.random(60, 85),
				math.random(60, 85),
				math.random(60, 85)
			)

			LastCloudPart = Cloud
		else
			local Cloud = Instance.new("Part", Supercell)
			Cloud.Size = Vector3.new(1, 1, 1)
			Cloud.Name = "CloudPart"..Index
			Cloud.CanCollide = false
			Cloud.Anchored = true
			Cloud.Color = Color3.fromRGB(45, 45, 45)
			Cloud.Position = LastCloudPart.Position + Vector3.new(
				math.random(-600, 750),
				math.random(300, 350),
				math.random(-600, 750)
			)

			local Mesh = Instance.new("FileMesh", Cloud)
			Mesh.MeshId = "rbxassetid://"..CloudMeshIDs[math.random(1, #CloudMeshIDs)]
			Mesh.Scale = Vector3.new(
				math.random(60, 85),
				math.random(75, 95),
				math.random(60, 85)
			)

			LastCloudPart = Cloud
		end
	end
	
	wait()
	
	local AnvilHead = Instance.new("Part", Supercell)
	AnvilHead.Size = Vector3.new(1, 1, 1)
	AnvilHead.Name = "AnvilHead"
	AnvilHead.CanCollide = false
	AnvilHead.Anchored = true
	AnvilHead.Color = Color3.fromRGB(45, 45, 45)
	AnvilHead.Position = LastCloudPart.Position + Vector3.new(math.random(-500, 500), 500, math.random(1800, 2700))
	
	wait()
	
	local Mesh = Instance.new("FileMesh", AnvilHead)
	Mesh.MeshId = "rbxassetid://"..11121508256
	Mesh.Scale = Vector3.new(math.random(100, 120), math.random(60, 90), math.random(270, 360))
end

return Module

Does anybody know what could possibly be going on? Because I have absolutely no clue.

I found the error, my graphics quality was too low :rofl:

Played with your code a bit and it wasn’t even generating the parts on the client side like it was on the server. For me it was due to the Positions of the objects. When I lowered the Y values of the Y origin values it started working for me.

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