of     1   

tjtorin
#227978430Saturday, November 25, 2017 1:42 AM GMT

I want to make the players head grow when they use a certain tool so I made a touch function so when the player used there tool they would be touching the handle so then it would activate the touch function. Code: local function touch(hit) local hum = hit.Parent:FindFirstChild("Humanoid") if hum~=nil then hit.Head.Size = Vector3.new(10,10,10) print(hit.Name.."'s head just got bigger!") end end Tool.Handle.Touched:Connect(touch)
Spectrum555
#227978517Saturday, November 25, 2017 1:44 AM GMT

Use a event of tool Tool.Equipped:connect(function() end)
tjtorin
#227978570Saturday, November 25, 2017 1:45 AM GMT

its in the onActivated event @Spectrum555
Spectrum555
#227979329Saturday, November 25, 2017 1:58 AM GMT

Use game.Players.LocalPlayer to get player
Spectrum555
#227979635Saturday, November 25, 2017 2:03 AM GMT

Player = game.Players.LocalPlayer script.Parent.Activated:connect(function() Player.Character.Head.Mesh.Scale = Vector3.new(10,10,10) print(Player.Name.."'s head just got bigger!") end) -- i use Equipped because it returns the mouse btw xd --
RXTE95
#227986444Saturday, November 25, 2017 4:19 AM GMT

function onTouched(hit) if hit.Parent.Humanoid~= nil then end end script.Parent.Touched:connect(onTouched) thats the basic touched function
rly_gud
#227986810Saturday, November 25, 2017 4:28 AM GMT

make sure ur not using hit.Head use hit.Parent head bc ur not gonna find a head in RightArm or Torso unless im missing something and u actually welded heads to all of the parts that r a first child of the hits parent

    of     1