|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 03 Aug 2014 10:11 PM |
Smosh:
I need help with my script! You Dudes: SHUT - UP! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 11:26 PM |
Lol
STOOPID BUMPZ UP DERE
G`night everybody. Thanks for trying. (Not) |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 11:27 PM |
| I mean for this specific thread. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 03 Aug 2014 11:31 PM |
Oh, and thanks for the help!
(I`d Like To See You Try.) |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 11:32 PM |
You're* I know, you're*
ew horribl |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 03 Aug 2014 11:40 PM |
Why not?
This is the scripting helpers` forum.
Don`t you want to help?
:) |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 03 Aug 2014 11:42 PM |
^^^^^
theres your problem
(btw the other guy is rite)
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 03 Aug 2014 11:47 PM |
| Having a humanoid ~= being a player |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|