tweenTime = 20
fenceTime = 5
platform = script.Parent
fence = workspace.Fence
VaultCam = game.ReplicatedStorage.VaultCam
Debounce = false
timeframe = 0
Pos = workspace.VaultPos
Pos2 = workspace.PlayerPointVault
local TweenService = game:GetService("TweenService")
local tweeningInformation = TweenInfo.new( tweenTime, Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local tweeningInformationFence = TweenInfo.new( fenceTime, Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0)
local up = { CFrame = CFrame.new(-80.013, -33.187, 304.343) * CFrame.Angles(0,0,math.rad(-90))}
local down = { CFrame = CFrame.new(-80.013, -407.187, 304.343) * CFrame.Angles(0,0,math.rad(-90))}
local FEup = { CFrame = CFrame.new(-65.365, -396.148, 306.13) * CFrame.Angles(0,0,math.rad(90))}
local FEdown = { CFrame = CFrame.new(-65.365, -416.514, 306.13) * CFrame.Angles(0,0,math.rad(90))}
local tweenUp = TweenService:Create(platform,tweeningInformation,up)
local tweenDown = TweenService:Create(platform,tweeningInformation,down)
local FenceUp = TweenService:Create(fence,tweeningInformationFence,FEup)
local FenceDown = TweenService:Create(fence,tweeningInformationFence,FEdown)
platform.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and Debounce == false then
local Player = hit.Parent
Debounce = true
VaultCam:FireClient(Player)
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
Player.PlayerScripts.ControlScript.Disabled = true
hit.Parent.Humanoid.WalkToPoint = Pos.Position
wait(5)
tweenDown:Play()
wait(20)
FenceDown:Play()
wait(5)
hit.Parent.Humanoid.WalkToPoint = Pos2.Position
wait(10)
FenceUp:Play()
wait(3)
tweenUp:Play()
wait(2)
Player.PlayerScripts.ControlScript.Disabled = false
end
end)
when I touch the object nothing happens, it doesn't go down the camera never gets setted (the remote function) , I don't run to anything... you get it. I don't get a client error, I am in team create so I can't see the server errors, I have no clue what the problem is, the script above is a server script located in a part. the remote events goes to a camera script that changes the cam and that's all you probably need to know.

1 comment
Have you tried publishing the game and joining it through ROBLOX? Ask the owner of the game to check serverside errors with F9 dev console? Try turning off FilteringEnabled to see if anything changes?