So, I've been trying to learn events, functions, etc. I got this script. There's no output errors (apart from some odd http://roblox.com/aspx stuff) and I just don't know what's wrong with it.~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~
local Franku = game.Workspace.Franku
function onTouch ()
Franku.Humanoid.Health = 0
end
local TextButton = game.StarterGui.Frame.ScreenGui.TextButton
TextButton.MouseButton1Down:connect(onTouch)
Updated: So I found the problem. First, you want to take the screengui out of the frame and just put the screengui inside of the startergui. You can delete the frame after this. Next, delete the localscript, and put a regular script inside of the textlabel and then insert this into the script:
Franku = game.Workspace.Franku function onTouch() print("Clicked") Franku.Humanoid.Health = 0 end script.Parent.MouseButton1Down:connect(onTouch)
Sorry about that the first time :P. Anyways, this is tested and works. Lol, Hope I helped.