hi, guys this is my first video. pls subscribe
-Thanks for watching
Scripts -
First Handler Script -
local TeleportationDoorEvent = game.ReplicatedStorage.TeleportationDoorEvent
local door1 = script.Parent.door1
local door2 = script.Parent.door2
local debounce = false
door1.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if not debounce then
debounce = true
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
TeleportationDoorEvent:FireClient(plr)
wait(0.1)
hit.Parent.HumanoidRootPart.CFrame = door2.CFrame
wait(2)
debounce = false
end
end
end
end)
Handler Script 2-
local TeleportationDoorEvent = game.ReplicatedStorage.TeleportationDoorEvent
local Frame = script.Parent.Frame
local Teleport = 1
TeleportationDoorEvent.OnClientEvent:Connect(function()
for i = 1,10 do
Frame.BackgroundTransparency -= 0.1
wait(0.01)
end
wait(TeleportTime)
for i = 1,10 do
Frame.BackgroundTransparency += 0.1
wait(0.01)
end
end)
#roblox #building #robloxstudio #RoDev #rodev #TheDevKing #RoBuilder