logo
Tags down

shadow

Roblox ClickDetector Having Problems


By : user2174464
Date : October 18 2020, 08:10 AM
Any of those help My script on Roblox doesn't work whether I run it in the editor or in a local server. I don't know where I went wrong, so I'll just post the whole script , The problem is in the function of the ClickDetector, look
code :
target = Vector3.new(20, 10, 20) --...and this
player.Character.HumanoidRootPart.CFrame = target
target = CFrame.new(Vector3.new(20, 10, 20)) --...and this
player.Character.HumanoidRootPart.CFrame = target


Share : facebook icon twitter icon

My Roblox Script doesn't change the model based on time (Roblox)


By : Krishna
Date : March 29 2020, 07:55 AM
To fix this issue I think the issue is your if statements. You're evaluating if it's after 8 pm after you evaluate if it's 8 am. Since 8 pm (or 20 in 24-hour format) comes after 8 am (or 8 24-hour format), if a value if greater than 8 pm, it's also greater than 8 am.
What you could do is just have an equals statement instead of a greater than. So something like:
code :
if (time==TURNOFFLIGHTS)
    turnofflights ();

else if (time==TURNONLIGHTS)
    turnonlights ();

How do I script my ROBLOX ClickDetector only allow click input once, so the script only plays once and cannot be spammed


By : thedesp
Date : March 29 2020, 07:55 AM
hope this fix your issue
A simple way of dealing with this is to set a boolean from false to true when it has been clicked once, and check at the top of the function whether that boolean is true or false before proceeding.
code :
local debounce = false
function foo()
   if not debounce then
      debounce = true
      print("Hi!")
   end
end

foo() -- Will print "Hi!"
foo() -- Will not print anything
local myConnection
myConnection = myEvent:Connect(function()
   myConnection:Disconnect()
   print("Hello!")
end)
myEvent:Fire() -- Prints "Hello!"
myEvent:Fire() -- Does nothing, because it is no longer connected/listening for input.

What is Roblox written in?


By : shanthi kranthi
Date : March 29 2020, 07:55 AM
To fix this issue All the stuff that roblox staff make is a combination of multiple languages ; Site is html and java, roblox player and studio is made in c++ and lua.

What is ROBLOX Lua scripting?


By : A-Duck
Date : March 29 2020, 07:55 AM
I wish did fix the issue. Lua is a fairly well known and often embedded scripting language.
However, if you're after some basic "getting starting" information on Roblox scripting, check out the Roblox Wiki. (The tutorial's section would probably be of specific interest.)

Lua Roblox gui script?


By : Mar Koss
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , I made a GUI when you sit on a car seat it'll tell you the speed and the value of the car in which it has a "buy" button. I managed to make only the GUI but I can't find the way to script it so when you click buy it teleports the car the player bought to the back of the dealership. Anyway to do it? , This is just an example, so you'll have to modify it for your game.
shadow
Privacy Policy - Terms - Contact Us © voile276.org