So basically i have a hinge door. The script is in serverscriptservice and im using it as collection service but i got into a problem that the door doesnt rotate. I watched some videos and that but nothing shows to me what could cause it.
( Added :Play() not workin )
Some screens below.
I have tried some things like changing anchors or smh. Not sure what does it.
Also the code is not full im just trying to fix this and move on.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local CollectionService = game:GetService("CollectionService")
local door = CollectionService:GetTagged("MS_Door")
for _,door in pairs(door) do
local hinge = door:WaitForChild("Door").Hinged.HingeConstraint
print("found higned")
local tweenService = game:GetService("TweenService")
local sti = TweenInfo.new(2.3,Enum.EasingStyle.Back,Enum.EasingDirection.InOut)
local clickmen = door:WaitForChild("ClickDetector")
clickmen.MouseClick:Connect(function()
print("clickin")
local goalopen = {CFrame = hinge.Parent.CFrame * CFrame.Angles(0, math.rad(100), 0)}
local goalclose = {CFrame = hinge.Parent.CFrame * CFrame.Angles(0, math.rad(100), 0)}
local tweenopen = tweenService:Create(door:WaitForChild("Door").MainDoor,sti,goalopen)
print("movin")
end)
end