Still have questions? Join our Discord server and get real time help.
Log in to vote

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

Asked by
xOmqZaxk -45
5 months 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*

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

This is a free model. The formatting is exactly the same as the example shown in the Wiki: Don't copy scripts. User#19524 67 — 5mo

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?