LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 08:10 AM |
I am a beginner scripter and looking forward to improve..
I can make anything as long as I know how to
Sorry if your given task is too difficult for me..
So post your requests below.
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 08:10 AM |
forgot to say that I will make anything for free
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 08:13 AM |
| Make a script that waits 1/30 of a second and then kill the player when they join. |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 08:27 AM |
game:GetService("Players").PlayerAdded:connect(function(player) wait(1/30) player.Character:WaitForChild("Humanoid").Health = 0 end)
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 08:29 AM |
I think I should wait for character
game:GetService("Players").PlayerAdded:connect(function(player) repeat wait() until player.Character wait(1/30) player.Character:WaitForChild("Humanoid").Health = 0 end)
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 08:46 AM |
Make me a script that will randomly spawn objects in tw o different positions until I touch an object
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:11 AM |
| I think this is what you asked local position1 = Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) local position2 = Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) local touch = false function ####### ##### = true end script.Parent.Touched:connect(Touch) while true do wait(math.random(1,10)) print("wot") if touch == false then Part1 = Instance.new("Part", game.Workspace) Part1.Anchored = true Part1.Position = position1 Part2 = Instance.new("Part", game.Workspace) Part2.Anchored = true Part2.Position = position2 else end end |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:12 AM |
| local position1 = Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) local position2 = Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) local touch = false function ####### ##### = true end script.Parent.Touched:connect(Touch) while true do wait(math.random(1,10)) print("wot") if variableTOUCH(to prevent hash) == false then Part1 = Instance.new("Part", game.Workspace) Part1.Anchored = true Part1.Position = position1 Part2 = Instance.new("Part", game.Workspace) Part2.Anchored = true Part2.Position = position2 else end end |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:13 AM |
| Hashtags.. :/ local position1 = Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) local position2 = Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) local touch = false function ####### ################ prevent hash) = true end script.Parent.Touched:connect(Touch) while true do wait(math.random(1,10)) print("wot") if variableTOUCH(to prevent hash) == false then Part1 = Instance.new("Part", game.Workspace) Part1.Anchored = true Part1.Position = position1 Part2 = Instance.new("Part", game.Workspace) Part2.Anchored = true Part2.Position = position2 else end end |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:15 AM |
LAST TIME I TRY THIS If you need script PM(If still hash)
function Touch() variable = true end script.Parent.Touched:connect(Touch)
while true do wait(math.random(1,10)) print("wot") if variable == false then Part1 = Instance.new("Part", game.Workspace) Part1.Anchored = true Part1.Position = position1 Part2 = Instance.new("Part", game.Workspace) Part2.Anchored = true Part2.Position = position2 else end end
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:16 AM |
Sorry for spam, but forgot to include..
local position1 = Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) local position2 = Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) local variable = false
|
|
|
| Report Abuse |
|
|
| |
|
BlupoV2
|
  |
| Joined: 12 Nov 2012 |
| Total Posts: 543 |
|
|
| 11 Mar 2017 09:22 AM |
Write a function to find the number of digits of any integer without converting the number to a string or using the string library.
Benchmarks: 10e10 -> 12 1234567890 ->10 |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:33 AM |
Sorry I have no clue how to do that... If you do know how to do that, please tell me I would like to know.
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:36 AM |
besides writing bunch if statements and checking (>/<)
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 09:40 AM |
| Make a script so when a player joins there joints break |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:46 AM |
game:GetService("Players").PlayerAdded:connect(function(player) repeat wait() until player.Character player.Character:BreakJoints() end)
|
|
|
| Report Abuse |
|
|
BlupoV2
|
  |
| Joined: 12 Nov 2012 |
| Total Posts: 543 |
|
|
| 11 Mar 2017 09:46 AM |
An alternative way to getting the number of digits of an integer is:
math.ceil(math.log10(number + 0.1)) |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 09:52 AM |
Never heard about such a thing, thanks
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 11:28 AM |
Can you make a script, so when players are already in the game, and like a map loads out of serverstorage there is a script in the map ones the map goes into workspace it clones a sound into the players backpack? Sorry if that got a bit confusing... I have been trying to do it for a while now... |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 11:30 AM |
| So mainly when the map goes into workspace the script inside of the map activates, and clones the sound thingy in to the players backpacks |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 11:39 AM |
Do you know how to save a players stats?
I need to save a players Wins and Gems
#code -- This is a comment in lua -- |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 11:41 AM |
| Make me script for respawn unanchored vehicles. |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 11:43 AM |
@Legomaster, PM me if I understood you wrong or something
local Players = game:GetService("Players") local Sound = game:GetService("ServerStorage").Sound -- Change to whatever your's is?
for i,v in pairs(Players:GetChildren()) do local SoundClone = Sound:Clone() SoundClone.Parent = v.Backpack end
but I understood that you want something like this?
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 11 Mar 2017 11:47 AM |
local DataStore = gam######################################################################################################################### local stats = Instance.new("IntValue", player) stats.Name = "leaderstats" local wins = Instance.new("IntValue", stats) wins.Name = "Wins" local gems = Instance.new("IntValue", stats) gems.Name = "Gems" local key = "user-" ..player.userId local savedValues = DataStore:GetAsync(key) if savedValues then wins.Value = savedValues[1] gems.Value = savedValues[2] else local valuesToSave = {wins.Value, gems.Value} DataStore:SetAsync(key, valuesToSave) end end)
-------------------------Different Script ----------------------------------------------
local DataStore = ga#################################################################### game.Players.PlayerRemoving:connect(function(player) local key = "user-" ..player.userId local valuesToSave = {player.leaderstats.Wins.Value, player.leaderstats.Gems.Value} DataStore:SetAsync(key, valuesToSave) end)
tell me if doesnt work, didn't test it. @DIAMOND
|
|
|
| Report Abuse |
|
|