So I’m creating feature for my game, When someone enters an area, they teleport to another area, but that area isn’t built yet. The game is in its early stages and i still want people to be able to enjoy the new content that I’ve released.
local enabled = script.Enabled
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local Teleport = "tp2"
function Touch(hit)
if script.Parent.Locked == false and script.Parent.Parent:findFirstChild(Teleport).Locked == false and enabled.Value == true then script.Parent.Locked = true script.Parent.Parent:findFirstChild(Teleport).Locked = true --Checks Debounce.
local Pos = script.Parent.Parent:findFirstChild(Teleport)
local player = Players:GetPlayerFromCharacter(hit.Parent)
player.PlayerGui.black.Image.BackgroundTransparency = 0
local tween = TweenService:Create(player.PlayerGui.black.Image, TweenInfo.new(1.3), {BackgroundTransparency = 1})
hit.Parent:moveTo(Pos.Position) wait(5) script.Parent.Locked = false script.Parent.Parent:findFirstChild(Teleport).Locked = false
wait(.6)
tween:Play()
local CoreGui = player.PlayerGui
CoreGui:SetCore("SendNotification", {
Title = "WIP";
Text = "Unfortunately this feature is not completed. But now you know how to access it!";
Duration = 5;
})
end
end
script.Parent.Touched:connect(Touch)
Basically, I’m trying to get ROBLOX’s Notification thing (The box that pops up when someone sends a friend request in game)
to show up for only a single person, But i can’t really figure it out, Maybe I’ve made a simple mistake but some feedback would be appreciated