of     1   

SpazzMan502
#145284072Thursday, September 04, 2014 12:30 AM GMT

So I have a script and it's almost working. But the output says Backpack is not a valid member of Model And What that means is it's trying to access the player MODEL, which has clothes and stuff, but the player in PLAYERS category has backpack, gui, etc... please help
Curosity
#145284744Thursday, September 04, 2014 12:38 AM GMT

In your script, say give this player a shirt give.mrbutterman.Character.shirt <--- That wont work, but it is just an example. Say "Character" right after the defined player. Hope dis helped <3
SpazzMan502
#145285340Thursday, September 04, 2014 12:43 AM GMT

No, That's not what I'm looking for. I think I can use it somehow But what I needed was whoever touches a brick, it disables a script in the player's backpack. The backpack is in players, not workspace. The shirt is in Workspace, but backback, playergui, and that stuff is in Players.
masterblokz
#145285342Thursday, September 04, 2014 12:43 AM GMT

Donovan you're really not helping anyone in SH right now you should learn how to script first spazz Backpack belongs to player not character
Curosity
#145285702Thursday, September 04, 2014 12:47 AM GMT

Master, why don't you chill? I was just trying to help :'c
Clirex
#145285929Thursday, September 04, 2014 12:50 AM GMT

Simply because "Backpack" is a part of player, not character. GetPlayerFromCharacter(player).BackPack should work since you're using a character instead of player.
SpazzMan502
#145286249Thursday, September 04, 2014 12:52 AM GMT

I meant 'Players' , one of the categories next to Workspace, Lighting, StarterGUI, etc
Clirex
#145286398Thursday, September 04, 2014 12:54 AM GMT

A player is not a model, therefor you've made a mistake. Give your script, please.
SpazzMan502
#145286660Thursday, September 04, 2014 12:56 AM GMT

Can someone clear it up more. Here's the script I used -- script.Parent.Touched:connect(function(hit) hit.Parent.Parent.Character.Backpack.Cam.Disabled = false wait(6) hit.Parent.Parent.Character.Backpack.Cam.Disabled = true end) --
SpazzMan502
#145286713Thursday, September 04, 2014 12:57 AM GMT

The player is a model in workspace, If you press play solo and look in models there is Player1. It also appears in Players
SpazzMan502
#145286907Thursday, September 04, 2014 12:59 AM GMT

WAIT THATS NOT MY SCRIPT! That was the one when I was testing things out script.Parent.Touched:connect(function(hit) hit.Parent.Backpack.Cam.Disabled = false wait(6) hit.Parent.Backpack.Cam.Disabled = true end) --thats the old one
Clirex
#145287403Thursday, September 04, 2014 1:04 AM GMT

--[[ time for you to learn how to script son ]]-- local sp = script.Parent -- script's parent local parent = false -- pre made to make easier to get to + less doing local player = false function touched(hit) player = false parent = false -- making it work parent = hit.Parent -- hit's parent in workspace if parent:findFirstChild("Humanoid") and GetPlayerFromCharacter(parent) then player = GetPlayerFromCharacter(parent) -- states player player.Backpack.Cam.Disabled = false -- enabled wait(6) -- wait 6 seconds player.Backpack.Cam.Disabled = true -- disabled end script.Parent.Touched:connect(touched) -- touched = function
SpazzMan502
#145291057Thursday, September 04, 2014 1:39 AM GMT

Didn't work I don't want to give up on this script (it's a major part of my game) Here's as much info as possible: Working Disabled Camera LocalScript called Cam in StarterPack Invisible block that when touched fires the script. You might be misinterpreting it. The section of explorer has Workspace, Lighting, Starterpack, Startergui, and so on. The Player1 with Backpack and PlayerGUI is in players section. The player Model is in workspace...
SpazzMan502
#145291260Thursday, September 04, 2014 1:41 AM GMT

Also, When i pasted in that script it underlined the last line saying 'end expected ' when I put end after it it went away, but that might be the cause of problem
Clirex
#145291375Thursday, September 04, 2014 1:43 AM GMT

good tip: before making games test alot of stuff and become a good scripter
Clirex
#145291447Thursday, September 04, 2014 1:43 AM GMT

function touched(hit) player = false parent = false -- making it work parent = hit.Parent -- hit's parent in workspace if parent:findFirstChild("Humanoid") and GetPlayerFromCharacter(parent) then player = GetPlayerFromCharacter(parent) -- states player player.Backpack.Cam.Disabled = false -- enabled wait(6) -- wait 6 seconds player.Backpack.Cam.Disabled = true -- disabled end end script.Parent.Touched:connect(touched) -- touched = function
SpazzMan502
#145291580Thursday, September 04, 2014 1:45 AM GMT

Workspace.Part.Script:8: attempt to call global 'GetPlayerFromCharacter' (a nil value) got that after I tried again with another end after the first end
SpazzMan502
#145291932Thursday, September 04, 2014 1:48 AM GMT

Basically I test everything, and if navigating through scripts was easier I would already have a finished game. It's saying GetPlayerFromCharacter is a nil value
SpazzMan502
#145292005Thursday, September 04, 2014 1:49 AM GMT

I'm overworking you, sorry... :I
SpazzMan502
#145292371Thursday, September 04, 2014 1:52 AM GMT

Lets try a different approach In the game there is 1 person per server. That means there would be one child in 'Players'
Funse
#145294058Thursday, September 04, 2014 2:10 AM GMT

function touched(hit) player = false parent = false -- making it work parent = hit.Parent -- hit's parent in workspace if parent:findFirstChild("Humanoid") and game.Players:GetPlayerFromCharacter(parent) then player = GetPlayerFromCharacter(parent) -- states player player.Backpack.Cam.Disabled = false -- enabled wait(6) -- wait 6 seconds player.Backpack.Cam.Disabled = true -- disabled end end
SpazzMan502
#145295295Thursday, September 04, 2014 2:23 AM GMT

^ You realize you just copied and pasted what above said, without the connecting statement...
Funse
#145295644Thursday, September 04, 2014 2:27 AM GMT

You realized I didn't copied it, I fixed it.
Dankvisky
#145306193Thursday, September 04, 2014 5:25 AM GMT

Spazz, you know you are doing it in solo mode, in solo mode some things are disabled, so i will give you a script that should work in solo and multiplayer... db = 0 script.Parent.Touched:connect(hit) if db == 0 then db = 1 hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil then player = game.Players:findFirstChild(hum.Parent.Name) if player ~= nil then player.Backpack.Cam.Disabled = false end end db = 0 end end)

    of     1