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
 

Re: Can't pick up a tool after I drop it...?

Previous Thread :: Next Thread 
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
29 Dec 2013 04:58 PM
Is there anyway to fix that?

Like I drop the tool and it can not be picked up...
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
29 Dec 2013 04:59 PM
Probably a problem with the weld script.
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
29 Dec 2013 05:00 PM
Hmm how do I fix it?
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
29 Dec 2013 05:03 PM
Gah
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
29 Dec 2013 05:07 PM
Fix the broken scripts.......
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
29 Dec 2013 05:10 PM
. . .
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
29 Dec 2013 05:11 PM
Well, you're asking us to fix something we don't have.
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
29 Dec 2013 05:11 PM
Tool = script.Parent

local stillEquipped = false

function onEquippedLocal(mouse)
stillEquipped = true
if mouse == nil then
print("Mouse not found")
return
end
while stillEquipped do
print("Setting Mouse to go")
mouse.Icon = "rbxasset://textures\\GunCursor.png"
while Tool.Enabled and stillEquipped do
wait(0.01)
end
print("Setting Mouse to wait")
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
while not Tool.Enabled and stillEquipped do
wait(0.01)
end
end
end


function onUnequippedLocal()
stillEquipped = false
end

Tool.Equipped:connect(onEquippedLocal)
Tool.Unequipped:connect(onUnequippedLocal)

Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
29 Dec 2013 05:12 PM
And this

math.randomseed(tick()); math.random()

function waitForChild(parent, childName)
while not parent:FindFirstChild(childName) do
parent.ChildAdded:wait()
end
return parent[childName]
end

local Tool = script.Parent

local myCharacter
local myHumanoid
local myPlayer

local waitCo

local lickNum = 0
local lastLickTime = 0
local thisLickTime = 0

local BrainfreezeGui

local SpeedScript
local NewSpeed

db = false

local LickSound

local LickAnim

local haltWaitCo = false

local debris = game:GetService("Debris")

function onActivated()
if not Tool.Enabled then return end
if not db then
db = true
myCharacter = Tool.Parent
if myCharacter then
myHumanoid = myCharacter:FindFirstChild("Humanoid")
if myHumanoid then
LickSound = Tool:FindFirstChild("LickSound")
LickAnim = Tool:FindFirstChild("LickAnim")
if LickAnim then
LickAnim = myHumanoid:LoadAnimation(LickAnim)
LickAnim:Play()
end
wait(0.2)
if LickSound then LickSound:Play() end
wait(1.3)
db = false
end
end
end
end

function onEquipped()
myCharacter = Tool.Parent
if not Tool.Enabled then
wait(8)
Tool.Enabled = true
end
end

function onUnequipped()
if LickAnim then LickAnim:Stop() end
if LickSound then LickSound:Stop() end
myPlayer = game.Players:GetPlayerFromCharacter(myCharacter)
if myPlayer then
local oldSpeedGui = myPlayer:FindFirstChild("IceCreamConeSpeedGui")
local oldFreezeGui = myPlayer:FindFirstChild("IceCreamConeBrainfreezeGui")
if oldSpeedGui then oldSpeedGui:Remove() end
if oldFreezeGui then oldFreezeGui:Remove() end
end
end

Tool.Activated:connect(onActivated)
Tool.Equipped:connect(onEquipped)
Tool.Unequipped:connect(onUnequipped)
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
29 Dec 2013 05:17 PM
Bump
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
29 Dec 2013 05:24 PM
Anything?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
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