#How do i get this sign to fold wile on the car?
1 messages · Page 1 of 1 (latest)
so you're clickDetector is not working properly? have you ever try debugging it like printing it process by process.
and honestly i don't recommend using cframe to move the model if you going to weld it on the car that actually move by force. CFrame is to move the whole object connected to it, by welding it that car is also connect to it, means it can also move the car whole.
i tried welding it but it when i tested the game it just showing as nothing was there and the click detecter worked fine when it wasnt on the car
since your click detector is working, the faulty maybe came from your weld.
since you just teleporting the sign model using cframe, why not just change the weld CFrame that way you're script and the weld don't clash it each other.
local cd = Instance.new("ClickDetector", script.Parent)
local sign = script.Parent.sign
local weld = sign.ManualWeld
cd.MouseClick:Connect(function()
if weld.C1 == CFrame.new(Vector3.new(0,-2,0)) then
weld.C1 = CFrame.new(Vector3.zero)
else
weld.C1 = CFrame.new(Vector3.new(0,-2,0))
end
end)
like this
ill try that now thanks
i tried welding all of the parts from the sign onto an anchored part but when i spawn in it the sign dissapears and the only way to solve this is to anchor it
idk if this going to help, but the problem is from you're weld, it's seems to be welded to somewhere, I used to have a problem like that too, when making a sword and teleport it in the hand, but only the handle that teleported.
if you want I can give you the jeep with sign, the model I mean, so you have reference, im going to delete it too anyway.
meik sur dat es nott andkored
i only just got around to putting that jeep in my world and it works but then when i put it on my car it wont be there when i spawn in and to get it to be there i have to have it anchored but when i have it anchored it wont move up or down