Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Make it so you cant deselect a tool?

Basically, I want to make it so a player can not deselect a tool (Or a UMP45) I tried just making it requip every second but it just glitched the gun and make sounds not happen,

Thanks for reading and helping! James Bread

1 comment

0

Thats mean, forcing someone to hold something

2 answers

If you don't need the user to be able to select anything else, then you could always remove the action bar at the bottom completely

in a local script

local startergui = game:GetService("StarterGui")
startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

3 comments

0

don't forget that in the script you have to force equip it.

0

Well i want it kinda like CB:RO, or Phantom Forces

0

Then you would need to make a custom equip script.


local tool = game.ReplicatedStorage:WaitForChild("Tool")

game.Players.PlayerAdded:Connect(function(plr)

local playertool = tool:Clone()
playertool.Parent = game.Workspace(player.Name).Character

end)

Also use the script that 123marble showed you so they can't unequip it.

4 comments

0

I want it to do the Local player so lets say a new player joins, i want them to spawn with it and not beable to de equip it. Thanks anyway :P

0

yeh I know, this script says: when a player joins, they have the tool selected straight away. Add the script that 123 marble showed you so they cant unequip it

0

Ok, Thanks!

0

your welcome

This discussion is preserved as it was. New answers, comments, and votes are closed.