You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
A gate that opens two sides to let the player through the middle -
What is the issue? Include screenshots / videos if possible!
The objects are not rotating around the set pivot points.
media
demo of it not working:
pivot points:
Explorer:
Script:
de = false
script.Parent.Touched:Connect(function()
if de == false then
de = true
game:GetService('TweenService'):Create(
script.Parent.Parent.R,TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Orientation = Vector3.new(0,-90,0)}):Play()
game:GetService('TweenService'):Create(
script.Parent.Parent.L,TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Orientation = Vector3.new(0,90,0)}):Play()
wait(5)
game:GetService('TweenService'):Create(
script.Parent.Parent.R,TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Orientation = Vector3.new(0,0,0)}):Play()
game:GetService('TweenService'):Create(
script.Parent.Parent.L,TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Orientation = Vector3.new(0,0,0)}):Play()
de = false
end
end)