#im trying to make a zero gravity style sport game

1 messages · Page 1 of 1 (latest)

dawn spade
#

dawg im just so lost, i have the flight system partially down pat but i just can do the hand system (like arsenal)

#
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")

Workspace.Gravity = 0

local function setupCharacter(player, character)
    local humanoid = character:WaitForChild("Humanoid")
    local root = character:WaitForChild("HumanoidRootPart")

    root.Anchored = false

    -- stop default walking
    humanoid.AutoRotate = false
    humanoid.WalkSpeed = 0
    humanoid.JumpPower = 0
    humanoid.AutoJumpEnabled = false
    humanoid.PlatformStand = true
    humanoid:ChangeState(Enum.HumanoidStateType.Physics)

    -- let client drive physics smoothly
    pcall(function()
        root:SetNetworkOwner(player)
    end)
end

Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        setupCharacter(player, character)
    end)
end)
#

this is my server flight handler

#

i just can go form here