local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("SpawnWood") -- Create a new part local function onStartSpawn(Owner, Type, Length) local Len = tostring(Length) local NewWood = game.ReplicatedStorage.Wood.Generic:Clone() NewWood.Name="Plank" NewWood.Parent=game.Workspace.PlayerModels NewWood.Owner.Value=Owner NewWood.Owner.OwnerString.Value=tostring(Owner) NewWood.WoodSection.Size = Vector3.new(1, 100, 1) NewWood.WoodSection.Position=game.Workspace:FindFirstChild(tostring(Owner)).Head.Position + Vector3.new(0, 5, 0) end -- Call "onCreatePart()" when the client fires the remote event remoteEvent.OnServerEvent:Connect(onStartSpawn)
When I execute the following code, it makes a part with the size 1, 0.0001, 1
game.ReplicatedStorage.SpawnWood:FireServer("HPermCuber", "Generic", 10)