dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 09:22 PM |
What is wrong with this?
function onTouched(hit) humanoid = hit.Parent:findFirstChild("Humanoid") get = game.Players:GetPlayerFromCharacter() if (humanoid ~= nil) then get.PlayerGui.TurretText.Frame.Visible = true workspace.Camera_turret.Disabled = false end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 09:24 PM |
get = game.Players:GetPlayerFromCharacter()
TO:
get = game.Players:GetPlayerFromCharacter(hit.Parent) |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
| |
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 09:29 PM |
It works now but now i need the fix for this plz:
scriptC = script.LocalScript:clone() wait(0.1) scriptC.Parent = game.Players.LocalPlayer |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 09:31 PM |
1. Is this in a LocalScript? 2. Is another "LocalScript" inside THIS LocalScript? |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 09:32 PM |
1 = no ill try again,thank you |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
| |
|
|
| 09 Mar 2013 09:39 PM |
3. Are you sure? Is it maybe the OTHER script isn't working and this one is? 4. Check that this script isn't disabled. |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 09:46 PM |
Yes i am sure, it is not working :(
|
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 09:50 PM |
| I will try to fix it.If you have any ideas then please tell me.And i was wondering if you can help me with my game.Both of us would make the game really good.Do you want to?You WILL get credit..lots.You will be in intro trophy room,etc. |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 09:51 PM |
| Where is this LocalScript located at? |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 09:52 PM |
| workspace.And do you want the offer above? |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 09:58 PM |
| LocalScripts do not work in Workspaces. |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 09:59 PM |
| I will try something else but plz think hard about the offer. |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 10:01 PM |
| I don't need any credits, and sorry, I don't have the time to create places with other people. |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
| |
|
|
| 09 Mar 2013 10:04 PM |
| LocalScripts HAS to be part of the player. So shove it in the StarterGui. |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 10:06 PM |
| I dont need you a LOT. I just need you to give me ideas and scripting tips for my game sometimes.My plan was to freind request you and then we can message each other and every time we go on roblox we check for messages.It takes barely anytime. |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 10:09 PM |
| Sorry, I don't accept friend requests from people I don't specifically know. I help- but I don't full-time myself directly to just a person. |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 10:13 PM |
| it works but it just plays its self when its disabled and only does it the first time. |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
| |
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 10:14 PM |
| There is nothing bad i can do to your account . |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 10:14 PM |
| What is the script inside THAT LocalScript? |
|
|
| Report Abuse |
|
|
dman2366
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 76 |
|
|
| 09 Mar 2013 10:17 PM |
it is:
local target = workspace.Turret.TurretCam local camera = workspace.CurrentCamera camera.CameraType = "Fixed" camera.CameraSubject = target local angle = 0
for i = 1,10 do camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, -angle, 0) * CFrame.new(0, 0, 0.00000000000000000001) angle = angle +math.rad(-0.0000000000000000000001) end
do i have to disable this too?It is a child of the other script. |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 10:19 PM |
Explain to me:
"it works but it just plays its self when its disabled and only does it the first time."
More details please, I don't quite understand what your trying to say. Like, how does it "play" when it's disabled? (Btw, Scripts only works when they are NOT disabled) |
|
|
| Report Abuse |
|
|