#sit on shoulders system

1 messages · Page 1 of 1 (latest)

limber crag
#
local function sitOnShoulder(player: Player, player2: Player, onoff: boolean)
    local char1 = player.Character or player.CharacterAdded:Wait()
    local char2 = player2.Character or player2.CharacterAdded:Wait()
    
    local head = char2:WaitForChild("Head")
    local hrp = char1:WaitForChild("HumanoidRootPart")
    local hum = char1:WaitForChild("Humanoid")
    
    if onoff then
        local headAttachment = Instance.new("Attachment")
        headAttachment.Position = Vector3.new(0, 0, head.Position.Z / 2)
        headAttachment.Parent = head
        
        local hrpAttachment = Instance.new("Attachment")
        hrpAttachment.Parent = hrp
        
        --stop the player
        hrp.CFrame = CFrame.new(Vector3.new(1, 1, 1/ 2) * head.Position)
        hum:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
        hum.PlatformStand = true
        hum.Sit = true
        
        local rigid = Instance.new("RigidConstraint")
        rigid.Attachment0 = headAttachment
        rigid.Attachment1 = hrpAttachment
        rigid.Parent = headAttachment
    else
        head.RigidConstrait:Destroy()
        hrp.Attachment:Destroy()
        head.Attachment:Destroy()
        
        hum:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
        hum.PlatformStand = false
        hum.Sit = false
    end
end```
#

please help

#

i just got back

#

wdym network ownership?

#

that's for moving parts..?

mint wigeon
#

kinda gay..

limber crag
#

what?

untold vine
#

What im guessing is that both players are trying to calculate physics, have you tried anchoring everything?

#

Could you explain that?

limber crag
#

it's a sit on shoulders

untold vine
#

Ooh wait ive seen a tutorial do this once i never got why

limber crag
#

not move you

#

dude

#

did you read my code?

untold vine
#

True wait anchoring won't work

limber crag
#

did you read my code?

untold vine
#

Cuz it will freeze the carrying player too

limber crag
#

did you read the literal NAME of the function?

#

did you even read the name of this post

#

ur the one not even helping

#

ur saying random stuff

#

did you read my code?

#

that's your answer

untold vine
blissful trellisBOT
#

studio** You are now Level 1! **studio

limber crag
#

thanks for the help saying my code is shit

untold vine
#

Were all trying that help you if you dont want it then alright

limber crag
#

if you would've read the code you'd understood what it does

limber crag
blissful trellisBOT
#

studio** You are now Level 10! **studio

untold vine
limber crag
untold vine
#

Its a physic problem not a code one

limber crag
#

this is actually sad

#

i answered it

#

did you read my code?

#

the answer is there

untold vine
#

Anyone can position a model or part and make it follow another person

#

But for 2 players local physics start breaking it

limber crag
#

i'm not ragebaiting

limber crag
#

read my code

#

you'll know

untold vine
limber crag
untold vine
#

I mean he is right ngl

limber crag
#

yeah i'm right

untold vine
#

Talkinn about @azure goblet

limber crag
#

did you see any hrp.Anchored = true code

#

it's not a carry system.

#

it is a SIT ON SHOULDERS system

#

yes??

untold vine
limber crag
#

ur ragebaiting urself

untold vine
#

Because it will freeze rhe carrier too

limber crag
#

WOAH

#

SMARTIE

untold vine
#

Alr nvm ig

#

Gl fixing it

limber crag
#

that will fucking lag the entire game

#

ur saying i have to do this

  hrp.pos = head.pos
end   ```
untold vine
#

Bro forgot a wait

blissful trellisBOT
#

studio** You are now Level 13! **studio

limber crag
#

quit ragebaiting me

#

and just leave

#

i came here for help, not you

#

what in the world is "10 x"

#

mabey?

#

mabey? really?

untold vine
#

Well idk if you can

limber crag
#

learn proper english and go to school

#

you don't get jobs in 4th grade

#

talk about them when you finish high school

untold vine
#

Mb man

#

True

limber crag
#

all you did was talk about a player moving another player's character using some network thing, ragebait and ask for the same answer over and over, not even reading my code.

#

all roamer did was hop in because why not

#

this is a helping channel

#

please leave

untold vine
limber crag
#

did you read my script and find a hrp.Anchored = true

blissful trellisBOT
#

studio** You are now Level 2! **studio

limber crag
untold vine
#

Fo sure

limber crag
#

reply to any messag he helped with

untold vine
limber crag
#

that does not help

limber crag
limber crag
#

did you read my code

limber crag
# untold vine 2

he already said something about that, i said no, and you kept on going

#

so far 2/2 are wrong

untold vine
limber crag
#

can you just leave

#

this is the third time saying this, my code does not contain any hrp.Anchored = true

untold vine
#

Holy yap

#

Can you summarize that msg for me

limber crag
untold vine
limber crag
#

this is my fourth time saying this, my code does not contain (or need to) any hrp.Anchored = true

limber crag
#

learn to read by yourself

#

if you'd read my code that would've fixed mostly everything

#

this is the fifth time saying

#

it's still in build

#

i just made it

#

everything is empty

#

and i don't work for others

untold vine
#

Head.Position / 2, that might be a world position not a object position

limber crag
#

ab cde?

limber crag
#

i mean

#

i inserted an attachment in my head

limber crag
untold vine
#

Send a ss of the attchment position (with the studio move arrows) in world space

limber crag
#

did you come here to ragebait?

blissful trellisBOT
#

studio** You are now Level 3! **studio

untold vine
#

(0, 0) -------- (pos1 / 2) -------(pos1)

#

That's youre issue

#

Its actually a pretty easy fix

limber crag
#

messages:
i ask for help
you say something about network ownership
myth says gay
roamer says something about anchoring everything (wrong) and physics calculating
you both go on with networkownership
i try to tell you that it's a sit on shoulders system
roamer says True wait anchoring won't work then says Cuz it will freeze the carrying player too
yvonne thinks a sit over shoulders system makes the players frozen (think logically)
he proceeds to ragebait (along roamer) for 16 or 15 minutes (could've avoided by reading my code and trying to understand it, you said it's shit and moved onto ragebaiting again)

limber crag
#

i dont understand

untold vine
#

Ah nvm i dont think im welcome anymore

limber crag
#

u improved

#

yvonne's stuck in the glacier era

#

okay if he did why did you not focus on the answer and moved onto networkownerships and anchoring the player

#

why did you go back to it then

#

and not focus on runservice

#

oh my days

#

another right answer?

#

ragebait

#

wow

#

i think its my 7th time saying that you had to read my code to answer yourself

#

you're the one trying to ragebait again

#

yeah?

#

what's wrong?

#
--services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PhysicsService = game:GetService("PhysicsService")
local ServerStorage = game:GetService("ServerStorage")
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")

--folders
local pairingRemotes = ReplicatedStorage:WaitForChild("Pairing")

--objects
local timeRemote = pairingRemotes:WaitForChild("Pair")
local leave = pairingRemotes:WaitForChild("Leave")

local sets = script.Parent

local characters = ServerStorage.Characters
local horse = characters.Horse
local cowboy = characters.Cowboy
```this is written by me
#
--services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")

--folders
local upRemotes = ReplicatedStorage:WaitForChild("UpNotification")
local pairingRemotes = ReplicatedStorage:WaitForChild("Pairing")

--remotes
local timeRemote = pairingRemotes:WaitForChild("Pair")
local up = upRemotes:WaitForChild("Bindable")
local leave = pairingRemotes:WaitForChild("Leave")
local piggyback = pairingRemotes:WaitForChild("Piggyback")

local player = Players.LocalPlayer

--gui
local main = script.Parent
local timer = main:WaitForChild("Timer")
local btn = main:WaitForChild("LeaveQueue")

local shouldStop = false
local timerCo``` again me
#

and i did not capitalize the s btw

#

what does that mean

#

what's chatgp

#

you gave me like 3 right answers

#

which one is it

#

runservice, calculating physics and anchoring players or just freezing the players?

#

why use networkownership?

#

networkownership, as you said, lets the players move eachother

#

sixth time saying

#

if i'd wanted to freeze them i would've put a .anchored = true

#

was that so hard?

#

my common sense is your "i need an answer"

#

why are you deleting all your messages

#

damn

#

@azure goblet

#

r u gonna delete it

azure goblet
#

?

#

u dont need my help

#

so I deleted all my messages

#

ive already asked u to stop pinging me cuz I left this post 2x now

limber crag
#

yeah sure

#

that's the reasoning

#

all you did was ^ react the apparently good answers and ragebait

limber crag
#

i dont know either

mint wigeon
#

stop yappin

limber crag
#

you're kinda 6 hours late

mint wigeon
#

set the player who sat on the shoulder's network ownership to the client who's carrying

#

SHUT THE FUCK UP

limber crag
#

what

#

can you explain

mint wigeon
#

use server to set the client who's sitting

#

networkownership to the client whos carrying

#

then the client whos carrying will do the constraint

limber crag
#

okay so i have only understood the first part of those messages

#

the rest is new stuff for me

mint wigeon
#
-- server
local function onSit(clientWhoSit,clientWhoCarry)
  local c1 = clientWhoSit.Character
  assert(c1,"")
  local c2 = clientWhoCarry.Character
  assert(c2,"")
  
  c1:SetNetworkOwnership(clientWhoCarry)
  RemoteEvent:FireClient(clientWhoCarry,c1)
end
--Client
RemoteEvent.OnClientEvent:Connect(function(Char)
  -- do physics constraint stuff ( Use motor6ds please )
end)
limber crag
#

I don't know anything about networkownerships

mint wigeon
#

ok go learn

limber crag
#

only thing i would recall is that one exploit video with them

mint wigeon
#

🥀

#

network ownership is what it is

#

what client controls physics on a object

#

and its descendants

limber crag
#

i thought they removed it so i quit on it

mint wigeon
#

nil = server processes physics
client = client processes physics

limber crag
#

sorry to reveal it to you but my stupidness is so deep that no tutorial or forum will ever fix it

#

and what do you mean by nil = server processes physics?

mint wigeon
#

Part:SetNetworkOwnership(nil)

limber crag
#

so you're saying that if the arg is nil then the server gets to own it

#

otherwise the client will