Roblox - How to force shift lock on ANY tool equip (Using CameraModule)

Share this & earn $10
The Lua Programmer
Published at : 19 Jan 2021
505 views
13
0

Hello! Today I am going to teach you how to force shift lock on ANY tool equip. Comment anything you want me to create a tutorial about and I might create a tutorial about it.

Follow me in Roblox: https://www.roblox.com/users/467337150/profile

Some people may struggle finding the lines, so to make it simpler, remove all the text that the script contains and simply paste this:
https://pastebin.com/t0EmK9Gb

Script to add:
local localPlayer = game.Players.LocalPlayer;
local character = localPlayer.Character;
if character:FindFirstChildOfClass("Tool") then
self.activeCameraController:SetIsMouseLocked(true)
character.Humanoid.CameraOffset = Vector3.new(2.1, 0, 0)
-- Write the next lines only if you'd want the mouse to be disabled while the tool is equipped
game:GetService("UserInputService").MouseIconEnabled = false
else
self.activeCameraController:SetIsMouseLocked(false)
character.Humanoid.CameraOffset = Vector3.new(0, 0, 0)
game:GetService("UserInputService").MouseIconEnabled = true
end


** I am sorry that there were a few cuts during the video, it was unexpected. **
Robloxforceshift

I'm Not Sure - Into Light

I'm Not Sure - Into Light

Building a huge Central Park & Zoo in Cities: Skylines | No Mods Vanilla City Build Ep. 7

Building a huge Central Park & Zoo in Cities: Skylines | No Mods Vanilla City Build Ep. 7

भूतिया चायवाला | Possessed Tea Stall Vendor | Horror Stories | Hindi Stories | Stories in Hindi |

भूतिया चायवाला | Possessed Tea Stall Vendor | Horror Stories | Hindi Stories | Stories in Hindi |

Different Types of Laws

Different Types of Laws

Why being bald is an advantage

Why being bald is an advantage

Where to Start with Lead & Lag Safety Indicators

Where to Start with Lead & Lag Safety Indicators

Mixing Random Things into Slime !!! Slimesmoothie Relaxing Satisfying Slime Videos #2

Mixing Random Things into Slime !!! Slimesmoothie Relaxing Satisfying Slime Videos #2

#SeeSomethingNew: Shirley Setia

#SeeSomethingNew: Shirley Setia

The Daily Vibe ~ Burning Desire to Take Action ~ Daily Tarot Reading

The Daily Vibe ~ Burning Desire to Take Action ~ Daily Tarot Reading

This scene was DELETED in BFB 23, but why?

This scene was DELETED in BFB 23, but why?

Flick AXE Wrist Mounted

Flick AXE Wrist Mounted

11 Videos Over 2 Days... What Could Possibly Go Wrong? - Ibanez 2021 Bloopers

11 Videos Over 2 Days... What Could Possibly Go Wrong? - Ibanez 2021 Bloopers

Husbando Specialist - Genshin Impact MMD

Husbando Specialist - Genshin Impact MMD

My Birth Control Experience - the pill, implants, my regrets | viviannnv

My Birth Control Experience - the pill, implants, my regrets | viviannnv

Criss Antof & Septhoz - Bailamos

Criss Antof & Septhoz - Bailamos

Zombies | Fired Up Music Video - Disney Channel Italia

Zombies | Fired Up Music Video - Disney Channel Italia

3 PVP TIPS NOBODY TELLS YOU - ESCAPE FROM TARKOV

3 PVP TIPS NOBODY TELLS YOU - ESCAPE FROM TARKOV

What is Legislation I Definition and Kinds of Legislation I Sources of LAW

What is Legislation I Definition and Kinds of Legislation I Sources of LAW

Placenta and Cord Abnormalities in Hindi | [Part-1] Morphological variation of Placenta

Placenta and Cord Abnormalities in Hindi | [Part-1] Morphological variation of Placenta

JUGANDO FORTNITE CON LOS MEJORES JUGADORES DEL MUNDO 🏆🌎

JUGANDO FORTNITE CON LOS MEJORES JUGADORES DEL MUNDO 🏆🌎

Annia is simply so sick

Annia is simply so sick

Time Speed Distance Tricks - Average Speed (GMAT/GRE/CAT/Bank PO/SSC CGL) | Don't Memorise

Time Speed Distance Tricks - Average Speed (GMAT/GRE/CAT/Bank PO/SSC CGL) | Don't Memorise

We are the World Lyrics || We are the Children || Graduation Song || For Children

We are the World Lyrics || We are the Children || Graduation Song || For Children

|HOW TO DRAG THE SMOOTH | DRAG HEADSHOT M1887 ||FREE FIRE||

|HOW TO DRAG THE SMOOTH | DRAG HEADSHOT M1887 ||FREE FIRE||

How To Make an EASY Arduino Obstacle avoiding Robot with L298N H-Bridge Motor Driver(sinhala)

How To Make an EASY Arduino Obstacle avoiding Robot with L298N H-Bridge Motor Driver(sinhala)

Red Hot Chili Peppers - Hard To Concentrate

Red Hot Chili Peppers - Hard To Concentrate

How To Find Contracts To Tender For by Winning Tenders

How To Find Contracts To Tender For by Winning Tenders

P. Jaychandran's Ayyappa song, lyrics by Prabha Varma and memorable music by T.S. Radhakrishnaji

P. Jaychandran's Ayyappa song, lyrics by Prabha Varma and memorable music by T.S. Radhakrishnaji

My Handwriting

My Handwriting

Top 10 Countries For Beautiful Men Around The World - 2020

Top 10 Countries For Beautiful Men Around The World - 2020

Rachmaninoff: Piano Concerto no.2 op.18 - Anna Fedorova - Complete Live Concert - HD

Rachmaninoff: Piano Concerto no.2 op.18 - Anna Fedorova - Complete Live Concert - HD

Lani Rose - Damaged

Lani Rose - Damaged

Jay Sean - Down ft. Lil Wayne (Official Music Video)

Jay Sean - Down ft. Lil Wayne (Official Music Video)

Fastest Skillful Workers Never Seen Before! Amazing Fastest Machines and Ingenious Tools #12

Fastest Skillful Workers Never Seen Before! Amazing Fastest Machines and Ingenious Tools #12

Emma Hewitt - Colours (Official Music Video)

Emma Hewitt - Colours (Official Music Video)

Newer Wii Plus Development #4 - Sky City - At Night!

Newer Wii Plus Development #4 - Sky City - At Night!

How to use "DESPITE" | Native English Phrases | Live English Lessons

How to use "DESPITE" | Native English Phrases | Live English Lessons

Keen Company's Holiday Variety Hour

Keen Company's Holiday Variety Hour

Juicy J "Whole Thang" feat. Wiz Khalifa (WSHH Exclusive - Official Music Video)

Juicy J "Whole Thang" feat. Wiz Khalifa (WSHH Exclusive - Official Music Video)

Dr. Sanjay Gupta calls new CDC guidelines 'ridiculous'

Dr. Sanjay Gupta calls new CDC guidelines 'ridiculous'

Tame Impala cover Edwyn Collins 'A Girl Like You' for Like A Version

Tame Impala cover Edwyn Collins 'A Girl Like You' for Like A Version

Ella Mai - Anymore (Audio)

Ella Mai - Anymore (Audio)

Sapient Thoughts #11: Understanding the hadith of the blackseed as a cure for all diseases | M Hijab

Sapient Thoughts #11: Understanding the hadith of the blackseed as a cure for all diseases | M Hijab

How To Make A Wig on A Sewing Machine For Beginners| PART 1 Measuring & More| Just Bleu

How To Make A Wig on A Sewing Machine For Beginners| PART 1 Measuring & More| Just Bleu

Meant To Live - Convalesce   (Switchfoot Cover).

Meant To Live - Convalesce (Switchfoot Cover).

MOCK CALL PRACTICE: Handling An Irate Customer (SAMPLE DSAT CALL) | Interactive Session 6

MOCK CALL PRACTICE: Handling An Irate Customer (SAMPLE DSAT CALL) | Interactive Session 6

Adding Signup and Login to your React App with AWS Amplify

Adding Signup and Login to your React App with AWS Amplify

Howard Gardner and Ellen Winner on Intelligences and Arts Education

Howard Gardner and Ellen Winner on Intelligences and Arts Education

From Obese To A Personal Trainer - My Calisthenics Journey

From Obese To A Personal Trainer - My Calisthenics Journey