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":
|
||||
{
|
||||
"$ignoreUnknownInstances": true,
|
||||
|
||||
"$className": "ReplicatedStorage",
|
||||
"$path": "Shared"
|
||||
},
|
||||
|
||||
"ServerStorage":
|
||||
{
|
||||
"$ignoreUnknownInstances": true,
|
||||
|
||||
"$className": "ServerStorage",
|
||||
"$path": "Server/Resources",
|
||||
|
||||
|
|
@ -54,6 +58,7 @@
|
|||
|
||||
"ServerScriptService":
|
||||
{
|
||||
"$ignoreUnknownInstances": true,
|
||||
"$className": "ServerScriptService",
|
||||
"$path": "Server/Scripts"
|
||||
},
|
||||
|
|
@ -64,7 +69,6 @@
|
|||
|
||||
"$properties":
|
||||
{
|
||||
|
||||
"DevComputerMovementMode": "KeyboardMouse",
|
||||
"DevTouchCameraMovementMode": "Classic",
|
||||
"LoadCharacterAppearance": false,
|
||||
|
|
@ -73,12 +77,14 @@
|
|||
|
||||
"StarterCharacterScripts":
|
||||
{
|
||||
"$ignoreUnknownInstances": true,
|
||||
"$className": "StarterCharacterScripts",
|
||||
"$path": "Player"
|
||||
},
|
||||
|
||||
"StarterPlayerScripts":
|
||||
{
|
||||
"$ignoreUnknownInstances": true,
|
||||
"$className": "StarterPlayerScripts",
|
||||
"$path": "Client"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue