First time using KeyDown. Need Help.

Well I’m kinda making dragon feet… :v:

For some reason whenever I sprint the effect doesn’t go at my feet:

I’ve tried it like this:
[lua]
if ply:KeyDown( IN_SPEED ) then
local edd = EffectData()
edd:SetOrigin( ply:GetPos() )
edd:SetStart( ply:GetPos() )
edd:SetAttachment( 1 )
edd:SetEntity( ply )
util.Effect( “Dragon”, edd )
end
[/lua]

And like this:
[lua]
function GM:Think()
if ply:KeyDown( IN_SPEED ) then
local edd = EffectData()
edd:SetOrigin( ply:GetPos() )
edd:SetStart( ply:GetPos() )
edd:SetAttachment( 1 )
edd:SetEntity( ply )
util.Effect( “Dragon”, edd )
end
end
[/lua]

None work :frowning:

No errors

The effect is flawless.

By the way this is an Autorun

You’re not defining ply anywhere.