generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: i need a script that disables ("TeleportService")

Previous Thread :: Next Thread 
AnonymousHackerz is not online. AnonymousHackerz
Joined: 05 Sep 2012
Total Posts: 132
28 Nov 2013 05:16 PM
("TeleportService")
can some one please make one for me becouse there is a script that pepole use to force pepole to teleport to what ever server they want and i need to disable ("TeleportService")
on my server i know its possible some pepole have it on there server so can some one please make one for me thanks
Report Abuse
RadialRed is not online. RadialRed
Joined: 24 Nov 2013
Total Posts: 84
28 Nov 2013 05:20 PM
game:GetService("TeleportService"):Destroy()

Not sure if that'll work.
Give it a try.

I saw on the Wiki that this is a Method for it.

[яα∂ιαℓяє∂] - тнє ѕρє¢ιαℓ кιи∂ σf яє∂
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:23 PM
If that doesn't work, you can sandbox the game variable and disable getservice or w/e
Report Abuse
AnonymousHackerz is not online. AnonymousHackerz
Joined: 05 Sep 2012
Total Posts: 132
28 Nov 2013 05:30 PM
it didint work i just tied game:GetService("TeleportService"):Destroy()
i create a new script on my server and put that in it and updated the game and ran the teleport script and it worked so the thing didint work that you gave me
game:GetService("TeleportService"):Destroy()
didint work
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:33 PM
I HIGHLY doubt this will work, since it's been a while since I played with sandboxing, but:


local oldGame = game

getfenv().game = nil
getfenv().Game = nil

local x = newproxy(true)
y = getmetatable(x)

y.__index = function(s,k)
if k=="GetService" or k=="Service" then return end
return rawget(s[k])
end

getfenv().Game = y
getfenv().game = y
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:34 PM
I HIGHLY doubt this will work, since it's been a while for me since messing around with sandboxes

local oldGame = game

getfenv().game = nil
getfenv().Game = nil

local x = newproxy(true)
y = getmetatable(x)

y.__index = function(s,k)
if k=="GetService" or k=="Service" then return end
return rawget(s[k])
end

getfenv().Game = y
getfenv().game = y
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:35 PM
oops, double post...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:37 PM
return oldGame[k]**
Report Abuse
AnonymousHackerz is not online. AnonymousHackerz
Joined: 05 Sep 2012
Total Posts: 132
29 Nov 2013 01:35 PM
it didint work
Report Abuse
N8X is not online. N8X
Joined: 15 Nov 2013
Total Posts: 1665
29 Nov 2013 02:25 PM
Alakazard(qlqkqzqrd) is the only user I know that has disabled TeleportService in his script builder, his game is uncopylocked. Judging your profile, go skiddy! Copy his teleportservice blocker skiddy!
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
29 Nov 2013 02:27 PM
@cntkillme

You'd also want to check for game::service()

~ Like a Bass ~
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
09 Dec 2013 02:27 PM
Disables TeleportService:

local bannedServices = {
TeleportService = true;
BadgeService = true;
}

local ogame = game
game = newproxy(true)
local gmt = getmetatable(game)

local function Wrap(bFunction,this)
return this[bFunction] and type(this[bFunction]) == "function" and function(_,...) return this[bFunction](this,...) end or nil
end

function gmt:__index(index)
if index == "GetService" or index == "service" or index == "FindService" then
return function (self,...)
local serv = ({...})[1]
if bannedServices[serv] then
error(("%s is locked!"):format(serv),2)
else
if pcall(function() ogame:GetService(serv) end) then
return ogame:GetService(serv)
end
end
end
else
return Wrap(index,ogame) or index[ogame]
end
end

function gmt:__newindex(index,value)
if pcall(function() print(ogame[index]) end) then
if not ogame:FindFirstChild(index) then
if not pcall(function() ogame[index] = value end) then
error("unable to set game."..index.." to "..value..". Might be a read only member.",2)
end
else
error("unable to set game."..index.." to "..value..". Might be a child instance.",2)
end
end
end

function gmt:__tostring()
return ogame.Name
end

gmt.__metatable = "The metatable is locked"

game:GetService("TeleportService") -- ERROR: TeleportService is locked!


~ Like a Bass ~
Report Abuse
N8X is not online. N8X
Joined: 15 Nov 2013
Total Posts: 1665
09 Dec 2013 03:22 PM
I use badge service every admin script I made. You are an idiot.
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
09 Dec 2013 09:45 PM
Ok then just remove it.

Only problem with this is:

workspace.Parent:GetService("TeleportService")

~ Like a Bass ~
Report Abuse
N8X is not online. N8X
Joined: 15 Nov 2013
Total Posts: 1665
10 Dec 2013 10:05 AM
game["Teleport Service"]:Teleport
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image