Patched tools getting stuck in SFoTH IV.
This commit is contained in:
parent
96905234b4
commit
993276d2ed
|
|
@ -0,0 +1,17 @@
|
||||||
|
local character = script.Parent
|
||||||
|
|
||||||
|
local function onChildAdded(child)
|
||||||
|
if child:IsA("Tool") and child.RequiresHandle then
|
||||||
|
local handle = child:FindFirstChild("Handle")
|
||||||
|
|
||||||
|
if handle and handle:IsGrounded() then
|
||||||
|
workspace:UnjoinFromOutsiders{character}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for _,child in pairs(character:GetChildren()) do
|
||||||
|
onChildAdded(child)
|
||||||
|
end
|
||||||
|
|
||||||
|
character.ChildAdded:Connect(onChildAdded)
|
||||||
|
|
@ -22,12 +22,16 @@
|
||||||
|
|
||||||
"ReplicatedStorage":
|
"ReplicatedStorage":
|
||||||
{
|
{
|
||||||
|
"$ignoreUnknownInstances": true,
|
||||||
|
|
||||||
"$className": "ReplicatedStorage",
|
"$className": "ReplicatedStorage",
|
||||||
"$path": "Shared"
|
"$path": "Shared"
|
||||||
},
|
},
|
||||||
|
|
||||||
"ServerStorage":
|
"ServerStorage":
|
||||||
{
|
{
|
||||||
|
"$ignoreUnknownInstances": true,
|
||||||
|
|
||||||
"$className": "ServerStorage",
|
"$className": "ServerStorage",
|
||||||
"$path": "Server/Resources",
|
"$path": "Server/Resources",
|
||||||
|
|
||||||
|
|
@ -54,6 +58,7 @@
|
||||||
|
|
||||||
"ServerScriptService":
|
"ServerScriptService":
|
||||||
{
|
{
|
||||||
|
"$ignoreUnknownInstances": true,
|
||||||
"$className": "ServerScriptService",
|
"$className": "ServerScriptService",
|
||||||
"$path": "Server/Scripts"
|
"$path": "Server/Scripts"
|
||||||
},
|
},
|
||||||
|
|
@ -64,7 +69,6 @@
|
||||||
|
|
||||||
"$properties":
|
"$properties":
|
||||||
{
|
{
|
||||||
|
|
||||||
"DevComputerMovementMode": "KeyboardMouse",
|
"DevComputerMovementMode": "KeyboardMouse",
|
||||||
"DevTouchCameraMovementMode": "Classic",
|
"DevTouchCameraMovementMode": "Classic",
|
||||||
"LoadCharacterAppearance": false,
|
"LoadCharacterAppearance": false,
|
||||||
|
|
@ -73,12 +77,14 @@
|
||||||
|
|
||||||
"StarterCharacterScripts":
|
"StarterCharacterScripts":
|
||||||
{
|
{
|
||||||
|
"$ignoreUnknownInstances": true,
|
||||||
"$className": "StarterCharacterScripts",
|
"$className": "StarterCharacterScripts",
|
||||||
"$path": "Player"
|
"$path": "Player"
|
||||||
},
|
},
|
||||||
|
|
||||||
"StarterPlayerScripts":
|
"StarterPlayerScripts":
|
||||||
{
|
{
|
||||||
|
"$ignoreUnknownInstances": true,
|
||||||
"$className": "StarterPlayerScripts",
|
"$className": "StarterPlayerScripts",
|
||||||
"$path": "Client"
|
"$path": "Client"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue