I NEED IT TO BE DONE FAST CUZ PEOPLE ARE WAITING FOR THE UPDATE
Ask me for more info cuz idk what you guys need
CLIENT: I tweened a Part that has a proximity prompt attached to it
SERVER: teleports player to vector3 when proximity prompt is triggered
for some reason the server doesnt get the proximity prompt being triggered
SERVER SCRIPT
script.Parent.Triggered:Connect(function(plr)
plr.Character.PrimaryPart.Position = Vector3.new(0,30,0)
end)
CLIENT SCRIPT
local Prompt = script.Parent --THIS IS AN OTHER PROMPT NOT THE SAME AS THE SERVER ONE
local UpA = script.Parent.Parent.Parent.up.a
local UpB = script.Parent.Parent.Parent.up.Part
local DoA = script.Parent.Parent.Parent.down.a
local DoB = script.Parent.Parent.Parent.down.Part
Prompt.Triggered:Connect(function(player)
Prompt.Enabled = false
UpA.Transparency = 1--Λ
UpB.Transparency = 1--Λ
DoA.Transparency = 0--Λ
DoB.Transparency = 0--ignore these dob and upa things its a lever getting pulled
local Tween = game:GetService("TweenService"):Create(workspace["000 AREAS"]["Area-C"].base,TweenInfo.new(5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{CFrame = CFrame.new(Vector3.new(16.229, -11.5+30, 414.026)) * CFrame.fromEulerAnglesXYZ(0, -115, -0) })
-- workspace["000 AREAS"]["Area-C"].base has the proximity prompt in it
wait(1)
Tween:Play()
workspace["000 AREAS"]["Area-C"]["?"].secret:Play()
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
local x = 0
while wait(0.1) do
x += 1
workspace.CurrentCamera.CFrame = workspace["DETECTIVE"].focus1.CFrame
if x >= 50 then
workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
break
end
end
end)