|
| 13 Feb 2016 08:36 AM |
works in play mode but not in a test server
debounce = false local drop = script.Parent.Drop local button = script.Parent.Button
button.ClickDetector.MouseClick:connect(function() print 'clicked' if debounce == false then print 'ur certi' debounce = true local part = Instance.new("Part",drop) part.Material = Enum.Material.Plastic part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines part.FormFactor = "Custom" part.Name = "drop" part.Transparency = 0 part.Size = Vector3.new(0.5,0.5,0.5) part.Position = drop.Position part.BrickColor = BrickColor.new("Dark stone grey") part.Anchored = false game:GetService("Debris"):AddItem(part,7) wait (0.5) debounce = false print 'no cerits yet rlax' end end)
any fixes? no prints, no output
#Strikin' |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 13 Feb 2016 08:58 AM |
| FilteringEnabled breaks ClickDetectors :< |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 13 Feb 2016 09:55 AM |
Try this, someone posted it earlier:
http://www.roblox.com/customClickDetector-item?id=345338732
|
|
|
| Report Abuse |
|
|
|
| 13 Feb 2016 10:02 AM |
Don't set the FormFactor, it is no longer needed and also deprecated. You need to use a LocalScript to take input from a ClickDetector.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Feb 2016 10:08 AM |
@Jarod would a local script work in a button?
#Strikin' |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Feb 2016 10:23 AM |
then how would i make it sense a click via local script?
#Strikin' |
|
|
| Report Abuse |
|
|
|
| 13 Feb 2016 10:24 AM |
Because you put the LocalScript in PlayerScripts or PlayerGui or Backpack.
|
|
|
| Report Abuse |
|
|
|
| 13 Feb 2016 10:26 AM |
so please can you help adapt this script. Any sort of help would be much appreciated
#Strikin' |
|
|
| Report Abuse |
|
|