For the past year I have been working on a Transfur game its been a fun project to work on, heres the link TF Test - Roblox.
I ran into a bit of a roadblock though I need help with my grabbing script it worked fine on R15 but not R6 I even edited to work on my R6 rigs I tried everything I knew about scripting and I wasn’t even able to fix it.
local pad = script.Parent
local tfs = game.ServerStorage.Transfur
local characterName = "Party-Cat"
local character = tfs:WaitForChild(characterName)
local debounce = true
pad.Touched:Connect(function(obj)
local plr = game.Players:GetPlayerFromCharacter(obj.Parent)
if plr and debounce == true then
debounce = false
local charClone = character:Clone()
local grabberpos = pad.Parent.Parent:WaitForChild("grabcollide").CFrame
local health = plr.Character.Humanoid.Health
if plr.TeamColor ~= BrickColor.new("Really black") then
for i = 1, 99 do
grabberpos = pad.Parent.Parent:WaitForChild("grabcollide").CFrame
wait()
plr.Character.Humanoid:TakeDamage(1)
plr.Character.HumanoidRootPart.CFrame = grabberpos
end
charClone.Name = plr.Name
plr.Character = charClone
local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Torso")
local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Torso")
if rootPart and plrRoot then
rootPart.CFrame = plrRoot.CFrame
end
charClone.Parent = workspace
debounce = true
end
end
end)
I haven’t been able to find any posts that has the solution so can somebody please give me a way I could fix it.
Sincerely, Havok_TC