Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I put in the p property in my BodyPosition script?

function onTouched(hit) local h = hit.Parent:findFirstChild("Humanoid") if h ~= nil then local b = Instance.new("BodyPosition") b.position = script.Parent.PointA.Position b.p = 10 b.maxForce = Vector3.new(500000000, 500000000, 500000000) b.Parent = hit.Parent.Torso wait(3) b.Parent = nil end end script.Parent.Touched:connect(onTouched)

This is what I have so far and i'm really confused why the console says "p is not a valid member of 'BodyPosition'". Can someone help?

1 comment

0

What are you talking about? And please format your code correctly using the Lua logo over the question box.

2 answers

Make sure P's value is high. If it's too low, it will show little to no effect.

1 comment

0

a thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.