Ad
Log in to vote
-2

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

Asked by
xOmqZaxk -45
3 days 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. incapaz 6722 — 3d

Marked as Duplicate by LordDragonZord

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?