Skip to content

CFrames sent to Serverdoesn't seems to be accurate #26

Open

Description

More info soon:

-- LocalScript in a tool
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ToolNetwork = require(ReplicatedStorage.ToolNetwork)

script.Parent.Activated:Connect(function()
	ToolNetwork.Activate.send({
		direction = workspace.CurrentCamera.CFrame
	})
end)
-- definitions
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local b = require(ReplicatedStorage.Melody.Modules.ByteNet)

local packet = b.definePacket

return b.defineNamespace("Tools", function()
	return {
		Activate = packet({
			value = b.struct({
				direction = b.cframe
			}),
		})
	}
end)
-- On server
ToolNetwork.Activate.listen(function(data, player)
    -- insert code to place parts here
end)

Activity

  1. ncaul commented on Oct 9, 2024

    @ncaul

    For those encountering, according to ffrostfall updating to v0.4.5 should fix

  2. joshdev777 commented on Nov 2, 2024

    @joshdev777

    wait do we need to update back?

  3. joshdev777 commented on Nov 2, 2024

    @joshdev777

    like do we need to revert back to 0.4.5?

  4. ColorfulMarker commented on Feb 4, 2025

    @ColorfulMarker

    still broken

  5. ItsBixby commented on Nov 4, 2025

    @ItsBixby

    any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions