of     1   

SameySam
#182625538Friday, January 29, 2016 7:55 PM GMT

It still puts particles even when I jump and not on the ground. I can't find out why/how to fix it. I have an idea why it's doing this but idk how to stop it... local partical = Instance.new("ParticleEmitter", nil) partical.Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(1, 1, 1)) partical.LightEmission = 0 partical.Size = NumberSequence.new(1) partical.Texture = "rbxasset://textures/particles/sparkles_main.dds" partical.Transparency = NumberSequence.new(0) partical.ZOffset = 0 partical.Name = "dustParticals" partical.Archivable = true partical.Acceleration = Vector3.new(0, 0, 0) partical.Drag = 0 partical.LockedToPart = false partical.VelocityInheritance = 0 partical.EmissionDirection = Enum.NormalId.Bottom partical.Enabled = false partical.Lifetime = NumberRange.new(1, 1) partical.Rate = 1000 partical.Rotation = NumberRange.new(1, 1) partical.RotSpeed = NumberRange.new(0, 0) partical.Speed = NumberRange.new(5, 5) game.Players.playerAdded:connect(function(player) player.characterAdded:connect(function(character) local rightLeg, leftLeg = partical:clone(), partical:clone() rightLeg.Parent, leftLeg.Parent = character:waitForChild("Right Leg"), character:waitForChild("Left Leg") rightLeg.Parent.touched:connect(function(basePart) rightLeg.Color = ColorSequence.new(basePart.BrickColor.Color, basePart.BrickColor.Color) end) leftLeg.Parent.touched:connect(function(basePart) leftLeg.Color = ColorSequence.new(basePart.BrickColor.Color, basePart.BrickColor.Color) end) character:waitForChild("Humanoid").Running:connect(function(speed) rightLeg.Enabled, leftLeg.Enabled = (speed ~= 0), (speed ~= 0) end) end) end)
SameySam
#182625598Friday, January 29, 2016 7:56 PM GMT

I forgot to mention: I need a way for the script to tell if the player is on the ground..
FireController1847
#182625628Friday, January 29, 2016 7:56 PM GMT

Is the ground just a baseplate? If it is you can make your script detect if the baseplate is being touched by the player. It's just roblox, deal with it.
SameySam
#182627992Friday, January 29, 2016 8:40 PM GMT

For my testing, yes. But when I proceed further into making the game and start making a map, then no. Maybe if the script checks if the player is touching something with the ClassName "Part"? How would I do so?
SameySam
#182659609Saturday, January 30, 2016 5:16 AM GMT

B
SameySam
#182816349Monday, February 01, 2016 6:24 AM GMT

Bb
ez_street
#182816475Monday, February 01, 2016 6:28 AM GMT

BasePart is the basis for all parts in Studio.
SameySam
#182904847Wednesday, February 03, 2016 12:13 AM GMT

????
LilMcManiac
#182919486Wednesday, February 03, 2016 3:59 AM GMT

Use GetTouchingParts() I don't use this a lot, but maybe this? LocalScript local plr = game.Players.LocalPlayer repeat wait() until plr.Character local c = plr.Character local baseplate = game.Workspace.Baseplate local touching local tableofparts = {} while wait() do touching = baseplate:GetTouchingParts() end for _, v in pairs(tableofparts) do if v.Parent == plr.Name then --code end end
GraphicsSettings
#182920496Wednesday, February 03, 2016 4:23 AM GMT

Use raycasting, it might be a better way to detect if you are touching a surface of a brick.
SameySam
#183162319Sunday, February 07, 2016 6:17 PM GMT

idk how to do ray casting but I can look into it when I have the time.

    of     1