Vitor

Teleport with FlashLight

This script should grant all players the ability to mark a location and teleport to it by pressing the flashlight button in any gamemode

 

-- Configurations

-- Warn players about the teleport feature:
local warnpl = true

-- Keyword for saving location
local keyword = "mark"

-- Message to use
local mssg = "'Type " .. keyword .. " to save location and press flashlight to teleport to it!'"

-- Message for location successfully saved
local ssl = "'Place marked.'"

-- Disable teleport after entering vehicle?
local distp = true

-- Message to use after successful teleport
local sctpmsg = "'Teleported.'"

-- Message to use upon trying to teleport without saving a location
local nosvlc = "'You did not mark a place!'" 

-- Message to warn player that teleport is no longer available
local tpnla = "'You used a vehicle, teleporting is no longer available.'"

 

 

-- PS: Never use ' (single quote) in any of those configuration messages
-- If you have to say something like "didn't", "won't", say "did not" or "will not" instead.

teleflashlight.lua

tarikja, AntiMomentum, Takka and 1 other like this

Share this post


Link to post
Share on other sites

Tiddy-bits:

Hey thanks for sharing your script, and welcome!


Oddly, this is familiar to you... as if from an old dream.  

Share this post


Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.