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

What's wrong with Vector.3.new?

I test it but nothing happens and output does not return me any error or message.

local brick = script.Parent
local cd = script.Parent.ClickDetector
local RD = script.Parent.Parent.Door1.RD
local LD = script.Parent.Parent.Door1.LD
local RDS = script.Parent.Parent.Door1.RDS
local LDS = script.Parent.Parent.Door1.LDS




function onMouseClick(player)
	if not player then return end
		LD.BodyPosition.position = Vector3.new(0, 0, 5)
		LD.BodyPosition.maxForce = Vector3.new(0, 0, 5000)
		
		
		
	end
	


cd.MouseClick:connect(onMouseClick)


1 comment

0

It's MaxForce.

1 answer

Your use of the argument is wrong. It HAS to be clicked by a player, so the check is unneeded at line 11 and 12. Take out the argument and the whole of line 12 and try running it.

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