We’ve just introduced gear into our game, and there’s some minor issues with them, but the most notable and important one is the falling. Everytime I open the drone, I fall and cannot get back up without resetting. I don’t believe we have any scripts placed inside the parent of the model itself. Sorry if this sounds very dumb, I am new to developing and scripting especially. Any possible solution to this? Here’s a clip of the problem.
Does that happen with every tool?,
Can you send me the drone script so I will be able to look?
I would check the Drone Script.
Is the drone/tools (parts) CanCollide set to true? It seems like it.
Two things, set the parts inside the tool anchor proprety to false, AND set their massless proprety to true
Here is the LocalScript inside the Drone: (if you need the other script, let me know) @lV0rd @WatchDogsPlayz
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Tool = script.Parent
local Drone = require(script:WaitForChild("Drone"))
local Remotes = Tool:WaitForChild("Remotes")
local ServerControl = Remotes:WaitForChild("ServerControl")
local ClientControl = Remotes:WaitForChild("ClientControl")
local Player = Players.LocalPlayer
local Character = nil
local Humanoid = nil
local CurrentDrone = nil
local RenderSteppedConn = nil
local ToolEquipped = false
function CheckIfAlive()
return (((Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Player and Player.Parent) and true) or false)
end
function CreateDrone(model)
CurrentDrone = Drone.new(model)
RenderSteppedConn = RunService.RenderStepped:Connect(function(delta)
if not CurrentDrone then return end
CurrentDrone:Update(delta)
end)
end
function Equipped()
ToolEquipped = true
Character = Player.Character
Humanoid = Character:FindFirstChildOfClass("Humanoid")
end
function Unequipped()
ToolEquipped = false
Character = nil
Humanoid = nil
if CurrentDrone then
CurrentDrone:Destroy()
end
if RenderSteppedConn then
RenderSteppedConn:Disconnect()
end
RenderSteppedConn = nil
CurrentDrone = nil
end
function OnClientInvoke(mode, value)
if not ToolEquipped or not CheckIfAlive() or not mode then
return
end
if mode == "SpawnDrone" then
CreateDrone(value)
end
end
ClientControl.OnClientInvoke = OnClientInvoke
Tool.Equipped:Connect(Equipped)
Tool.Unequipped:Connect(Unequipped)
Doesn’t appear to be. (Adding more characterss)
Did u check the tool’s handle anchor and massless proprety? (toggle anchor to false and massless to true)
If it’s for both the handle and remote, I just tried that and it didn’t work.
Other script should be the problem.
Is there a line of code in the other script that’s like PlatformStand = true
, If so then there is your problem. If not then perhaps it’s a line of code changing the characters HipHeight. Above all, is it something possibly changing the values in the characters Humanoid?