0% found this document useful (0 votes)
9 views1 page

Roblox Hinge Animation Script

Uploaded by

4xxx.anon.xx
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Roblox Hinge Animation Script

Uploaded by

4xxx.anon.xx
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--[[ Made by coolcapidog

Channel ->> [Link]


]]
local TweenService = game:GetService("TweenService")

local hinge = [Link]


local prompt = [Link]:FindFirstChildOfClass("ProximityPrompt")
local Sound = nil

if [Link]:FindFirstChildOfClass("Sound") then
Sound = [Link]:FindFirstChildOfClass("Sound")
end

local goalOpen = {}
[Link] = [Link] * [Link](0, [Link](90), 0)

local goalClose = {}
[Link] = [Link] * [Link](0, 0, 0)

local tweenInfo = [Link](1)


local tweenOpen = TweenService:Create(hinge, tweenInfo, goalOpen)
local tweenClose = TweenService:Create(hinge, tweenInfo, goalClose)

[Link]:Connect(function()
[Link] = false
if [Link] == "Close" then
tweenClose:Play()
[Link] = "Open"
else
tweenOpen:Play()
[Link] = "Close"
end
if Sound ~= nil then Sound:Play() end
wait(1)
[Link] = true
end)

You might also like