|
| 24 Mar 2017 07:26 PM |
Does anyone know how to fix these scripts?
1. function onClicked() if game.Players.LocalPlayer:GetRankInGroup(game.Workspace.GiveSystem.GroupID.Value) < game.Workspace.GiveSystem.RankID.Value then script.Parent.Parent.Parent.Message.Message.Text = "(Server): You lack the permission to this Panel." wait(0.3) script.Parent.Parent.Parent.Message:TweenPosition(UDim2.new(0,0,0,0),"Out","Sine",1,true) wait(10) script.Parent.Parent.Parent.Message:TweenPosition(UDim2.new(0,0,0,-10000),"Out","Sine",1,true) wait(0.5) script.Parent.Parent.Parent.Message.Message.Text = "(Server): Error Loading Message." end end
script.Parent.MouseButton1Down:connect(onClicked)
2. function onClicked() if script.Value.Value == false then script.Value.Value = true script.Parent.Parent.Parent.Parent.HandTo.commands:TweenPosition(UDim2.new(0,-5000,0,450),"Out","Bounce",0.5,true) script.Parent.Text = "Open Give GUI" else script.Value.Value = false script.Parent.Parent.Parent.Parent.HandTo.commands:TweenPosition(UDim2.new(0,20,0,450),"In","Bounce",0.5,true) script.Parent.Text = "Close Give GUI" end end
script.Parent.MouseButton1Down:connect(onClicked) |
|
|
| Report Abuse |
|
|
XCVlll
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 963 |
|
|
| 24 Mar 2017 07:37 PM |
| most likely an issue with players taking too long to load |
|
|
| Report Abuse |
|
|
|
| 24 Mar 2017 10:19 PM |
| No its been like 10 mins and doesnt work |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 28 Mar 2017 12:42 AM |
| Are these localscripts? If not, does it make sense to be using game.Players.LocalPlayer? (Hint, answer to first question is the same answer to second question). |
|
|
| Report Abuse |
|
|
KenUSM
|
  |
| Joined: 21 Nov 2015 |
| Total Posts: 146 |
|
|
| 28 Mar 2017 12:49 AM |
DO this
1. function onClicked(Hit) local H = Hit.Parent if game.Players:GetRankInGroup(game.Workspace.GiveSystem.GroupID.Value, Hit.Parent) |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
| |
|
KenUSM
|
  |
| Joined: 21 Nov 2015 |
| Total Posts: 146 |
|
| |
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
| |
|
|
| 28 Mar 2017 01:07 AM |
lol i was joking. Press F-Nine in-game and send us any errors.
|
|
|
| Report Abuse |
|
|