Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i add partcle in to my script pose/animation?

Asked by 4 years ago

I want to make my game when somebody just uses a pose or animation the particle will out but I don't know how to put it

local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()


local key = 'F'

local Taunt = Instance.new("Animation")
Taunt.AnimationId = 'rbxassetid://3616396884' -- other animations 2262820217, 2262813409, 2425154387, 
local taunted = false

UIS.InputBegan:Connect(function(Input, IsTyping)
 if taunted then return end
 if IsTyping then return end
 local KeyPressed = Input.KeyCode
 if KeyPressed == Enum.KeyCode[key] then
  taunted = true
  char.Humanoid.WalkSpeed = 0
  local LoadAnimation = char.Humanoid:LoadAnimation(Taunt)
  LoadAnimation:Play()
  wait(1.5)
  char.Humanoid.WalkSpeed = 16
  taunted = false
 end
end)

Thanks You.

Answer this question