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
 

Need some help, here. No output, no nothing.

Previous Thread :: Next Thread 
zeke505 is not online. 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 is not online. 7SDD0108
Joined: 06 Jan 2010
Total Posts: 391
06 Jul 2011 12:04 PM
o.o
Letter in a wordstack?
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
06 Jul 2011 12:04 PM
This is in a local script right?
Report Abuse
zeke505 is not online. 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
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
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 is not online. 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
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
06 Jul 2011 12:17 PM
Hm, I can't find anything. Have you tried using prints?
Report Abuse
zeke505 is not online. zeke505
Joined: 26 May 2008
Total Posts: 15765
06 Jul 2011 12:17 PM
No. I'll try that really quick.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
06 Jul 2011 12:17 PM
Alright, post where the script stops..Or the prints do anyways.
Report Abuse
zeke505 is not online. 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
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
06 Jul 2011 12:30 PM
script.Disabled = false
Report Abuse
zeke505 is not online. 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 is not online. 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 is not online. zeke505
Joined: 26 May 2008
Total Posts: 15765
06 Jul 2011 02:13 PM
Bump.
Report Abuse
zeke505 is not online. zeke505
Joined: 26 May 2008
Total Posts: 15765
06 Jul 2011 03:25 PM
PEOPLE, Y U NO HALP?
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
06 Jul 2011 03:28 PM
Is this a tool or a hopperbin?
Report Abuse
zeke505 is not online. zeke505
Joined: 26 May 2008
Total Posts: 15765
06 Jul 2011 03:29 PM
@City

Tool. I know my events.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
06 Jul 2011 03:29 PM
=(
Checking. Let's see, I'll go test it.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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 is not online. 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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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 is not online. 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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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 is not online. 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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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
Previous Thread :: Next Thread 
Page 1 of 3Go to page: [1], 2, 3 Next
 
 
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