|
| 30 May 2013 07:13 AM |
local passId = 117164040
function authenticate(player) return game:GetService("GamePassService"):PlayerHasPass(player, passId) end
game.Players.PlayerAdded:connect(function(plr) if authenticate(plr) then print(plr.Name .. " has bought the game pass with id " .. passId) plr.CharacterAdded:connect(function(char) local bf = Instance.new("BodyForce", char) for i, v in pairs(char:GetChildren()) do if v:IsA("Hat") then bg.force = bf.force + Vector3.new(0,v.Handle:GetMass()-75,0) elseif v:IsA("BasePart") then bg.force = bf.force + Vector3.new(0,v:GetMass()-75,0) end end) end end)
Inserted into workspace. It's supposed to give the game pass owner -75 gravity. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 30 May 2013 03:58 PM |
Please keep this to 1 thread >.>
The last good thing written in C was Franz Schubert’s Symphony Number 9. |
|
|
| Report Abuse |
|
|
|
| 30 May 2013 03:59 PM |
you never defined plr
The last good thing written in C was Franz Schubert’s Symphony Number 9. |
|
|
| Report Abuse |
|
|
|
| 30 May 2013 04:00 PM |
| And what should I define it as? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 30 May 2013 04:02 PM |
@Port
'plr' is defined.
Look in the parameters for the anonymous function.
@OP
Ignore port, he probably didn't notice that it was actually already defined. |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 30 May 2013 04:08 PM |
| What's "bg"? You've used it twice, but it's not defined anywhere. |
|
|
| Report Abuse |
|
|
|
| 30 May 2013 04:12 PM |
| Note; I didn't make this script. And I know nothing about scripts... So, if something isn't defined, what should I define it as and how? |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 May 2013 05:14 PM |
| Don't hate me for the bump |
|
|
| Report Abuse |
|
|
| |
|