Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does the Part's size not change?

function MakeSpark(pos)
	local effect = game.ServerStorage.Part:Clone()
	effect.Name = "Effect"
	effect.Anchored = true
	effect.CanCollide = false
	effect.Material = Enum.Material.SmoothPlastic
	effect.Locked = false
	effect.TopSurface = 0
	effect.BottomSurface = 0
	effect.BrickColor = Colors[1]
	effect.Size = Vector3.new(8, 8, 8) -- This line, doesn't work
	effect.CFrame = CFrame.new(pos)
	effect.Parent = game.Workspace
end

function HitEffect(pos)
		local thread = coroutine.create(MakeSpark)
		coroutine.resume(thread, pos)
	
end

Should make a 8x8x8 part appear.

5 comments

0

output?

0

Eh, well those lines are part of a 200 line long script that works perfectly without it, with it, it just seems to ignore it.

0

The size alone is what's not functioning properly? Everything else is correct, even the parenting and positioning of it?

0

Maybe swap line 3 and 13 and add this code under line 10?? effect.FormFactor = "Custom"

0

Correct, RavenShield.

1 answer

SImple.

effect.FormFactor=("Custom") 
effect.Size=Vector3.new(8,8,8)

Also line 10 will error.

effect.BrickColor=BrickColor.new("Lime green")

When your using that kind of function function MakeSpark(Pos) you will need to use something like this

--THIS IS NOT THE FUNCTION
MakeSpark(game.Players.LocalPLayer.Character.Torso)

1 comment

0

Thanks, for the response, i'll test it in the morning, however line 10 will not error, in the table the first 'Color' is [BrickColor.new("Dusty Rose"), etc]

This discussion is preserved as it was. New answers, comments, and votes are closed.