I have this script right here:
local db = false
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Humanoid.RigType == Enum.HumanoidRigType.R6 and not db then
db = true
local plr = game.Players:FindFirstChild(hit.Parent.Name)
hit.Parent:WaitForChild("Humanoid").JumpPower = 0
hit.Parent:WaitForChild("Humanoid").WalkSpeed = 0
local function load(Plr)
Plr = game.Players:WaitForChild(Plr.Name)
local FalseChar = game.ServerStorage:WaitForChild("DefaultR15"):Clone()
local PlayersCharacter = game.Players:GetCharacterAppearanceAsync(Plr.UserId):Clone()
local FaceID = Plr.Character:WaitForChild("Head"):FindFirstChild("face").Texture
local humdesc = Plr.Character.Humanoid:FindFirstChild("HumanoidDescription"):Clone()
humdesc.Parent = script
wait()
FalseChar:WaitForChild("Head"):WaitForChild("face").Texture = FaceID
FalseChar:SetPrimaryPartCFrame(Plr.Character:WaitForChild("HumanoidRootPart").CFrame)
for _,Prt in pairs(Plr.Character:GetChildren()) do
Prt.Name = "Old"
Prt:Destroy()
end
wait()
for _,Prt in pairs(FalseChar:GetChildren()) do
Prt.Parent = Plr.Character
end
Plr.Character.PrimaryPart = Plr.Character.HumanoidRootPart
Plr.Character:WaitForChild("Humanoid").JumpPower = 0
Plr.Character.Humanoid.WalkSpeed = 0
wait(.1)
Plr.Character:WaitForChild("Humanoid"):ApplyDescription(humdesc)
wait(1)
Plr.Character:SetPrimaryPartCFrame(script.Parent.CFrame + Vector3.new(1,5,-5))
Plr.Character:WaitForChild("Humanoid").JumpPower = 50
Plr.Character.Humanoid.WalkSpeed = 16
Plr.Character.Humanoid:BuildRigFromAttachments()
wait(1)
db = false
end
wait(.1)
load(plr)
end
end)
And this works fine, except one problem. You cant jump at all.
UserInputService.JumpRequest does not get fired when i press space.
Whats the issue here?