57M
|
  |
| Joined: 20 Jun 2014 |
| Total Posts: 188 |
|
|
| 26 Sep 2017 04:09 AM |
hi there i was wondering why this script doesn't work, its in a screengui > frame > txtbutton > script
heres the script :
function Click() script.Parent.Parent.Parent.Parent.Character.Humanoid.WalkSpeed = 24 end
script.Parent.MouseButton1Down:connect(Click) |
|
|
| Report Abuse |
|
|
57M
|
  |
| Joined: 20 Jun 2014 |
| Total Posts: 188 |
|
| |
|
57M
|
  |
| Joined: 20 Jun 2014 |
| Total Posts: 188 |
|
| |
|
57M
|
  |
| Joined: 20 Jun 2014 |
| Total Posts: 188 |
|
| |
|
57M
|
  |
| Joined: 20 Jun 2014 |
| Total Posts: 188 |
|
|
| 26 Sep 2017 04:18 AM |
bump bump bump need your heeelp
|
|
|
| Report Abuse |
|
|
57M
|
  |
| Joined: 20 Jun 2014 |
| Total Posts: 188 |
|
| |
|
|
| 26 Sep 2017 04:36 AM |
That's the most inefficient way!
use game.Players.LocalPlayer instead
Java is my coffee 😎😎😎 |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2017 05:14 AM |
Create a LocalScript in StarterPlayer > StarterCharacterScripts
char = game.Players.LocalPlayer.Character button = game.Players.LocalPlayer.PlayerGui.screengui.frame.txtbutton -- path
function speed(x) if char then char.Humanoid.WalkSpeed = x end end
button.MouseButton1Click:connect(speed(30)) -- value |
|
|
| Report Abuse |
|
|