Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Make it so you cant deselect a tool?

Asked by 7 years ago

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

0
Thats mean, forcing someone to hold something hiimgoodpack 2009 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

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)
0
don't forget that in the script you have to force equip it. abnotaddable 920 — 7y
0
Well i want it kinda like CB:RO, or Phantom Forces armyofdeath909 -6 — 7y
0
Then you would need to make a custom equip script. TheDeadlyPanther 2460 — 7y
Ad
Log in to vote
0
Answered by
phxtn 154
7 years ago

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.

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 armyofdeath909 -6 — 7y
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 phxtn 154 — 7y
0
Ok, Thanks! armyofdeath909 -6 — 7y
0
your welcome phxtn 154 — 7y

Answer this question