X_FREAKY
|
  |
| Joined: 02 Jul 2016 |
| Total Posts: 60 |
|
|
| 27 Nov 2016 08:31 PM |
function die() print('hi') end script.Parent.MouseButton1Down:connect(die)
Doesn't work with FE. I'm kinda bad at scripting n' stuff.
Will be appreciated if someone fix that.
#code game.Players.LocalPlayer.Character.Humanoid:Destroy() |
|
|
| Report Abuse |
|
|
clc02
|
  |
| Joined: 30 Dec 2007 |
| Total Posts: 7393 |
|
|
| 27 Nov 2016 08:35 PM |
You don't have enough information for anyone to reasonably find out what's wrong with it. Where is the script, what's it supposed to do, what is the output? |
|
|
| Report Abuse |
|
|
X_FREAKY
|
  |
| Joined: 02 Jul 2016 |
| Total Posts: 60 |
|
|
| 27 Nov 2016 08:36 PM |
I wanna learn how to print() w/FE.
The script is at the GUI, TextButton.
And when you click the Textbutton, it prints.
#code game.Players.LocalPlayer.Character.Humanoid:Destroy() |
|
|
| Report Abuse |
|
|
clc02
|
  |
| Joined: 30 Dec 2007 |
| Total Posts: 7393 |
|
|
| 27 Nov 2016 08:43 PM |
Remote Functions script
RF = game.Workspace.RemoteFunction function RF.OnServerInvoke(player) print(player.Name .." says hi") end
local script:
button.MouseButton1Down(function () RF:InvokeServer(player) end) |
|
|
| Report Abuse |
|
|
X_FREAKY
|
  |
| Joined: 02 Jul 2016 |
| Total Posts: 60 |
|
|
| 27 Nov 2016 08:44 PM |
Thanks!
#code game.Players.LocalPlayer.Character.Humanoid:Destroy() |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 27 Nov 2016 10:10 PM |
That is a bad example. You just need to use local scripts.
|
|
|
| Report Abuse |
|
|