local UIS = game:GetService('UserInputService')
local Player = game.Players.LocalPlayer
local Character = Player.Character

UIS.InputBegan:connect(function(input)
 if input.KeyCode == Enum.KeyCode.U then
  Character.Humanoid.WalkSpeed = 0
  local Anim = Instance.new('Animation')
  Anim.AnimationId = 'rbxassetid://5135289543'
  PlayAnim = Character.Humanoid:LoadAnimation(Anim)
  PlayAnim:Play()
  wait(4)
  Player:LoadCharacter()
 end
end)

so this is the script i wanna load the chracter after the wait but nothing happens

2 comments

0

LoadCharacter() Doesn't work in localscripts.

0

oh