PiraxeZ
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 4254 |
|
|
| 16 Oct 2015 07:09 AM |
I opened up crossroads and found the filter the staff has been using. At least I believe it is.
script.Parent = nil
local function waitForChild(parent, child) while parent:FindFirstChild(child) == nil do wait() end return parent[child] end
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) local torso = waitForChild(character, 'Torso') Spawn(function() while torso and character do if torso.Position.Y < -120 then character:BreakJoints() end wait(1.0) end end) end) end)
-- ERIK CASSEL IS AWESOME function onService(class, func) local service = game:FindService(class) if service ~= nil then func(service) else local connection connection = game.ServiceAdded:connect(function(service) if service.ClassName == class then connection:disconnect() func(service) end end) end end
onService('NetworkServer', function(ns) -- hook up the filters ns.ChildAdded:connect(function(rep) rep:SetBasicFilteringEnabled(true) rep.NewFilter = function(item) --print('New filter - ', item) return Enum.FilterResult.Rejected end rep.DeleteFilter = function(item) --print('Delete filter - ', item) return Enum.FilterResult.Rejected end
rep.PropertyFilter = function(item, member) --print('Property filter - ', item) local success, result = pcall(function() if item and item:IsA('Tool') then print('Accepting tool') return Enum.FilterResult.Accepted end if item and item:IsA('Humanoid') then print(game.Players:GetPlayerFromCharacter(item.Parent), rep:GetPlayer()) if game.Players:GetPlayerFromCharacter(item.Parent) == rep:GetPlayer() then print('Accepting Humanoid changes', item, member) return Enum.FilterResult.Accepted end end return Enum.FilterResult.Rejected end) if success then return result else return Enum.FilterResult.Rejected end end rep.EventFilter = function(item) local success, result = pcall(function() if item and item:IsA('Tool') then return Enum.FilterResult.Accepted end return Enum.FilterResult.Rejected end) if success then return result else return Enum.FilterResult.Rejected end end game.Workspace.SpawnLocation.Material = "Ice" rep:PreventTerrainChanges() end) end)
|
|
|
| Report Abuse |
|