#PLS HELP

1 messages · Page 1 of 1 (latest)

zenith remnant
plain sequoia
#

U

#

you want it to unshift lock when unequiped?

#

yes

#

or

#

no

#

?

#

?

#

?

#

@zenith remnant

zenith remnant
#

Sup

zenith remnant
#

And when I unequip it unshifts

#

Using its own camera system tho

#

It’s really good

zenith remnant
limber musk
#

hello need help
@zenith remnant

zenith remnant
zenith remnant
limber musk
#

Ok so you want shiftlock when equipped right?

#

What you want to do is lock mouse using a if statement

#

So
if aim then
—aimcode
else
—disconnect code
end

#

To make aim code do it like this

#

Local connection
if aim then
Connection = runservice loop
— inside loop make character look at code
else
Connection = nil
— disconnect
end

#

Ok understand? @zenith remnant

zenith remnant
#

The weapon only

#

And I know scripting I tired editing it

#

And it breaks

#

I asked over 6 people

#

And no one knows

zenith remnant
#

I beg you if you can record and show how to do

limber musk
#

Bro

#

Listen

limber musk
#

Inside the loop you add code that makes HumanoidRootPart rotate on y axis to look where you want

#

Look at dev forums it will help

#

But depending on people for code is not how you make it into the big coding projects

#

Ok? @zenith remnant

zenith remnant
#

Ok

#

Aight

#

Thanks man

zenith remnant
limber musk
#

Bro you want hand to look up and down?

#

Right

#

@zenith remnant

zenith remnant
tranquil vergeBOT
#

studio** You are now Level 5! **studio

limber musk
#

Not the root which makes the rotate

zenith remnant
limber musk
#

Oh I see

zenith remnant
#

The script line (this one specifically) made it so the weapon shift locks

limber musk
#

Wait

zenith remnant
#

but when I tried to make it only shift lock when I hold out the weapon

zenith remnant
limber musk
#

I got you just wait

zenith remnant
#

Ok

limber musk
#

I made it a module for this

zenith remnant
#

YESSSSS

limber musk
#

Open access

zenith remnant
#

pls give

limber musk
#

When I give you this module, I want you to study it

zenith remnant
#

ok

limber musk
#

After will give you a quiz, cause I need you to learn

zenith remnant
#

ok man

zenith remnant
limber musk
#

ye wait

#

inside Replicated storage put the module

#

local Modules = game:GetService("ReplicatedStorage")
local MobileCameraFramework = require(Modules.LockCharacterToCam)
MobileCameraFramework.ToggleShiftLock(players.LocalPlayer, true)
then do this

#

you can make it false to turn it off
@zenith remnant

zenith remnant
#

If it works imma tell u

zenith remnant
#

That file goes to replicated storage

limber musk
#

local Modules = game:GetService("ReplicatedStorage")
this gets the service

#

local MobileCameraFramework = require(Modules.LockCharacterToCam)
this gets module inside service

zenith remnant
#

What

limber musk
#

MobileCameraFramework.ToggleShiftLock(players.LocalPlayer, true)
this is a on/off

#

and no

#

the file is the code

#

just add a module script

zenith remnant
#

Ok

limber musk
#

and put the code inside

zenith remnant
#

Got it

#

Look imma try to do it

#

And when I do something wrong I come back to you (if you can help)

limber musk
#

you can do
tool.Equiped:connect(function()
MobileCameraFramework.ToggleShiftLock(players.LocalPlayer, true)
end)

#

works like a dime

zenith remnant
#

Got it dude

#

Thanks

zenith remnant
#

and i messed up somewhere and soehow

#

can you pls like make a short video of ur self putting it togther?

#

idfk dude

limber musk
#

add a local script inside tool
then do local tool = script.parent

#

then
tool.Equiped:connect(function()
MobileCameraFramework.ToggleShiftLock(players.LocalPlayer, true)
end)

#

and you can do
tool.UnEquiped:connect(function()
MobileCameraFramework.ToggleShiftLock(players.LocalPlayer, false)
end)

limber musk
#

remeber to add the text into a module
and name the module LockCharacterToCam