zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 12:02 PM |
It just doesn't do anything at all. I can't find anything wrong with it. Please help D:
mode = script.Parent.Mode script.Parent.Equipped:connect(function(m) m.KeyDown:connect(function(k) if k:lower() == "z" then mode.Value = 0 elseif k:lower() == "x" then mode.Value = 1 elseif k:lower() == "c" then mode.Value = 2 end end) m.Button1Down:connect(function() pl = game.Players.LocalPlayer ch = pl.Character if mode.Value == 0 then p = Instance.new("Part", workspace) d = Instance.new("Decal", p) d.Texture = "http://www.roblox.com/asset/id?=55663565" d.Face = "Top" p.formFactor = "Custom" p.Size = Vector3.new(5,1,5) p.Transparency = 1 p.CanCollide = false p.Anchored = true p.CFrame = CFrame.new(Vector3.new(ch.Torso.Position.x,ch["Left Leg"].Position.y - 2,ch.Torso.Position.y)) for i=1, 3, .1 do p.Size = p.Size + Vector3.new(1,0,1) p.CFrame = CFrame.new(Vector3.new(ch.Torso.Position.x,ch["Left Leg"].Position.y - 2,ch.Torso.Position.y)) wait() end end end) end) |
|
|
| Report Abuse |
|
|
7SDD0108
|
  |
| Joined: 06 Jan 2010 |
| Total Posts: 391 |
|
| |
|
|
| 06 Jul 2011 12:04 PM |
| This is in a local script right? |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 12:05 PM |
@Dark
Yes. I know as much as that you need a localscript to access LocalPlayer. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2011 12:09 PM |
Okay, I was just checking.
Hmm, are you testing it in online mode, or offline mode? |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 12:10 PM |
| I tested it in both, and neither worked. The output gave me nothing in both. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2011 12:17 PM |
| Hm, I can't find anything. Have you tried using prints? |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 12:17 PM |
| No. I'll try that really quick. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2011 12:17 PM |
| Alright, post where the script stops..Or the prints do anyways. |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 12:27 PM |
| Well, I put a print() ever few lines, and none worked. When I pressed the mode switching buttons (which each had a print so that it printed when it changed), nothing came up. When I pressed Z and then clicked, none of the prints came up either. |
|
|
| Report Abuse |
|
|
| |
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 12:32 PM |
@nick
Wait, why would the script disable itself when it runs...? |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 12:46 PM |
| Nick, I tried it and it still didn't work. |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
| |
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
| |
|
|
| 06 Jul 2011 03:28 PM |
| Is this a tool or a hopperbin? |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 03:29 PM |
@City
Tool. I know my events. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2011 03:29 PM |
=( Checking. Let's see, I'll go test it. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2011 04:02 PM |
p.Transparency = 1
Is this your problem? Then again, it doesn't explain why the prints don't show up. |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 04:04 PM |
@Agent
I don't think so. When I build things, make them transparent and put a decal on them the decal would show up. Although, Roblox most likely screwed that up too. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2011 04:08 PM |
| It sounds like the script has something invalid. Try copying and pasting your tool into your Backpack during solo play. Sometimes the Output erases after the error shows up during solo testing. |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 04:17 PM |
| Alright, I did what you said. Now it printed everything and made the brick, and made the brick bigger but it positioned the brick wrong. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2011 04:21 PM |
That is... quite odd.... Anyways, what do you mean by "positioned the brick wrong?" Where was the brick placed?
You can always weld the brick to the torso. |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 06 Jul 2011 04:25 PM |
| Well, it's just kind of hard to explain. It's supposed to be positioned a little above what your character is standing on, and centered under you (that's why I used the torso's position for the x and y part). Instead, it always comes out a little to the left or right. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2011 04:36 PM |
p = Instance.new("Part", ch) d = Instance.new("Decal", p) d.Texture = "http://www.roblox.com/asset/id?=55663565" d.Face = "Top" p.formFactor = "Custom" p.Size = Vector3.new(5,1,5) p.Transparency = 1 p.CanCollide = false w = Instance.new("Weld", p) w.Part0 = ch.Torso w.Part1 = p w.C1 = CFrame.new(0, -3.4, 0) for i=1, 3, .1 do p.Size = p.Size + Vector3.new(1,0,1) wait() end
Try that instead. |
|
|
| Report Abuse |
|
|