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

I need help with this script.When player touch the brick then? [closed]

Asked by
xOmqZaxk -45
6 years ago

The player tools reset. When they touch the brick. Here is the script

bin = script.Parent

function onButton1Down(mouse)
    local player = game.Players.LocalPlayer
    if player == nil then return end
    player.Character.Humanoid.Health = 0
    mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
    --Couple more lines left *pant in relief*
end

function onSelected(mouse)
    mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
    mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

bin.Selected:connect(onSelected
0
This is a free model. The formatting is exactly the same as the example shown in the Wiki: http://wiki.roblox.com/index.php?title=HopperBins Don't copy scripts. User#19524 175 — 6y

Marked as Duplicate by EzraNehemiah_TF2

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?