Home   Search   Register  
Help Center  > Scripting Help  > For people who want a "Sit" HopperBin.  
 
Display using:  
Previous Thread :: Next Thread 
 Author  Thread: For people who want a "Sit" HopperBin.
6bz is offline. Last active: 2/27/2021 1:26:32 PM 6bz
Joined: 20 Jan 2021
Total Posts: 5
 
For people who want a "Sit" HopperBin.
Posted: 11 Feb 2021 11:51 AM
Insert a HopperBin and move it into StarterPack

Insert a LocalScript and move it in the HopperBin

In the local script, enter the following:

----------------------------------------------------------------------------------

tool = script.Parent
local switch = 0

function click(mouse)

local Player = game.Players.LocalPlayer
if Player == nil then return end

mouse.Icon = "http://www.roblox.com/asset/?id=30138921"

if switch == 0 then
Player.Character.Humanoid.Sit = true
switch = 1
elseif switch == 1 then
Player.Character.Humanoid.Sit = false
switch = 0
end
end

function selected(mouse)
mouse.Icon = "http://www.roblox.com/asset/?id=30138921"
mouse.Button1Down:connect(function () click(mouse) end)
end

tool.Selected:connect(selected)

----------------------------------------------------------------------------------

(Huge thanks to FleskhjertaOwns on Roblox btw)
Report Abuse
blocks404 is offline. Last active: 8/19/2024 3:43:52 PM blocks404
Joined: 21 Jan 2021
Total Posts: 194
 
Re: For people who want a "Sit" HopperBin.
Posted: 12 Feb 2021 21:57 PM
Nice script but I don't know what's an sit hopper bin.
Report Abuse
Piet is offline. Last active: 6/29/2023 2:11:52 PM Piet
Joined: 29 Nov 2020
Total Posts: 255
 
Re: For people who want a "Sit" HopperBin.
Posted: 22 Feb 2021 18:22 PM
ok
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
GoodBlox Forum  > Help Center  > Scripting Help  > For people who want a "Sit" HopperBin.