Search
 
SCRIPT & CODE EXAMPLE
 

LUA

lua teleport

local debounce = false

script.Parent.Touched:Connect(function (hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)

    if player and not debounce then
        debounce = true

        local char = player.Character
        local rootPart = char:WaitForChild("HumanoidRootPart")

        char:MoveTo(rootPart.Position + Vector3.new(0, 10, 0))

        wait(.5)
        debounce = false
    end
end)
Comment

PREVIOUS NEXT
Code Example
Lua :: get player who clicked clickdetecter roblox 
Lua :: roblox for loop 
Lua :: open while loop lua 
Lua :: Simple Roblox Lua Function 
Matlab :: if directory exist matlab 
Matlab :: matlab symbolic derivative 
Matlab :: matlab plot vertical line 
Matlab :: matlab symbolic set value 
Matlab :: matlab label size 
Matlab :: : in matlab 
Matlab :: matlab pan 
Basic :: cmd cant change directory 
Basic :: basic authentication in REST api Dajngo 
Basic :: fill in the commands belllow if you wanted to map a value saved in the variable count from one tange to another 
Elixir :: elixir string concatination 
Elixir :: elixir 
Elixir :: elixir enum chunk_by 
Scala :: scala string to lower case 
Scala :: for scala example 
Actionscript :: Application insights powershell 
Excel :: google sheets count dates that fall within date range 
Perl :: perl loops 
Perl :: perl mechanize infinite scroll with attempt count 
Pascal :: pascal online compiler 
Powershell :: How to save Jira attachments using powershell 
Abap :: abap integer 
Assembly :: 64 bit assembly Hello world 
Assembly :: import svg in google slides 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: jquery unselect option 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =