I'm trying to do one script to snow but I want snow follow me and she also does not want to stay I press one to the letter e the more it loose flake by flake not all at once.

Script :

Player = script.Parent.Parent
mouse = Player:GetMouse()

function onKeyDown(key)
	key = key:lower()
	if key == "e" then
		p = Instance.new("Part")
		p.Parent = game.Workspace
		p.Size = Vector3.new(1,1,1)
		p.formFactor = ("Symmetric")
		p.Shape = ("Ball")
		p.TopSurface = ("Smooth")
		p.BottomSurface = ("Smooth")
		p.BrickColor = BrickColor.new("White")
		p.Anchored = false
		p.CanCollide = false
		p.Locked = true
		p.Position = Vector3.new(math.random(-100,100), 100, math.random(-100,100))
	end
end

mouse.KeyDown:connect(onKeyDown)

I want to press the e letter and make snow following me turn on and off

I'm from Brazil and is difficult to write anything wrong and translator's fault ;-;

1 comment

0

Please put this in lua form (use the blue button above the text box)