generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Attempt To Index Global Player

Previous Thread :: Next Thread 
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 09:02 PM
enabled = true
text = script.Parent.SurfaceGui.TextLabel

script.Parent.Touched:connect(function(hit)
humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid ~= nil and enabled == true then
enabled = false
script.Parent.Sound:Play()
char = hit.Parent
player = game.Players:GetPlayerFromCharacter(char)
player.leaderstats.Points.Value = player.leaderstats.Points.Value +5
script.Parent.Transparency = 0.1
text.TextTransparency = 0.1
wait(0.01)
script.Parent.Transparency = 0.2
text.TextTransparency = 0.2
wait(0.01)
text.TextTransparency = 0.3
script.Parent.Transparency = 0.3
wait(0.01)
text.TextTransparency = 0.4
script.Parent.Transparency = 0.4
wait(0.01)
text.TextTransparency = 0.5
script.Parent.Transparency = 0.5
wait(0.01)
script.Parent.Transparency = 0.6
text.TextTransparency = 0.6
wait(0.01)
script.Parent.Transparency = 0.7
text.TextTransparency = 0.7
wait(0.01)
text.TextTransparency = 0.8
script.Parent.Transparency = 0.8
wait(0.01)
script.Parent.Transparency = 0.9
text.TextTransparency = 0.9
wait(0.01)
script.Parent.Transparency = 1
text.TextTransparency = 1
script.Parent:remove()
end
end)


Script is in a part, supposed to give you points then disappear.
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 09:07 PM
char = hit.Parent
player = game.Players:GetPlayerFromCharacter(char)
player.leaderstats.Points.Value = player.leaderstats.Points.Value +5 -- Error Line There
script.Parent.Transparency = 0.1
text.TextTransparency = 0.1
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 10:00 PM
B1
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 10:05 PM
Output. B2

20:04:19.287 - Workspace.pointz1.???.Script:11: attempt to index local 'player' (a nil value)
20:04:19.288 - Stack Begin
20:04:19.288 - Script 'Workspace.pointz1.???.Script', Line 11
20:04:19.289 - Stack End
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 10:08 PM
So, you know the dude who says...


"SILEEENCE! I KEEL YOU!"

Yeah... For me it`s quite the opposite...


B3
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 10:11 PM
Smosh:

I need help with my script! You Dudes: SHUT - UP!
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:26 PM
Lol


STOOPID BUMPZ UP DERE


G`night everybody. Thanks for trying. (Not)
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:27 PM
I mean for this specific thread.
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
03 Aug 2014 11:28 PM
ur a bad scriptr


Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:29 PM
Lol, simplest way for me. Although not as efficient, I know. You`re a bad speller. c:
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:31 PM
Oh, and thanks for the help!


(I`d Like To See You Try.)
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
03 Aug 2014 11:32 PM
You're*
I know, you're*

ew horribl
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:36 PM
Your a terrible scripter.

You`re -> You are a terrible scripter.
Your a terrible scripter.
Your shoelace is untied.
You are shoelace is untied.
You`re a terrible scripter.


I know, <- Transition Phrase


Grammar much?
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
03 Aug 2014 11:39 PM
So I have your FIXED code copy and pasted

hmm should I paste the code or lol


hmm


lol
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:40 PM
Why not?

This is the scripting helpers` forum.


Don`t you want to help?

:)
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
03 Aug 2014 11:41 PM
You never defined player, the script doesn't know who it is.
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
03 Aug 2014 11:41 PM
000:00:00.00 stack begin
000:00:00.01 workspace.NoobyScript "Attempt to index EPICJAKEISCOOL, a noob value"
000:00:00.02 line 999921
000:00:00.03 stack end
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
03 Aug 2014 11:42 PM
^^^^^

theres your problem


(btw the other guy is rite)


Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
03 Aug 2014 11:42 PM
Oh wait you did define it, you never checked if it existed first though
If a non player touches it it'll break
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:46 PM
*Sigh*

I checked for humanoid. Plus, I already got that response from a different thread. Doesn`t do a lick a difference.


:)
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:46 PM
@cooldude


Workspace*
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
03 Aug 2014 11:47 PM
Having a humanoid ~= being a player
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
03 Aug 2014 11:56 PM
It`s not like oh, I don`t know, and unanchored part with a humanoid in it is gonna go falling onto the part, is it?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image