Skip to content

Instantly share code, notes, and snippets.

View coasterteam's full-sized avatar

Coasterteam coasterteam

View GitHub Profile
@MrChickenRocket
MrChickenRocket / ReplicatedFirst_KinematicObjectsClientScript.lua
Last active October 9, 2024 16:08
Kinematic animated objects for roblox. Tag anchored server objects with "Kinematic" and the motion and physics code is magic'd away.
if (script:IsDescendantOf(game.ReplicatedFirst) == false) then
error(script.Name .. "needs to be in ReplicatedFirst")
end
local CollectionService = game:GetService("CollectionService")
local kinematicObjects = {}
local function AddInstance(target)