Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When I interact with a proximity prompt, it doesn't tween the wall?

Asked by 3 years ago

So I made an animating wall that opens when you trigger a proximity prompt. I went back to the wall, and it didn't open, not even ½ of a stud. The script is below, also the one that DOESN'T work.

-- Variables
local TweenService = game:GetService("TweenService")
local prox = script.Parent.ProximityPrompt
local opened = script.Parent.Parent.liftedDoor
local door = script.Parent.Parent.door
local openC = {CFrame = opened.CFrame}
local tween = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
local openTween = TweenService:Create(door, tween, openC) -- Earlier, this was the error.

-- Functions
prox.Triggered:Connect(function()
    openTween:Play()
end)
0
the variables are the things i want them to be. MrBarfSquirrel 0 — 3y

Answer this question