- 7
- 1 532
CallMeNoob
เข้าร่วมเมื่อ 31 มี.ค. 2024
Hello I like every game :)
And I like creator gqme
And I like creator gqme
How to make slap battles on studio lite / Part 3
Click script
script.Parent.MouseClick:Connect(function(player)
local slaps = player.leaderstats.Slaps
local equipped = player.Equipped
local Glove = player.leaderstats.Glove
local GloveValue = "Soul"
local BS = game:GetService("BadgeService")
local id = 2672379658118248 -- your badge id here and this is badge i Alr got it and i create the badge pls create new badge on your game and put here
if BS:UserHasBadge(player.UserId,id) then
equipped.Value = 3
Glove.Value = GloveValue
wait(1.5)
else
wait(1.5)
end
end)
New Ragdoll
local tool = script.Parent
local hitbox = tool:WaitForChild("Hitbox")
local slapSound = tool:WaitForChild("SlapSound")
local damageAmount = 10 -- Damage
local flingForce = 100 -- Fling
local jumpForce = 50 -- Slap The make Jump
local cooldownTime = 2 -- Cooldown time in seconds
local ragdollDuration = 2 -- Ragdoll Time in seconds
local isOnCooldown = false
local slapActivated = false
local hitTargets = {}
tool.Activated:Connect(function()
if not isOnCooldown then
slapActivated = true
isOnCooldown = true
task.delay(cooldownTime, function()
isOnCooldown = false
slapActivated = false
hitTargets = {}
end)
end
end)
local function enableRagdoll(character)
for _, joint in ipairs(character:GetDescendants()) do
if joint:IsA("Motor6D") then
local attachment0 = Instance.new("Attachment")
local attachment1 = Instance.new("Attachment")
attachment0.CFrame = joint.C0
attachment1.CFrame = joint.C1
attachment0.Parent = joint.Part0
attachment1.Parent = joint.Part1
local constraint = Instance.new("BallSocketConstraint")
constraint.Attachment0 = attachment0
constraint.Attachment1 = attachment1
constraint.Parent = joint.Part0
joint.Enabled = false
end
end
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
humanoid.PlatformStand = true
end
end
local function disableRagdoll(character)
for _, joint in ipairs(character:GetDescendants()) do
if joint:IsA("Motor6D") then
joint.Enabled = true
elseif joint:IsA("Attachment") or joint:IsA("BallSocketConstraint") then
joint:Destroy()
end
end
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
humanoid.PlatformStand = false
end
end
local function onTouched(hit)
if not slapActivated then return end
local targetCharacter = hit.Parent
local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
local toolOwner = game.Players:GetPlayerFromCharacter(tool.Parent)
if targetHumanoid and toolOwner then
if hitTargets[targetCharacter] then
return
end
hitTargets[targetCharacter] = true
local leaderstats = toolOwner:FindFirstChild("leaderstats")
if leaderstats then
local slapsStat = leaderstats:FindFirstChild("Slaps")
if slapsStat then
slapsStat.Value = slapsStat.Value + 1
end
end
if slapSound then
slapSound:Play()
end
targetHumanoid:TakeDamage(damageAmount)
local rootPart = targetCharacter:FindFirstChild("HumanoidRootPart")
local ownerCharacter = tool.Parent
local ownerRootPart = ownerCharacter:FindFirstChild("HumanoidRootPart")
if rootPart and ownerRootPart then
local flingDirection = (ownerRootPart.CFrame.LookVector).Unit * flingForce
rootPart.Velocity = Vector3.new(flingDirection.X, jumpForce, flingDirection.Z)
task.delay(0.5, function()
enableRagdoll(targetCharacter)
task.delay(ragdollDuration, function()
disableRagdoll(targetCharacter)
end)
end)
end
slapActivated = false
end
end
hitbox.Touched:Connect(onTouched)
tool.Unequipped:Connect(function()
slapActivated = false
end)
Slap gui
local player = game.Players.LocalPlayer
local slaps = player.leaderstats:WaitForChild("Slaps")
local label = script.Parent
label.Text = "Slaps:" ..slaps.Value
slaps.Changed:Connect(function()
label.Text = "Slaps:" ..slaps.Value
end)
I can’t put anymore because description too long go to comment
script.Parent.MouseClick:Connect(function(player)
local slaps = player.leaderstats.Slaps
local equipped = player.Equipped
local Glove = player.leaderstats.Glove
local GloveValue = "Soul"
local BS = game:GetService("BadgeService")
local id = 2672379658118248 -- your badge id here and this is badge i Alr got it and i create the badge pls create new badge on your game and put here
if BS:UserHasBadge(player.UserId,id) then
equipped.Value = 3
Glove.Value = GloveValue
wait(1.5)
else
wait(1.5)
end
end)
New Ragdoll
local tool = script.Parent
local hitbox = tool:WaitForChild("Hitbox")
local slapSound = tool:WaitForChild("SlapSound")
local damageAmount = 10 -- Damage
local flingForce = 100 -- Fling
local jumpForce = 50 -- Slap The make Jump
local cooldownTime = 2 -- Cooldown time in seconds
local ragdollDuration = 2 -- Ragdoll Time in seconds
local isOnCooldown = false
local slapActivated = false
local hitTargets = {}
tool.Activated:Connect(function()
if not isOnCooldown then
slapActivated = true
isOnCooldown = true
task.delay(cooldownTime, function()
isOnCooldown = false
slapActivated = false
hitTargets = {}
end)
end
end)
local function enableRagdoll(character)
for _, joint in ipairs(character:GetDescendants()) do
if joint:IsA("Motor6D") then
local attachment0 = Instance.new("Attachment")
local attachment1 = Instance.new("Attachment")
attachment0.CFrame = joint.C0
attachment1.CFrame = joint.C1
attachment0.Parent = joint.Part0
attachment1.Parent = joint.Part1
local constraint = Instance.new("BallSocketConstraint")
constraint.Attachment0 = attachment0
constraint.Attachment1 = attachment1
constraint.Parent = joint.Part0
joint.Enabled = false
end
end
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
humanoid.PlatformStand = true
end
end
local function disableRagdoll(character)
for _, joint in ipairs(character:GetDescendants()) do
if joint:IsA("Motor6D") then
joint.Enabled = true
elseif joint:IsA("Attachment") or joint:IsA("BallSocketConstraint") then
joint:Destroy()
end
end
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
humanoid.PlatformStand = false
end
end
local function onTouched(hit)
if not slapActivated then return end
local targetCharacter = hit.Parent
local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
local toolOwner = game.Players:GetPlayerFromCharacter(tool.Parent)
if targetHumanoid and toolOwner then
if hitTargets[targetCharacter] then
return
end
hitTargets[targetCharacter] = true
local leaderstats = toolOwner:FindFirstChild("leaderstats")
if leaderstats then
local slapsStat = leaderstats:FindFirstChild("Slaps")
if slapsStat then
slapsStat.Value = slapsStat.Value + 1
end
end
if slapSound then
slapSound:Play()
end
targetHumanoid:TakeDamage(damageAmount)
local rootPart = targetCharacter:FindFirstChild("HumanoidRootPart")
local ownerCharacter = tool.Parent
local ownerRootPart = ownerCharacter:FindFirstChild("HumanoidRootPart")
if rootPart and ownerRootPart then
local flingDirection = (ownerRootPart.CFrame.LookVector).Unit * flingForce
rootPart.Velocity = Vector3.new(flingDirection.X, jumpForce, flingDirection.Z)
task.delay(0.5, function()
enableRagdoll(targetCharacter)
task.delay(ragdollDuration, function()
disableRagdoll(targetCharacter)
end)
end)
end
slapActivated = false
end
end
hitbox.Touched:Connect(onTouched)
tool.Unequipped:Connect(function()
slapActivated = false
end)
Slap gui
local player = game.Players.LocalPlayer
local slaps = player.leaderstats:WaitForChild("Slaps")
local label = script.Parent
label.Text = "Slaps:" ..slaps.Value
slaps.Changed:Connect(function()
label.Text = "Slaps:" ..slaps.Value
end)
I can’t put anymore because description too long go to comment
มุมมอง: 224
วีดีโอ
How to make slap battles on studio lite / Part 2
มุมมอง 3765 วันที่ผ่านมา
- Portal script- script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then script.Disabled = true local player = game.Players:GetPlayerFromCharacter(hit.Parent) local equipped = player.Equipped local spawns = game.Workspace.Spawns local randSpawn = math.random(1, #spawns:GetChildren()) local TeleSpawn = spawns:FindFirstChild(randSpawn) if TeleSpawn then local Tel...
How to make slap battles on studio lite / Part 1.5
มุมมอง 2405 วันที่ผ่านมา
Dash Ability I can’t put this go find on comment until see my chat with Pastebin link ShowDashGui script Server script ServerScriptService local replicatedStorage = game:GetService("ReplicatedStorage") local showDashButtonEvent = replicatedStorage:WaitForChild("ShowDashButton") game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) character.ChildAdd...
How to make slap battles on Studio Lite / Part 1
มุมมอง 4926 วันที่ผ่านมา
- script leaderboard - game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder", player) leaderstats.Name = "leaderstats" local Slaps = Instance.new("IntValue", leaderstats) Slaps.Name = "Slaps" Slaps.Value = 0 local Equipped = Instance.new("IntValue",player) Equipped.Value = 1 Equipped.Name = "Equipped" local Glove = Instance.new("StringValue", leaderstats) G...
Showcase some sans multiverse obby / obby creator
มุมมอง 567 หลายเดือนก่อน
local targetCharacter = hit.Parent local targetHumanoid = targetCharacter:FindFirstChild("Humanoid") local toolOwner = game.Players:GetPlayerFromCharacter(tool.Parent) -- Get the player who owns the tool if toolOwner and toolOwner:FindFirstChild("leaderstats") then local slapsStat = toolOwner.leaderstats:FindFirstChild("Slaps") if slapsStat then slapsStat.Value = slapsStat.Value + 1 -- Increment the Slaps stat for the tool owner Slap give end end
W, waiting for part 4
Hey so does everyone can see the dash ability ? Like cuz it's local script... I don't really want dash ability I'm thinking to change it so i just wanna make sure does does everyone can see it ?
Bro make a bangers 🔥🔥 you deserve 100 subs man
Finally
Yo is the slap gui is made by netherite studios
Soul glove script local tool = script.Parent local hitbox = tool:WaitForChild("Hitbox") -- Hitbox part local slapSound = tool:WaitForChild("SlapSound") -- Sound instance local baseDamage = 10 -- damage local baseJumpForce = 100 -- jump force local baseFlingForce = 100 -- fling local cooldownTime = 2 -- Cooldown time in seconds local ragdollDuration = 5 -- Ragdoll time in seconds local maxSpeed = 100 -- speed limit local speedPerKill = 3 -- Speed increase per kill local normalSpeed = 16 local isOnCooldown = false local slapActivated = false local hitTargets = {} local trackedHumanoids = {} local function createKillGui(player) local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "KillGui" screenGui.Parent = playerGui local killLabel = Instance.new("TextLabel") killLabel.Name = "KillLabel" killLabel.Size = UDim2.new(0.2, 0, 0.1, 0) killLabel.Position = UDim2.new(0.4, 0, 0.1, 0) killLabel.BackgroundColor3 = Color3.new(0, 0, 0) killLabel.TextColor3 = Color3.new(1, 1, 1) killLabel.Font = Enum.Font.SourceSansBold killLabel.TextScaled = true killLabel.Text = "Kills: 0" killLabel.Parent = screenGui return killLabel end local function updateKillGui(player, kills) local playerGui = player:FindFirstChild("PlayerGui") local screenGui = playerGui and playerGui:FindFirstChild("KillGui") if screenGui then local killLabel = screenGui:FindFirstChild("KillLabel") if killLabel then killLabel.Text = "Kills: " .. tostring(kills) end end end local function enableRagdoll(character) for _, joint in ipairs(character:GetDescendants()) do if joint:IsA("Motor6D") then local attachment0 = Instance.new("Attachment") local attachment1 = Instance.new("Attachment") attachment0.CFrame = joint.C0 attachment1.CFrame = joint.C1 attachment0.Parent = joint.Part0 attachment1.Parent = joint.Part1 local constraint = Instance.new("BallSocketConstraint") constraint.Attachment0 = attachment0 constraint.Attachment1 = attachment1 constraint.Parent = joint.Part0 joint.Enabled = false end end local humanoid = character:FindFirstChild("Humanoid") if humanoid then humanoid.PlatformStand = true end end local function disableRagdoll(character) for _, joint in ipairs(character:GetDescendants()) do if joint:IsA("Motor6D") then joint.Enabled = true elseif joint:IsA("Attachment") or joint:IsA("BallSocketConstraint") then joint:Destroy() end end local humanoid = character:FindFirstChild("Humanoid") if humanoid then humanoid.PlatformStand = false end end local function trackHumanoidDeath(humanoid, toolOwner) if trackedHumanoids[humanoid] then return end trackedHumanoids[humanoid] = true humanoid.Died:Connect(function() local playerGui = toolOwner:FindFirstChild("PlayerGui") if playerGui then local screenGui = playerGui:FindFirstChild("KillGui") if screenGui then local killLabel = screenGui:FindFirstChild("KillLabel") if killLabel then local currentKills = tonumber(killLabel.Text:match("%d+")) or 0 local newKills = currentKills + 1 killLabel.Text = "Kills: " .. newKills baseDamage = baseDamage + 5 baseJumpForce = baseJumpForce + 20 baseFlingForce = baseFlingForce + 15 local currentSpeed = toolOwner.Character and toolOwner.Character:FindFirstChild("Humanoid") if currentSpeed then local newSpeed = math.min(normalSpeed + (newKills * speedPerKill), maxSpeed) currentSpeed.WalkSpeed = newSpeed end end end end end) end tool.Activated:Connect(function() if not isOnCooldown then slapActivated = true isOnCooldown = true task.delay(cooldownTime, function() isOnCooldown = false slapActivated = false hitTargets = {} end) end end) local function onTouched(hit) if not slapActivated then return end local targetCharacter = hit.Parent local targetHumanoid = targetCharacter:FindFirstChild("Humanoid") local toolOwner = game.Players:GetPlayerFromCharacter(tool.Parent) if targetHumanoid and toolOwner then if hitTargets[targetCharacter] then return end hitTargets[targetCharacter] = true if slapSound then slapSound:Play() end targetHumanoid:TakeDamage(baseDamage) trackHumanoidDeath(targetHumanoid, toolOwner) local leaderstats = toolOwner:FindFirstChild("leaderstats") if leaderstats then local slapsStat = leaderstats:FindFirstChild("Slaps") if slapsStat then slapsStat.Value = slapsStat.Value + 1 end end local rootPart = targetCharacter:FindFirstChild("HumanoidRootPart") local ownerCharacter = tool.Parent local ownerRootPart = ownerCharacter:FindFirstChild("HumanoidRootPart") if rootPart and ownerRootPart then local flingDirection = ownerRootPart.CFrame.LookVector.Unit * baseFlingForce rootPart.Velocity = Vector3.new(flingDirection.X, baseJumpForce, flingDirection.Z) task.delay(0.5, function() enableRagdoll(targetCharacter) task.delay(ragdollDuration, function() disableRagdoll(targetCharacter) end) end) end slapActivated = false end end game.Players.PlayerAdded:Connect(function(player) createKillGui(player) end) hitbox.Touched:Connect(onTouched) tool.Unequipped:Connect(function() slapActivated = false end)
DataStore/ you need TURN ON API SERVICE on Roblox studio to work local DS = game:GetService("DataStoreService"):GetDataStore("SaveSlaps") game.Players.PlayerAdded:Connect(function(plr) wait(0.5) local plrkey = ("id_")..plr.UserId local s1 = plr.leaderstats.Slaps local getsaved = DS:GetAsync(plrkey) if getsaved then s1.Value = getsaved[1] else local numforsaveing = { s1.Value } DS:GetAsync(plrkey, numforsaveing) end end) game.Players.PlayerRemoving:Connect(function(plr) DS:SetAsync("id_"..plr.UserId,{ plr.leaderstats.Slaps.Value }) end)
Thankssss brooo
Um you make this script by chatgpt right? The ragdoll is same I made my script with chatgpt
@@Pelow_XD naw
💀
Hey bro y need to fix the slap it dont works on players also y need to add a slap swing animation
Yeah same
Alr do it also a data save
Here
Put it on ServerScriptService
Are you literally gonna leak all of the scripts and make everyone else have the same game
Chill bro
Cool
Yes Plz Also add slap save and gamepass glove and badge
But the datastore only works on your published game
@@TiahhTheRightBoom sure
XclassicgRLBX already made the datasave slaps and he posted it on yt
Awesome I need gamepass glove cuz I already have the datasave slaps script
@noob4865mreal u have discord server?
video suggestion: make a data save in slap or gamepass glove please
I have datasave script
Here fixed glove if you got ( expected near with ? script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then script.Disabled = true local player = game.Players:GetPlayerFromCharacter(hit.Parent) local equipped = player.Equipped local spawns = game.Workspace.Spawns local randSpawn = math.random(1, #spawns:GetChildren()) local TeleSpawn = spawns:FindFirstChild(randSpawn) if TeleSpawn then local TelePos = TeleSpawn.Position hit.Parent:moveTo(TelePos) local HandsFold = game:GetService("ServerStorage").Hands for i,v in pairs(HandsFold:GetChildren()) do local Hand = v:FindFirstChild(equipped.Value) if Hand then Hand = Hand.Parent local ClonedHand = Hand:Clone() ClonedHand.Parent = player.Backpack end end wait(0.25) script.Disabled = false else wait(0.25) script.Disabled = false return end end end)
I didn't got an error
People did so if you got bug so use it
Longest tutorial
Yeah he has to build
Bro the portal script has a error can y check and fix it plssss ❤
How to make solo chair?
Now add a admin Ui and a ban ui tutorial pleasee
In portal scipt it says Workspace.YourSelf.Script 7:')'expected near ?
The portal script is giving an error, help me, I did everything directly on the portal but it is giving an error
Me too
Next tutorial make equip system
I did?
Why didn’t you just use the podium mesh
Tysm
Great! Thanks For helping me making slap battle fan game
- click script - script.Parent.MouseClick:Connect(function(player) local slaps = player.leaderstats.Slaps local equipped = player.Equipped local Glove = player.leaderstats.Glove local GloveValue = "YourGloveName" if slaps.Value >= 0 then equipped.Value = 1 Glove.Value = GloveValue wait(1.5) else wait(1.5) end end)
W
:D
Part 2 soon 1-2 hour will be upload
Where y gonna make tutorial for selecting glove
@@TherealReldi in part 2
@noob4865mReal alr waiting for it
Dash Ability/ Local script / inside screen gui pastebin.com/vKz5UL5Q
My Slap Script is Better it Doesnt push the player
Nice my script just ragdoll you can check my game, I made this for revenge Floppa sike and make his ragdoll easy
@@noob4865mRealim floppa sike reading this btw
Lb tutorial how day u make the stand i wait for you 1 years😂
Please do part 2
How do I do a slap animation
Hi dude, i met you before my name is deminated did you remember? That i got owner badge and you give me 500 points
Next make a slap selection when y touch a slap in lobby you get it in game
Sure
Alr waiting for it ❤@@noob4865mReal
I also made a vid like this but didnt use ur script lol!
is cool how did you get a music tho
Edit