#Rig's feet going through the floor?

1 messages · Page 1 of 1 (latest)

limpid field
#
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local addWeld = ReplicatedStorage:WaitForChild("AddWeld")
local destroyWeld = ReplicatedStorage:WaitForChild("DestroyWeld")

local serverStorage = game:GetService("ServerStorage")
local Mannequin = serverStorage:WaitForChild("Mannequin")
local Workspace = game:GetService("Workspace")
local CloneQuin = Mannequin:Clone()

local myAvatar = Workspace:WaitForChild("username") -- replace "username" with your avatar name
local myTorso = myAvatar.UpperTorso
local quinTorso = CloneQuin.UpperTorso

local quinHead = CloneQuin.Head
local quinLeftLowerArm = CloneQuin.LeftLowerArm
local quinRightLowerArm = CloneQuin.RightLowerArm

local Players = game:GetService("Players")
local player = Players.LocalPlayer

local quinHRP = CloneQuin:WaitForChild("HumanoidRootPart")
local myHRP = myAvatar:WaitForChild("HumanoidRootPart")

local offset = (myHRP.Size.Z + quinHRP.Size.Z) / 2
local weldDummy = Instance.new("Weld")

addWeld.OnServerEvent:Connect(function(player)
    weldDummy.Part0 = myHRP
    weldDummy.Part1 = quinHRP
    weldDummy.C0 = CFrame.new(0, .5, offset)
    weldDummy.Parent = myHRP
    CloneQuin.Parent = workspace 
end)

destroyWeld.OnServerEvent:Connect(function(player)
    weldDummy:Destroy()
end)
limpid field
vital seal
#
local serverStorage = game:GetService("ServerStorage")
...
local player = Players.LocalPlayer```
bruh clients cannot access serverstorage
#

bruh, the server doesn't have a players.localplayer