Bodyposition problems

local remote = script.Parent

remote.OnServerEvent:Connect(function(Player, Action)

	if Action == "lol" then --the action is lol in the local script
	
		local Char = Player.Character
		local hum = Char:WaitForChild("Humanoid")
		local hr = Char:WaitForChild("HumanoidRootPart")
		local bd =  Instance.new("BodyPosition",hr)
		local pos = hr.CFrame * CFrame.new(1,0,0)
		bd  = pos.p
	
	
	end
end)

problem:my body keeps going up and it stays still

1 Like

try doing bd.Position = pos.p instead of bd = pos.p

2 Likes

nope still the same heres a clip

robloxapp-20220214-1408477.wmv (1.3 MB)

1 Like

are you sure that it even runs the event and gets through the if statement?

2 Likes

i ttried and still get same result ill add the local and normal script and a pic wait rq

1 Like

local script:

local remote = script:WaitForChild("RemoteEvent")


local Uis = game:GetService("UserInputService")
Uis.InputBegan:Connect(function(Input,IsTyping)
	if IsTyping then return end
	if Input.KeyCode == Enum.KeyCode.E then
		remote:FireServer()
	end
	
end)

normal script:

local remote = script.Parent

remote.OnServerEvent:Connect(function(Player)



		local Char = Player.Character
		local hum = Char:WaitForChild("Humanoid")
		local hr = Char:WaitForChild("HumanoidRootPart")
		local bd =  Instance.new("BodyPosition",hr)
		local pos = hr.CFrame * CFrame.new(0,0,1)
		bd  = pos.Position
		
	

end)

pic:

1 Like

did you change it to what i said? because i see that you still have bd = pos.Position there

1 Like

got through thanks
this limit makes me crazy